Skip to content

Instantly share code, notes, and snippets.

View Fastidious's full-sized avatar
🐵
Just another one.

Fastidious Fastidious

🐵
Just another one.
View GitHub Profile
@Fastidious
Fastidious / nginx_image_filter.conf
Last active August 26, 2015 18:37 — forked from tsertkov/nginx_image_filter.conf
On the fly image resizing with image_filter
# On the fly resizing of images inside /images/*/
# based on query string "width" and "height" parameters
location ~ /images/(.+)/ {
set $width -;
set $height -;
set $entity $1;
if ($arg_width) {
set $width $arg_width;
file-icons
tool-bar
tool-bar-main
atom-material-ui
atom-material-syntax
markdown-writer
@Fastidious
Fastidious / Mavericks-Boot.txt
Last active August 29, 2015 14:07
Create Mavericks Bootable USB
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
@Fastidious
Fastidious / create_dmg.txt
Created November 17, 2014 19:23
Create a DMG
hdiutil create -format UDZO -srcfolder folder_to_compress archive_name.dmg
@Fastidious
Fastidious / show-all-256-colors.py
Last active August 29, 2015 14:10 — forked from mgedmin/show-all-256-colors.py
Print a swatch using all 256 colors of 256-color-capable terminals.
#!/usr/bin/python
"""Print a swatch using all 256 colors of 256-color-capable terminals."""
__author__ = "Marius Gedminas <marius@gedmin.as>"
__url__ = "https://gist.github.com/mgedmin/2762225"
__version__ = '2.0'
def hrun(start, width, padding=0):
@Fastidious
Fastidious / extract-files-from-msi.txt
Created February 12, 2015 15:09
Extract files from an .msi
msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo
@Fastidious
Fastidious / sublime-conf
Created April 12, 2015 17:29
Sublime Text Configuration
{
"theme": "Afterglow.sublime-theme",
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"tabs_small": true,
"sidebar_size_12": true,
"sidebar_row_padding_medium": true,
"status_bar_brighter": true,
"color_inactive_tabs": true,
"tabs_padding_small": true,
"font_face": "Inconsolata-g"
@Fastidious
Fastidious / most-useful-thing-in-bash
Created April 13, 2015 00:49
Most useful thing in Bash
Create ~/.inputrc and fill it with this:
"\e[A": history-search-backward
"\e[B": history-search-forward
# -p get all images, etc. needed to display HTML page.
# --mirror turns on recursion and time-stamping, sets infinite
# recursion depth and keeps FTP directory listings
# --html-extension save HTML docs with .html extensions
# --convert-links make links in downloaded HTML point to local files.
wget --mirror -p --html-extension --convert-links www.example.com
@Fastidious
Fastidious / s3.sh
Last active August 29, 2015 14:20 — forked from chrismdp/s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
file=$2