Skip to content

Instantly share code, notes, and snippets.

@cziko
cziko / 301_check
Created August 7, 2011 10:54
Checking 301 redirects
urls = []
urls << "pipejump.com"
urls << "www.pipejump.com"
urls << "applicake.pipejump.com"
urls << "https://pipejump.com"
urls << "https://www.pipejump.com"
urls << "https://applicake.pipejump.com"
urls << "getquotebase.com"
urls << "www.getquotebase.com"
urls << "applicake.getquotebase.com"
@cziko
cziko / things-yammer-checkin
Created July 8, 2011 12:00 — forked from marcinbunsch/things-yammer-checkin
Things - Yammer checkin script
#!/usr/bin/ruby
# gem install things-client --source http://gemcutter.org
# gem install broadcast
require 'rubygems'
require 'things'
require 'broadcast'
@cziko
cziko / addmysqluser
Created July 8, 2011 11:41
Add mysql user
GRANT ALL PRIVILEGES ON database.* TO 'user'@'host' IDENTIFIED BY 'pass' WITH GRANT OPTION;
@cziko
cziko / nginxres
Created July 8, 2011 11:40
Restart nginx
sudo killall nginx; sleep 1; sudo /usr/local/nginx/sbin/nginx;
@cziko
cziko / flushdns
Created July 8, 2011 11:40
Flush DNS cache
sudo dscacheutil -flushcache; dscacheutil -flushcache;
@cziko
cziko / things-yammer-checkin
Created July 8, 2011 11:28
Things - Yammer checkin script
#!/usr/bin/ruby
# gem install things-client --source http://gemcutter.org
# gem install broadcast
require 'rubygems'
require 'things'
require 'broadcast'