Jump to content

aik099

Member
  • Content Count

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    aik099 reacted to moul in Gauth: Google Authenticator (Time-Based Two-Factor Authentication)   
    Description
    Equivalent of the mobile versions of Google Authenticator: https://itunes.apple.com/en/app/google-authenticator/id388497605?mt=8.
     
    I personally use it on Gmail, Amazon AWS, Github, Evernote and Dropbox
     
    A bigger list is available on Wikipedia: http://en.wikipedia.org/wiki/Two-step_verification
     
    There is also a Pam module project on Github: https://github.com/nlm/pam-google-authenticator
     

     
    Non-exhaustive list of links for "secret" installation
    Google: http://www.google.com/landing/2step/ Dropbox: https://www.dropbox.com/help/363/en Evernote: http://blog.evernote.com/blog/2013/05/30/evernotes-three-new-security-features/ Github: https://github.com/blog/1614-two-factor-authentication Amazon AWS: http://aws.amazon.com/iam/details/mfa/ Facebook: https://www.facebook.com/settings?tab=security Dependencies
    Python>=2.7  
    System Modifications
    Create a ~/.gauth file with your secrets, ie:
    [google - bob@gmail.com] secret = xxxxxxxxxxxxxxxxxx [evernote - robert] secret = yyyyyyyyyyyyyyyyyy It's also possible to add credentials with "gauth add [account] [secret]" from Alfred
     
    Source Code: Github
    https://github.com/moul/alfred-workflow-gauth  
    Download Links
    Packal: http://www.packal.org/workflow/gauth-google-authenticator Direct link: https://github.com/packal/repository/raw/master/com.alfredapp.moul.gauth/google_authenticator.alfredworkflow  
    Screenshots
     

     

     

     
    Acknowledgments
    Original alarm clock iconAlex Auda Samora from The Noun Project Licensed under Creative Commons Attribution Status & signs iconsHereldar Terkenya Licensed under a Creative Commons Attribution-Share Alike 3.0 License Original source codeManfred Touron Serial contributorGilberto Olimpio  
    License
    MIT
  2. Like
    aik099 reacted to rice.shawn in Caffeinate Control v 3 Released   
    Update: rewrote the entire thing as a bash script. It's much faster now. All the links are the same. Grab it if you want. Let me know if there are any bugs. (I couldn't find any).
     
    Caffeinate Control v2 v3
     
    I just pushed a major update to my old Caffeinate workflow, and I figured I'd just start a new thread. It is a complete overhaul. Find version 2 3 on Packal.org: packal page. 
     
    Option Configuration
     
    You can configure how you want Caffeinate to work for you. Do you want to keep the system awake? Just the display? Everything? Just type "caff configure" (or "caff c"), and you can set the options easily. If you want to change how it works later, then just run the config again. Change however frequent you want!
     
    Defaults
     
    We default to "i" or just to keep the system from idling (which lets you display turn off). Just run the config and choose more options to as you please. Multiple options are available by pressing cmd while clicking.
     
    Commands
     
    Just type "caff" to get started. It will tell you the status and give you the most relevant option first.     Example Arguments "caff e" enables caffeinate indefinitely "caff d" disables caffeinate "caff 15 2" enables caffeinate for 15 hours and 2 minutes "caff 23" enables caffeinate for 23 minutes "caff 2h" enables caffeinate for 2 hours "caff configure" opens the configuration dialog "caff help" opens the help dialog. Here are some screenshots:
     
    Shows the status left in hours / minutes, depending on how much time is left. You can also see the configure and help entries in the bottom. I need to get around to uninstalling caffeine because I don't use it anymore.
     

     
    Configure the behavior of how you want it to sleep. Just select the options and press "Set Options".
     

     
    If you input one number, it defaults to minutes. If you put in two numbers, it interprets as hours and minutes.
     

     
    You can specify with arguments too. Feel free to type out the whole words "hours" or "minutes" or whatever part of them you want to.
     

     
    Here's the help, explaining it a tiny bit more. Click on "More Info..." to be taken to the caffeinate man page.
     

     
    If you get really excited about typing a lot of minutes, then we'll still let you know how many hours that is... 
     

     
     
    (edited to add more pretty screenshots.)
  3. Like
    aik099 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.
  4. Thanks
    aik099 reacted to isometry in SSH with smart hostname autocompletion   
    This one has been at the top of my Alfred wishlist since I downloaded my first Alfred v0.whatever beta: a workflow to open an ssh session (using the default ssh: protocol handler) with "smart" hostname autocompletion (based on ~/.ssh/config, ~/.ssh/known_hosts, /etc/hosts, Bonjour or any file containing the names of hosts you need to connect to).
     
    Comments and suggestions welcome.
     
    Download v1.3 for Alfred 2
    Download v2.0 for Alfred 3
     
    Source and Issue Tracker on github
     
    Robin
     
    Updates
    2013-03-14 00:00, v0.4: rudimentary fuzzy matching, to pull entries from /etc/hosts as well as ~/.ssh/known_hosts, and to deal with usernames properly.
    2013-03-14 09:00, v0.5: smart host matching.
    2013-03-14 22:45, v0.6: ~/.ssh/config and Bonjour discovery (including full BTMM support), and improved error handling.
    2013-03-14 23:00, v0.61: explicitly removed 'broadcasthost' from the list of possible matches.
    2013-03-15 00:30, v0.7: match '.' as '.'
    2013-03-16 10:45, v0.8: refactored code and add tab autocompletion.
    2013-03-16 13:30, v0.9: oops - the last update broke the workflow if you didn't have pybonjour installed; fixed. Continued refactoring: now using nikipore's alfred-python module.
    2013-03-16 14:15, v0.10: further refactoring to break core functionality out into a dedicated module (enabling module compilation). Combined with caching of file parsing results this should deliver significantly enhanced performance (not that it was slow before).
    2013-03-16 23:00, v1.0: complete refactoring and move release to github. New feature: display the source(s) of each suggested completion. This ought to be the last update for a while.
    2013-03-16 08:40, v1.1: fixed breakage when either of ~/.ssh/config or ~/.ssh/known_hosts didn't exist.
    2016-06-02 21:00, v1.3: fixed path to Alfred cache (thanks @okapi!).
    2016-10-07 12:30, v2.0: The Alfred 3 Release (including removal of built-in sources and addition of custom sources)
  5. Thanks
    aik099 reacted to Benzi in (faster) Menu Search   
    I have re-implemented ctwise's excellent implementation of the Menu Search workflow in Swift.
     
    This version is ever so slightly faster (at least on my machine ) - YMMV.
     
    Requires OSX 10.7+
     
    Download
     
    Setup
    Accessibility must be enabled for Alfred in order for this to work properly.
     
    For example, in macOS Sierra, this is configured using the Security and Privacy preference pane, under the Privacy tab with the Accessibility section selected. Alfred must be included in the list of apps allowed to control your computer. This step is required for the workflow to generate the list of menu items, and also click on a specific menu item. 
     
    Here's a snapshot of what the preference pane might look like in macOS Sierra.
     

    Usage
    Type m in Alfred to list menu bar items for front most application You can filter menu items by name, or do a fuzzy search.
    E.g
    m new tab will match the menu item New Tab m cw will match the menu item Close Window Settings
    You can change the workflow environment variables to fine tune menu listings
    -show-disabled true/false controls if diabled menu items should be shown (default is false) - change this setting if certain items are not displayed, even though active
    -show-apple-menu true/false if true, menus items under the apple menu will be shown (default is false)
    -max-children number how many sub-menu items to load for each menu item (default is 30)
    -max-depth number how many nested levels if sub menus should be listed (default is 10)
     
    v1.6 and above
    You can also have customised settings per app. Typing ms into Alfred will give you a list of options to configure your settings.txt config file. The workflow comes bundled with a sample configuration file for reference. Your app settings will override any workflow level variable settings you may have specified.
     
    Here's the settings file I use for reference:
    # always show disabled menu items appFilters { app: "BibDesk" showDisabledMenuItems: true } # for Safari, ignore the History and Bookmarks # menus since loading it take a lot of time appFilters { app: "Safari" ignoreMenuPaths { path: "History" } ignoreMenuPaths { path: "Bookmarks" } } # For Finder alone, show the Apple menu entries, # and ignore any recent entries listed in the # Apple > Recent Items menu appFilters { app: "Finder" showAppleMenu: true ignoreMenuPaths { path: "Apple" path: "Recent Items" } } Change log
    1.0 - Initial Release
    1.1 - Added Fuzzy Text Matching for Menus
    If you have a menu item New Tab, then typing m nt in Alfred will match New Tab, since n and t matches the first letters of the menu text.
    1.1.1 - Changed run behaviour to terminate previous script, this makes the experience slightly more faster
    1.2 - Completely native menu clicking, removed reliance on AppleScript
    1.2.1 - Performance improvements when generating menus using direct JSON encoding 1.2.2 - More performance improvements while filtering menu items 1.3 - Added -async flag to allow threaded scanning and populating of menus
    1.4 - Added -cache setting to enable menu result caching and also set a timeout for cache invalidation
    1.4.1 - Invalidate cache (if present) after actioning a menu press 1.4.2 - Slide the cache invalidation window forward in case we get invalidated by a near miss 1.4.3 - Speed improvements to caching, text search and fuzzy matching 1.4.4 - Added -no-apple-menu flag that will skip the apple menu items 1.4.5 - Tuned fuzzy matcher, allows non-continuous anchor token search 1.5 - Faster caching using protocol buffers
    1.5.1 - Reduced file creation for cache storage
    1.5.2 - Better support for command line apps that create menu bar owning applications
    1.5.3 - Protocol buffer everything - microscopic speed improvements, but hey...
    1.5.4 - Added various environment variables to fine tune menu listings
    1.5.5 - Tweaked ranking of search results for better menu listings
    1.6 - Per app customization via the `settings.txt` configuration file
     
     
×
×
  • Create New...