Skip to content

Instantly share code, notes, and snippets.

View scalp42's full-sized avatar
🪂

Anthony Scalisi scalp42

🪂
View GitHub Profile
@scalp42
scalp42 / TaskRabbit postgis
Created May 3, 2012 21:25 — forked from rolo/gist:1481128
Install Postgres 9.1, PostGIS and create PostGIS template on Ubuntu 12.04 Precise Pangolin box (as ROOT)
#!/bin/bash
#
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 12.04 Precise Pangolin box (as ROOT)
# TaskRabbit
# add the ubuntu gis ppa
# sudo apt-get -y install python-software-properties
# sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
# sudo apt-get update
@scalp42
scalp42 / securing_rails_updates.md
Created May 10, 2012 19:48 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application by Peter Nixey

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@scalp42
scalp42 / bash
Created May 17, 2012 22:16 — forked from charliek/bash
Installing graphite Ubuntu 11.10
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@scalp42
scalp42 / install-graphite-ubuntu-11.10.sh
Created May 29, 2012 15:22 — forked from nogara/install-graphite-ubuntu-11.10.sh
Install Graphite 0.9.9 on Ubuntu 11.10 on EC2 with NGinx, uwsgi, supervisord, statsite, nagios agent
#!/bin/bash
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# Forked from: http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Ubuntu 11.10 Oneiric Ocelot
# Forked from https://gist.github.com/1287170
# Modified to use NGinx + uwsgi instead of Apache, as well as memcached and supervisord, incorporating ideas from
# http://blog.adku.com/2011/10/scalable-realtime-stats-with-graphite.html
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@scalp42
scalp42 / install-graphite-ubuntu-11.10.sh
Created June 1, 2012 06:17 — forked from Iristyle/install-graphite-ubuntu-11.10.sh
Install Graphite 0.9.9 on Ubuntu 11.10 on EC2 with NGinx, uwsgi, supervisord, statsite, nagios agent
#!/bin/bash
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# Forked from: http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Ubuntu 11.10 Oneiric Ocelot
# Forked from https://gist.github.com/1287170
# Modified to use NGinx + uwsgi instead of Apache, as well as memcached and supervisord, incorporating ideas from
# http://blog.adku.com/2011/10/scalable-realtime-stats-with-graphite.html
@scalp42
scalp42 / install_python27.log
Created July 4, 2012 22:45
stdout + stderr of Python upgrade on CentOS 5.8 (no errors)
--2012-07-04 15:35:30-- https://raw.github.com/scalp42/python-2.7.x-on-Centos-5.x/master/install_python27.sh
Resolving raw.github.com... 207.97.227.243
Connecting to raw.github.com|207.97.227.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3603 (3.5K) [text/plain]
Saving to: `install_python27.sh'
0K ... 100% 344M=0s
2012-07-04 15:35:30 (344 MB/s) - `install_python27.sh' saved [3603/3603]
@scalp42
scalp42 / gist:3118976
Created July 15, 2012 22:41
cookbooks
1password hadoop_for_hbase powerdns
7-zip haproxy powershell
AmazonEC2Tag hbase pptpd
R hbase_cluster prince
Rstats heartbeat proftpd
accounts heavywater psiprobe
ack helios purse
ack-grep hipchat putty
activemq hive pvpgn
ad hollandbackup pxe_dust
unless ARGV[0] && ARGV[1]
puts "Usage: set_password.rb username password"
exit 1
end
require 'chef'
require 'chef/config'
require 'chef/webui_user'
Chef::Config.from_file(File.expand_path("~/.chef/knife.rb"))
@scalp42
scalp42 / chef-webui-reset.py
Created July 16, 2012 18:54 — forked from techtonik/chef-webui-reset.py
Chef - Reset WebUI admin password
"""Reset admin password in Chef Server WebUI by removing admin user from DB"""
# based on http://lists.opscode.com/sympa/arc/chef/2011-08/msg00151.html
import urllib2
import json
COUCHSERV = 'localhost:5984'
COUCHDB = 'http://' + COUCHSERV + '/chef/'