Skip to content

Instantly share code, notes, and snippets.

View razasyedh's full-sized avatar

Syed Raza razasyedh

View GitHub Profile
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@bpeterso2000
bpeterso2000 / argparse_unix_command_demo.py
Last active August 29, 2015 14:00
Emulating cat to demo creating Unix command look & feel with argparse
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
argparse Unix command demo
--------------------------
Simple demonstration of using argparse to emulated a Unix command's look & feel
Demonstrates stdin.
Emulates Unix 'cat' <GNU textutils> written by Torborjn Ganlund and
@thedillonb
thedillonb / extract.rb
Created February 1, 2014 17:07
Extracts glyphs from a TTF format into multiple PNG files using ImageMagick. Boo
# Usage: ruby extract.rb <TTF> <size: WxH> <output dir>
require 'ttfunk'
file = TTFunk::File.open(ARGV[0])
size = ARGV[1]
output_dir = ARGV[2]
`mkdir #{output_dir}`
cmap = file.cmap
chars = {}
@kogakure
kogakure / .gitignore
Last active December 17, 2023 08:21
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst