Long/interesting command you'd like bookmarked for later? append 'BK' to save it to the $bookmarks file. Add this to ie .zshrc
bookmarks='~/bookmarks.cmdline.sh'
alias -g BK='>> $bookmarks && wc -l $bookmarks'Usage
echo NotInteresting BK
Long/interesting command you'd like bookmarked for later? append 'BK' to save it to the $bookmarks file. Add this to ie .zshrc
bookmarks='~/bookmarks.cmdline.sh'
alias -g BK='>> $bookmarks && wc -l $bookmarks'Usage
echo NotInteresting BKhttps://github.com/paoloantinori/hhighlighter
Highlight owned by me, mega/giga byte+ and file extension
ls -lrS | h -n '[0-9]+?\.?[0-9]+?[MG]' `whoami` '\.[^.]*[a-z0-9]*$
To bind this to F2 (represented as ^[OQ') in zsh:
| # line 5 is still noisy | |
| # this won't block if ssh-add requires password. you will be prompted to enter it after loop | |
| function add_pgp_keys { | |
| for pgp in $(cat "$HOME/.ssh/auto"); do | |
| echo $pgp | |
| ssh-add "/Users/`whoami`/.ssh/$pgp" &2>1 > /dev/null | |
| echo "ssh-add result: $?" | |
| done | |
| ssh-add -l |
| #!/bin/sh | |
| # | |
| # A script to make it easier to edit resources in mac.apps on the commandline | |
| # Isam M 2015 <http://github.com/lsd/update-plist.sh> | |
| # exit if pipeline (1+ cmd) fails | |
| set -e | |
| echo | |
| echo "USAGE (default English): To open ScreenCapture.strings in SystemUIServer.app/C/R/English.lproj |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>author</key> | |
| <string>Brian Mitchell</string> | |
| <key>name</key> | |
| <string>Monochromatic</string> | |
| <key>settings</key> | |
| <array> |
Upgrading to Lion or Yosemite and WebStorm 9, I noticed key repeat was
turned off for the IdeaVim plugin h j k l keys.
defaults write -g ApplePressAndHoldEnabled -bool false in a terminal will enable
key repeat for every app. This can alternatively be found in the accessibility
settings in OS X' preferences.
The most useful command here is probably dota_force_right_click_attack 1
More will be added as they come. The essentials DO NOT require sv_cheats
and as far as I know do not violate any official competition rules.
-console| # one-liner example: | |
| # perl -e '$r="1346518,CLOSED,04/09/2013 12:00:00 AM,136 EAST 27 STREET,1018152,555,,49,SPOPS,05/24/2013 12:00:00 AM,A8,05/22/2013 12:00:00 AM"; print "$r (orig)\n"; $rand=int(rand 5)+1; $r =~ s/(,[0-9]{7},)[0-9]+(,,..)/\1$rand\2/; print $r;' | |
| # I broke it up into lines to make it easier to understand | |
| $rand = int(rand 5) + 1; | |
| $row = "1346518,CLOSED,04/09/2013 12:00:00 AM,136 EAST 27 STREET,1018152,555,,49,SPOPS,05/24/2013 12:00:00 AM,A8,05/22/2013 12:00:00 AM"; | |
| print "$row (old)\n"; |
| /*Display an overlay of available domains. 01/13/2013 <http://github.com/lsd>*/ | |
| /*Namecheap.com bulk "Domain Name Search" results page only.*/ | |
| 'use strict'; | |
| //var pre="Available Domains\n---\n", | |
| var pre='', | |
| style='z-index:9999;width:250px;height:100%;background:rgb(55,55,55);color:#ddd;font-size:16px;padding:5px;float:left;border:2px dashed #eee;position:fixed;font-family: Ubuntu, Verdana, Helvetica;'; | |
| none='empty results. is this is the namecheap.com search results page for BULK domains?', | |
| px=" ", | |
| sx="\n", | |
| _d='<div style="margin:10px auto 10px 50%;left:0;top:0;position:fixed;z-index:9999999;"><pre id="availdomains" style="'+style+'";>'+none+'</pre></div>', |
| # Place me in <app>/config/initializers/backtrace_silencer.rb | |
| # Be sure to restart your server when you modify this file. | |
| # No more RoutingError exceptions clogging your logs. | |
| # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. | |
| # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } | |
| # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. | |
| # Rails.backtrace_cleaner.remove_silencers! |