Skip to content

Instantly share code, notes, and snippets.

View serkaniyigun's full-sized avatar

Serkan İyigün serkaniyigun

View GitHub Profile
@serkaniyigun
serkaniyigun / gist:9649880
Created March 19, 2014 19:53
linux find large files
must be root
for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11
@serkaniyigun
serkaniyigun / gist:9649920
Created March 19, 2014 19:55
qmail clear queue
#!/bin/bash
echo "Stopping Qmail - MinisterAlan"
/etc/init.d/qmail stop
echo "Clearing the Mail Queue"
cd /var/qmail/queue/info
@serkaniyigun
serkaniyigun / gist:10506125
Created April 11, 2014 22:17
curl ca cert
export CURL_CA_BUNDLE=/path/to/ca-bundle.crt

iTerm2

http://www.iterm2.com/#/section/downloads

Get the iTerm color settings

https://raw.github.com/altercation/solarized/master/iterm2-colors-solarized/Solarized%20Dark.itermcolors

Apply them in iTerm through iTerm -> preferences -> profiles -> -> colors -> load presets -> import. You can create a different profile, other than Default if you wish to do so.

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

@serkaniyigun
serkaniyigun / tor browser arch linux
Created September 27, 2015 17:11
tor browser arch linux aur pgp key error
curl "https://pgp.mit.edu/pks/lookup?op=get&search=0x2E1AC68ED40814E0" -o - | gpg --import
@serkaniyigun
serkaniyigun / SMS Gateway
Created March 17, 2013 10:18
.NET SMS Gateway Api Post cURL
public void SendSMS(string smsText, string sendTo)
{
#region Variables
string userId = ConfigurationManager.AppSettings["SMSGatewayUserID"];
string pwd = ConfigurationManager.AppSettings["SMSGatewayPassword"];
string postURL = ConfigurationManager.AppSettings["SMSGatewayPostURL"];
StringBuilder postData = new StringBuilder();
string responseMessage = string.Empty;
HttpWebRequest request = null;
@serkaniyigun
serkaniyigun / install_sublime
Created August 6, 2013 10:50
bash script install Sublime Text 2 on Linux
#!/bin/bash
# Sublime Text 2.0.2 install script
# Confirmation
echo 'Proceed with installing Sublime Text 2.0.2?'
echo '1. Yes'
echo '2. No'
echo ''
read REPLY
@serkaniyigun
serkaniyigun / gist:6746497
Created September 28, 2013 21:00
bash_profile
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM$
eval "$(rbenv init -)"
#Fix $PATH for homebrew
homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH
@serkaniyigun
serkaniyigun / gist:6767154
Created September 30, 2013 17:25
CSS Reset
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,