Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@railwaycat
railwaycat / mac-switch-meta.el
Created August 28, 2012 13:43
meta key switch
;; Keybonds
(global-set-key [(hyper a)] 'mark-whole-buffer)
(global-set-key [(hyper v)] 'yank)
(global-set-key [(hyper c)] 'kill-ring-save)
(global-set-key [(hyper s)] 'save-buffer)
(global-set-key [(hyper l)] 'goto-line)
(global-set-key [(hyper w)]
(lambda () (interactive) (delete-window)))
(global-set-key [(hyper z)] 'undo)
@markusfisch
markusfisch / README.md
Last active November 8, 2024 08:43
Handy shell script that eases building and running Android apps from the command line with ant and adb

Handy Android shortcuts

This little script eases building, running, testing and analyzing Android apps with [ant][2] and [adb][1].

You may also see it as interactive dictionary of useful [adb commands][1].

How to use

@emjayess
emjayess / goog-query-args
Created November 30, 2012 05:33
google search's query string args
https://www.google.com/webhp
?sourceid=chrome-instant
&ion=1
&ie=UTF-8#hl=en
&safe=off
&tbo=d
&sclient=psy-ab
&q=here%20lies%20a%20fucking%20search%20query
&oq=
&gs_l=
@pwightman
pwightman / rbenv.md
Last active December 19, 2017 06:52
rbenv, faster Ruby, and Zeus.

RVM, which is a rather heavy-weight solution to gem conflicts, has been chafing on me so here's a tutorial on getting going with rbenv instead, which just manages Ruby and leaves gem version dependencies to Bundler.

NOTE: Just because I'm switching, doesn't mean rbenv is necessarily "better" than RVM. I'm often switching between technologies to try them out and I could end up hating rbenv in a month (though I don't anticipate it). RVM is still a fine piece of work and you'll get along with it just fine.

Deleting RVM

If you have RVM installed, you can delete it easily with:

rvm implode
@digitaljhelms
digitaljhelms / gist:4287848
Last active August 8, 2025 12:55
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@aseemk
aseemk / README.md
Last active February 14, 2018 16:41
A bookmarklet for "selecting all" (technically, "toggling all") checkboxes on the Amazon AWS S3 console.
@jimothyGator
jimothyGator / README.md
Last active July 30, 2025 07:45
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@marianposaceanu
marianposaceanu / linux_performance.md
Last active May 25, 2024 11:30
Linux simple performance tweaks

Linux simple performance tweaks

Change the I/O Scheduler

Open $ vim /etc/default/grub then add elevator=noop next to GRUB_CMDLINE_LINUX_DEFAULT. Run $ update-grub and $ cat /sys/block/sda/queue/scheduler to be sure that noop is being used:

$ vim /etc/default/grub
$ update-grub
$ cat /sys/block/sda/queue/scheduler

[noop] deadline cfq

@cmartinbaughman
cmartinbaughman / GoogleHackMasterList.txt
Last active March 24, 2025 04:01
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@mikesprague
mikesprague / gist:5881937
Last active November 25, 2022 18:24
AWS: Bucket Policy Example (Allow Get by Referer)
{
"Version": "2008-10-17",
"Id": "http referer policy example",
"Statement": [
{
"Sid": "Allow get requests from certain domains (including local development)",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket-name-here/*",