Jump to content

zhaowu

Member
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    zhaowu got a reaction from Neeeeeil in Provide a hotkey to pin Alfred on top temporarily   
    The reason is that some workflow requires a bit of time to run. and some of them related to monitoring, notes and tasks can be useful to just pin on the top for a while.
  2. Like
    zhaowu got a reaction from vitor in Search for typed query history   
    It should be easy to implement and very useful. Once you have typed lots of queries, you probably just keep repeating.
  3. Like
    zhaowu got a reaction from Kevin Funderburg in Top Processes Based Memory or CPU Usage Workflow   
    Alfred 2 Top Process Workflow
      The initial motive of this workflow is to avoid frequent visits to the Activity Monitor when the fan goes loud. Now it has been evolved with two major features:   Suggestions are welcome. And Please go to http://zhaocai.github.com/alfred2-top-workflow/ for better view of the installation instruction.   - 1) List/Kill Top Processes by Memory/CPU/IO Usage       - 2) (working in progress) Get a glance of system status including internal battery, fan speed, CPU/GPU Temperature, bluetooth battery, disk capacity, etc.     Usage   0. Show Help   Just type -?, -h, or --help after the keyword to show help.     1. Top Processes   A. Keywords:   1.) top: Show a mixed processes list based on top cpu/memory usage.          1. top -m, top --memory to show processes ranked by memory usage        2. top -c, top --cpu, to show processes ranked by cpu usage        3. top -i, top --io, to show processes ranked by io usage with callback from top io trace collector.      Top IO requires [DTrace][Dtrace] and it would take a while to finish. The new callback design is to run the job in he background and post a notification (OSX 10.8+) using notification center. Click on the notification to show the result in alfred.           Modifier Key      - none    : The default action is to list files opened by process ID    - control : Kill the selected process    - command : kill forcefully (kill -9)    - alt     : Nice (lower) the selected process's cpu priority    - shift   : Search web for process information     2.) kill: Filter process to kill.   Modifier Key      - none: The default action is to kill by process ID    - command : kill forcefully (kill -9)   3.) lsof: List files opened by process id   Modifier Key      - none: The default action is to reveal file in Finder   B. Filter by Query   1.) To search for process state, use :idle, :sleep, :stopped, :zombie, :uninterruptible, :runnable, etc.       2. Glance an Eye on your system   #### A. Keywords:   glance: Show system information including internal battery, bluetooth battery, disk capacity, etc.       B. Change Display Order   Activate Alfred Preferences → Advanced → Top Result Keyword Latching       Hit Enter for the feedback item you wish to show up on the top.     Installation Two ways are provided:
    You can download the Top Processes.alfredworkflow and import to Alfred 2. This method is suitable forregular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. Check rake -T for available tasks. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable fordevelopers.
        Troubleshooting   1. Does not work in Mac OSX 10.9 (Maverick)   In OSX 10.9, the system ruby is upgraded to 2.0.0. You need to download the new version of this workflow which packs the ruby gems for 2.0.0 inside.   If the downloaded version does not work, try    1.) open Terminal.app. If you use rvm or rbenv, switch to the system ruby. run cd "$HOME/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/me.zhaowu.top" && rake bundle:update   2. iotop causes mouse lagging   This issue is not caused by this workflow but by [DTrace][DTrace]. The related system log message is IOHIDSystem cursor update overdue. Resending.. In my Macbook Pro, any [DTrace][DTrace] based program will introduce this issue including the mac built-in /usr/bin/iotop, and /Applications/Xcode.app/Contents/Applications/Instruments.app .   I upgrade to OS X 10.9 and this issue is resolved.   3. Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8   Add the following contents to /etc/launchd.conf. Restart is required.   setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8      
  4. Like
    zhaowu got a reaction from 40-02 in Keylue (Key Clue): Alfred 2 Workflow for Menu Bar and Keyboard Maestro Hot Key Search   
    Keylue (Key Clue): Alfred 2 Workflow for Menu Bar and Keyboard Maestro Hot Key Search
     
    It is like KeyCue which helps you memorize or quickly launch hot keys. But it is still too much to pinpoint a shortcut from a 50+ entries with your eyeball. This workflow gives the freedom to search and filter the results and execute them from Alfred.
     
     
    Usage
     
    Just one keywords kc: Show menu items and Keyboard Maestro hot keys. Hit Enter to execute. The feedback results for each application are cached for speedy response. The cached results are reloaded if it is older than an hour. To refresh staled feedback, append ! after the keyword. For example, kc ! query.
     

     
    Installation
    You can download the Keylue.alfredworkflow and import to Alfred 2. This method is suitable for regular users.
    For more instruction, go to http://zhaocai.github.io/alfred2-keylue-workflow/
     
    Reference
     
    - Menu Search
    - ctwise/menudump
     
     
     
     
    [KeyCue]: http://www.ergonis.com/products/keycue/
  5. Like
    zhaowu got a reaction from Jono in Alfred2 workflow for google search suggestion, instant search, and current site search   
    The initial motive is to automatically use current front browser's site for site search. Current it includes google suggestion, instant search, site search and related search.
     
    Suggestions are welcome.
     
    Check it out in Github: http://zhaocai.github.com/alfred2-google-workflow/
     
     
    It is also an example to use bundler to include gems in an alfred workflow. The command is bundle install --standalone.

    Usage 1. Search Suggestion
    Keyword g: provide google search suggestions based on {query}.
    2. Instant Search
    Keyword gi: get instant google search results in Alfred based on {query}.
    3. Site Search
    Keyword gs: get instant google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use site:example.com query if you do not want to search for current front browser's site.
    4. Related Search
    Keyword related: get related google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use related:example.com query if you do not want to search for current front browser's site.
    Installation
    Two ways are provided:
    You can download the Google.alfredworkflow and import to Alfred 2. This method is suitable for regular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable for developers.
    Reference
    Site Search Workflow for Alfred 2 Google Search in-line results workflow
  6. Like
    zhaowu got a reaction from chadv in Shell script locale in Maverick   
    Upgrade to maverick today and notice many of the scripts including some standard ruby gems raise exceptions. After a few hours debugging, the root cause identified is the encoding. Now the default is not utf-8. output from `locale` is 
     
    LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=    
  7. Like
    zhaowu got a reaction from chadv in Shell script locale in Maverick   
    found the solution: set it in /etc/launchd.conf
     
    setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8
  8. Like
    zhaowu reacted to deanishe in SmartFolders: Browse and search the contents of your Saved Searches   
    SmartFolders: Browse and search the contents of your Saved Searches
     
    List all the Smart Folders/Saved Searches (same thing) on your system and drill down into their contents. Works in much the same way as Alfred's File Filter, but Smart Folders are also available outside Alfred and are a bit more flexible.
     
    For example, you can configure a Smart Folder to show all video/audio/image files without having to specify each different filetype individually. If you already use Smart Folders, this workflow can save you the work of re-implementing them as File Filters.
     
    What's more, you can exclude specific filetypes with a Smart Folder, which Alfred cannot do.
     

     
    Features
    View and search a list of all Saved Searches on your system View and search the contents of the Smart Folders Add your own searches to go straight to a specific Smart Folder with a custom keyword Download/Installation
     
    Grab your copy from here. Install in the usual fashion.
     
    Usage
    .sf — List all your Smart Folders .sf [part of name] — Search for a specific Smart Folder TAB — Browse/search within Smart Folder ENTER — Open Smart Folder ⌘+ENTER — Reveal Smart Folder in Finder (same effect as opening it) .sf FOLDER 〉 [part of name] — Search contents of Smart Folder FOLDER ENTER — Open selected file/folder in default application ⌘+ENTER — Reveal file/folder in Finder smartfolders-help — Open included help file You can also set up your own Script Filters with a custom keyword that go straight to the contents of a specific Saved Search. For example, I have a Saved Search called "TODO" which contains all files/folders tagged "todo". I have linked this Smart Folder to the keyword .todo in Alfred.
     
    See the included example and the help file for more details.
     
    More info
     
    There's a bit more info on the GitHub page and in the included help file (smartfolders-help).
     
    This workflow uses alfred.py by nikipore and docopt.
     
    All comments and feedback welcome.
     
    Changelog
     
    2013-11-04
    Now works on non-English Macs. Thanks to kopischke for finding the problem and the solution.
  9. Like
    zhaowu reacted to iKam in [Mavericks] Merge all Finder windows.   
    Hi guys.
     
    The build-in Finder tab feature is awesome in Mavericks.
     
    And here is a little workflow to merge all current Finder windows into one single window with tabs.
     
    Hope it can help.
     

     
    Download it.
  10. Like
    zhaowu got a reaction from drking in Top Processes Based Memory or CPU Usage Workflow   
    Updated. Go the github site to download.
     
    I have updated to OSX 10.9. Anyone who is still using 10.8 please check if it is still working and let me know. Thanks.
  11. Like
    zhaowu reacted to venkytv in Coffee -- Yet another Caffeinate Workflow (Updated: 09 Nov 2013)   
    Another caffeinate workflow (uses the built-in "caffeinate" tool, *not* the third-party "Caffeine" app).  Unlike the ones I found already, this one uses the result feedback mechanism extensively.
     

    You can create jobs with custom times.  Any custom jobs you create are remembered and presented in the order of frequency of use.  For instance, if you create a custom caffeinate job of 45 minutes once, it will show up in your list from the next run.  And depending on how often you re-use that, it will bubble up or settle down in the list of available choices.

    And, of course, you can cancel existing jobs or reschedule them.
    This is how you configure the workflow if, for instance, you want display sleep to blocked too.

    This is the config file you'll need to edit to configure the caffeinate flags:

    Download it here: https://github.com/venkytv/alfred-caffeinate/raw/master/Alfred-Coffee.alfredworkflow
     
    Source: https://github.com/venkytv/alfred-caffeinate
     
    Written in perl and has no external dependencies.  Will use the Time::Duration module, if available.
  12. Like
    zhaowu got a reaction from thec13 in Top Processes Based Memory or CPU Usage Workflow   
    updated. check it here http://zhaocai.github.io/alfred2-top-workflow/
  13. Like
    zhaowu got a reaction from arsenty in Alfred2 workflow for google search suggestion, instant search, and current site search   
    The initial motive is to automatically use current front browser's site for site search. Current it includes google suggestion, instant search, site search and related search.
     
    Suggestions are welcome.
     
    Check it out in Github: http://zhaocai.github.com/alfred2-google-workflow/
     
     
    It is also an example to use bundler to include gems in an alfred workflow. The command is bundle install --standalone.

    Usage 1. Search Suggestion
    Keyword g: provide google search suggestions based on {query}.
    2. Instant Search
    Keyword gi: get instant google search results in Alfred based on {query}.
    3. Site Search
    Keyword gs: get instant google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use site:example.com query if you do not want to search for current front browser's site.
    4. Related Search
    Keyword related: get related google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use related:example.com query if you do not want to search for current front browser's site.
    Installation
    Two ways are provided:
    You can download the Google.alfredworkflow and import to Alfred 2. This method is suitable for regular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable for developers.
    Reference
    Site Search Workflow for Alfred 2 Google Search in-line results workflow
  14. Like
    zhaowu reacted to designandsuch in Workflow: Units - convert currency length temperature weight and more   
    A better unit converter
     

     
     
     Download V0.6
    contact thijs@designandsuch.com for questions, bugs, ideas and such
     
    try out the demo
     
     
     
     
    There are more unit converters available. but i didn't like the lack of speed due to the feeds. Thus i redid one myself which calculates everything on your mac. It fetches new currency data once in a while.. that's the only time when a second delay might appear. And in my humble opinion it's already better than all other unit converters around.
     
    I might add more units in the future but so far it has:
     
    - 7 units temperature  ( celsius, kelvin, fahrenheit etc. )
    - 21 units on length  ( km, miles, nautical miles etc. )
    - 15 units on weight   ( kg, lb, etc. )
    - 8 units on time ( days, hours, years months etc )
    - 18 units on digital memory ( GB, MB TB bytes, kilobytes etc )
    - 5 units on speed ( km/h, miles per hour etc.
    - 90 units on currencies ( euro, dollar, pounds, dinar etc. )
     
    that's 164 units
     
     
    It has a nice blind rating system. so the more you choose for one answer, the more it will be likely that that one shows up in the suggestions.  
    Automatic updates from a currency xml file  
    I am working on an automatic update on the whole workflow so i could add new features while you use it. But that is not finished yet.. and i thought.. let's start sharing maybe ill get some nice feedback for possible cool ideas.  
    * designed the icons myself, probably could work some more on those too.  
     
     
    it doesn't need explanation...
    if you'll just start typing
    "5 kilometer to miles..."
    or something you will figure out how it works.
     
    some screenshots:
     
     
     
     
  15. Like
    zhaowu got a reaction from mjv in Alfred2 workflow for google search suggestion, instant search, and current site search   
    The initial motive is to automatically use current front browser's site for site search. Current it includes google suggestion, instant search, site search and related search.
     
    Suggestions are welcome.
     
    Check it out in Github: http://zhaocai.github.com/alfred2-google-workflow/
     
     
    It is also an example to use bundler to include gems in an alfred workflow. The command is bundle install --standalone.

    Usage 1. Search Suggestion
    Keyword g: provide google search suggestions based on {query}.
    2. Instant Search
    Keyword gi: get instant google search results in Alfred based on {query}.
    3. Site Search
    Keyword gs: get instant google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use site:example.com query if you do not want to search for current front browser's site.
    4. Related Search
    Keyword related: get related google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use related:example.com query if you do not want to search for current front browser's site.
    Installation
    Two ways are provided:
    You can download the Google.alfredworkflow and import to Alfred 2. This method is suitable for regular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable for developers.
    Reference
    Site Search Workflow for Alfred 2 Google Search in-line results workflow
  16. Like
    zhaowu got a reaction from mklement0 in ⌘+F in the Alfred Preferences window to search for workflows   
    Please add ⌘+F in the Alfred Preferences window to search for workflows.
  17. Like
    zhaowu got a reaction from mklement0 in Provide a hotkey to pin Alfred on top temporarily   
    The reason is that some workflow requires a bit of time to run. and some of them related to monitoring, notes and tasks can be useful to just pin on the top for a while.
  18. Like
    zhaowu reacted to ClintonStrong in Search Safari and Chrome Tabs [Updated Feb 8, 2014]   
    Search your tabs in Safari, Chrome, Chromium, Chrome Canary, and Webkit.



    When you action a result, it'll bring your browser to the front and switch to the selected tab. You can also close a tab by holding down alt when actioning a result.

    Download from Packal
     
    Updated Feb 8, 2014: Made it more resilient to an AppleScript error that could cause a blank output.
     
    Update #2, Feb 1, 2014: Fixed regression with searching. You should be able to search anchored by words (and capital letters in CamelCase words) again.
     
    Updated Feb 1, 2014: Rewrote the workflow. It now supports copying the URL of a tab, viewing a tab in QuickLook, and closing a tab with a modifier key.
     
    Updated Oct 11, 2013: Fixed issue with improper string encoding in Mavericks and Ruby 2.0 breaking the workflow.
     
    Updated Oct 9, 2013: Updated for Mavericks and Ruby 2.0.0. Removed thumbnails for now (beta versions of Safari don't seem to generate them anymore). Fixed some issues where the proper window wouldn't always focus correctly.
     
    Updated May 4, 2013: Experimental support for webpage thumbnails. Prevent launching browsers when WebKit is open.

    Updated Mar 26, 2013: (Hopefully) prevent launching browsers when it's not supposed to, and fix an issue with it not detecting WebKit.
  19. Like
    zhaowu got a reaction from derico in Top Processes Based Memory or CPU Usage Workflow   
    Alfred 2 Top Process Workflow
      The initial motive of this workflow is to avoid frequent visits to the Activity Monitor when the fan goes loud. Now it has been evolved with two major features:   Suggestions are welcome. And Please go to http://zhaocai.github.com/alfred2-top-workflow/ for better view of the installation instruction.   - 1) List/Kill Top Processes by Memory/CPU/IO Usage       - 2) (working in progress) Get a glance of system status including internal battery, fan speed, CPU/GPU Temperature, bluetooth battery, disk capacity, etc.     Usage   0. Show Help   Just type -?, -h, or --help after the keyword to show help.     1. Top Processes   A. Keywords:   1.) top: Show a mixed processes list based on top cpu/memory usage.          1. top -m, top --memory to show processes ranked by memory usage        2. top -c, top --cpu, to show processes ranked by cpu usage        3. top -i, top --io, to show processes ranked by io usage with callback from top io trace collector.      Top IO requires [DTrace][Dtrace] and it would take a while to finish. The new callback design is to run the job in he background and post a notification (OSX 10.8+) using notification center. Click on the notification to show the result in alfred.           Modifier Key      - none    : The default action is to list files opened by process ID    - control : Kill the selected process    - command : kill forcefully (kill -9)    - alt     : Nice (lower) the selected process's cpu priority    - shift   : Search web for process information     2.) kill: Filter process to kill.   Modifier Key      - none: The default action is to kill by process ID    - command : kill forcefully (kill -9)   3.) lsof: List files opened by process id   Modifier Key      - none: The default action is to reveal file in Finder   B. Filter by Query   1.) To search for process state, use :idle, :sleep, :stopped, :zombie, :uninterruptible, :runnable, etc.       2. Glance an Eye on your system   #### A. Keywords:   glance: Show system information including internal battery, bluetooth battery, disk capacity, etc.       B. Change Display Order   Activate Alfred Preferences → Advanced → Top Result Keyword Latching       Hit Enter for the feedback item you wish to show up on the top.     Installation Two ways are provided:
    You can download the Top Processes.alfredworkflow and import to Alfred 2. This method is suitable forregular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. Check rake -T for available tasks. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable fordevelopers.
        Troubleshooting   1. Does not work in Mac OSX 10.9 (Maverick)   In OSX 10.9, the system ruby is upgraded to 2.0.0. You need to download the new version of this workflow which packs the ruby gems for 2.0.0 inside.   If the downloaded version does not work, try    1.) open Terminal.app. If you use rvm or rbenv, switch to the system ruby. run cd "$HOME/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/me.zhaowu.top" && rake bundle:update   2. iotop causes mouse lagging   This issue is not caused by this workflow but by [DTrace][DTrace]. The related system log message is IOHIDSystem cursor update overdue. Resending.. In my Macbook Pro, any [DTrace][DTrace] based program will introduce this issue including the mac built-in /usr/bin/iotop, and /Applications/Xcode.app/Contents/Applications/Instruments.app .   I upgrade to OS X 10.9 and this issue is resolved.   3. Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8   Add the following contents to /etc/launchd.conf. Restart is required.   setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8      
  20. Like
    zhaowu got a reaction from thec13 in Top Processes Based Memory or CPU Usage Workflow   
    Alfred 2 Top Process Workflow
      The initial motive of this workflow is to avoid frequent visits to the Activity Monitor when the fan goes loud. Now it has been evolved with two major features:   Suggestions are welcome. And Please go to http://zhaocai.github.com/alfred2-top-workflow/ for better view of the installation instruction.   - 1) List/Kill Top Processes by Memory/CPU/IO Usage       - 2) (working in progress) Get a glance of system status including internal battery, fan speed, CPU/GPU Temperature, bluetooth battery, disk capacity, etc.     Usage   0. Show Help   Just type -?, -h, or --help after the keyword to show help.     1. Top Processes   A. Keywords:   1.) top: Show a mixed processes list based on top cpu/memory usage.          1. top -m, top --memory to show processes ranked by memory usage        2. top -c, top --cpu, to show processes ranked by cpu usage        3. top -i, top --io, to show processes ranked by io usage with callback from top io trace collector.      Top IO requires [DTrace][Dtrace] and it would take a while to finish. The new callback design is to run the job in he background and post a notification (OSX 10.8+) using notification center. Click on the notification to show the result in alfred.           Modifier Key      - none    : The default action is to list files opened by process ID    - control : Kill the selected process    - command : kill forcefully (kill -9)    - alt     : Nice (lower) the selected process's cpu priority    - shift   : Search web for process information     2.) kill: Filter process to kill.   Modifier Key      - none: The default action is to kill by process ID    - command : kill forcefully (kill -9)   3.) lsof: List files opened by process id   Modifier Key      - none: The default action is to reveal file in Finder   B. Filter by Query   1.) To search for process state, use :idle, :sleep, :stopped, :zombie, :uninterruptible, :runnable, etc.       2. Glance an Eye on your system   #### A. Keywords:   glance: Show system information including internal battery, bluetooth battery, disk capacity, etc.       B. Change Display Order   Activate Alfred Preferences → Advanced → Top Result Keyword Latching       Hit Enter for the feedback item you wish to show up on the top.     Installation Two ways are provided:
    You can download the Top Processes.alfredworkflow and import to Alfred 2. This method is suitable forregular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. Check rake -T for available tasks. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable fordevelopers.
        Troubleshooting   1. Does not work in Mac OSX 10.9 (Maverick)   In OSX 10.9, the system ruby is upgraded to 2.0.0. You need to download the new version of this workflow which packs the ruby gems for 2.0.0 inside.   If the downloaded version does not work, try    1.) open Terminal.app. If you use rvm or rbenv, switch to the system ruby. run cd "$HOME/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/me.zhaowu.top" && rake bundle:update   2. iotop causes mouse lagging   This issue is not caused by this workflow but by [DTrace][DTrace]. The related system log message is IOHIDSystem cursor update overdue. Resending.. In my Macbook Pro, any [DTrace][DTrace] based program will introduce this issue including the mac built-in /usr/bin/iotop, and /Applications/Xcode.app/Contents/Applications/Instruments.app .   I upgrade to OS X 10.9 and this issue is resolved.   3. Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8   Add the following contents to /etc/launchd.conf. Restart is required.   setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8      
  21. Like
    zhaowu got a reaction from mixterdee in Alfred2 workflow for google search suggestion, instant search, and current site search   
    The initial motive is to automatically use current front browser's site for site search. Current it includes google suggestion, instant search, site search and related search.
     
    Suggestions are welcome.
     
    Check it out in Github: http://zhaocai.github.com/alfred2-google-workflow/
     
     
    It is also an example to use bundler to include gems in an alfred workflow. The command is bundle install --standalone.

    Usage 1. Search Suggestion
    Keyword g: provide google search suggestions based on {query}.
    2. Instant Search
    Keyword gi: get instant google search results in Alfred based on {query}.
    3. Site Search
    Keyword gs: get instant google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use site:example.com query if you do not want to search for current front browser's site.
    4. Related Search
    Keyword related: get related google search results of front browser's site in Alfred based on {query}.
    Supported browsers are: Safari, Google Chrome, Opera, OmniWeb, etc.
    You can use related:example.com query if you do not want to search for current front browser's site.
    Installation
    Two ways are provided:
    You can download the Google.alfredworkflow and import to Alfred 2. This method is suitable for regular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable for developers.
    Reference
    Site Search Workflow for Alfred 2 Google Search in-line results workflow
  22. Like
    zhaowu got a reaction from mklement0 in Top Processes Based Memory or CPU Usage Workflow   
    Alfred 2 Top Process Workflow
      The initial motive of this workflow is to avoid frequent visits to the Activity Monitor when the fan goes loud. Now it has been evolved with two major features:   Suggestions are welcome. And Please go to http://zhaocai.github.com/alfred2-top-workflow/ for better view of the installation instruction.   - 1) List/Kill Top Processes by Memory/CPU/IO Usage       - 2) (working in progress) Get a glance of system status including internal battery, fan speed, CPU/GPU Temperature, bluetooth battery, disk capacity, etc.     Usage   0. Show Help   Just type -?, -h, or --help after the keyword to show help.     1. Top Processes   A. Keywords:   1.) top: Show a mixed processes list based on top cpu/memory usage.          1. top -m, top --memory to show processes ranked by memory usage        2. top -c, top --cpu, to show processes ranked by cpu usage        3. top -i, top --io, to show processes ranked by io usage with callback from top io trace collector.      Top IO requires [DTrace][Dtrace] and it would take a while to finish. The new callback design is to run the job in he background and post a notification (OSX 10.8+) using notification center. Click on the notification to show the result in alfred.           Modifier Key      - none    : The default action is to list files opened by process ID    - control : Kill the selected process    - command : kill forcefully (kill -9)    - alt     : Nice (lower) the selected process's cpu priority    - shift   : Search web for process information     2.) kill: Filter process to kill.   Modifier Key      - none: The default action is to kill by process ID    - command : kill forcefully (kill -9)   3.) lsof: List files opened by process id   Modifier Key      - none: The default action is to reveal file in Finder   B. Filter by Query   1.) To search for process state, use :idle, :sleep, :stopped, :zombie, :uninterruptible, :runnable, etc.       2. Glance an Eye on your system   #### A. Keywords:   glance: Show system information including internal battery, bluetooth battery, disk capacity, etc.       B. Change Display Order   Activate Alfred Preferences → Advanced → Top Result Keyword Latching       Hit Enter for the feedback item you wish to show up on the top.     Installation Two ways are provided:
    You can download the Top Processes.alfredworkflow and import to Alfred 2. This method is suitable forregular users.
    You can git clone or fork this repository and use rake install and rake uninstall to install. Check rake -T for available tasks. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable fordevelopers.
        Troubleshooting   1. Does not work in Mac OSX 10.9 (Maverick)   In OSX 10.9, the system ruby is upgraded to 2.0.0. You need to download the new version of this workflow which packs the ruby gems for 2.0.0 inside.   If the downloaded version does not work, try    1.) open Terminal.app. If you use rvm or rbenv, switch to the system ruby. run cd "$HOME/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/me.zhaowu.top" && rake bundle:update   2. iotop causes mouse lagging   This issue is not caused by this workflow but by [DTrace][DTrace]. The related system log message is IOHIDSystem cursor update overdue. Resending.. In my Macbook Pro, any [DTrace][DTrace] based program will introduce this issue including the mac built-in /usr/bin/iotop, and /Applications/Xcode.app/Contents/Applications/Instruments.app .   I upgrade to OS X 10.9 and this issue is resolved.   3. Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8   Add the following contents to /etc/launchd.conf. Restart is required.   setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8      
  23. Like
    zhaowu got a reaction from Tyler Eich in Provide a hotkey to pin Alfred on top temporarily   
    The reason is that some workflow requires a bit of time to run. and some of them related to monitoring, notes and tasks can be useful to just pin on the top for a while.
  24. Like
    zhaowu got a reaction from drking in Provide a hotkey to pin Alfred on top temporarily   
    The reason is that some workflow requires a bit of time to run. and some of them related to monitoring, notes and tasks can be useful to just pin on the top for a while.
  25. Like
    zhaowu reacted to derfla in Github command bar   
    It works similar to the GitHub command bar and to its update, the keyword is "gh" (example: "gh github/gollum issues").
     
    With enter you can open the entry in your default browser. If you just want to copy the URL of a repo/user/issue, hit cmd+c on an entry. Hit cmd+enter to paste the URL to the front most app. With shift or cmd+y you can open the URL in QuickLook.
     
    You have to login (gh > login <user>) before you can use the workflow. The login command opens a dialog box for the password. The workflow does not save the plain password, only a cookie for the login.
     
    DOWNLOAD | GitHub Repository | Command list
     

×
×
  • Create New...