Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash --login
if [[ "$1" == "setup" ]]; then
sudo -su discourse /bin/bash --login <<'EOF'
cd /var/www/discourse
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
EOF
elif [[ "$1" == "start" ]]; then
sudo -su discourse /bin/bash --login <<'EOF'
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ROOT=/var/www/discourse RAILS_ENV=production NUM_WEBS=2 bluepill --no-privileged -c ~/.bluepill load /var/www/discourse/config/discourse.pill
@TannerFilip
TannerFilip / keybase.md
Last active August 29, 2015 14:01
keybase.md

Keybase proof

I hereby claim:

  • I am tannerfilip on github.
  • I am tannerfilip (https://keybase.io/tannerfilip) on keybase.
  • I have a public key whose fingerprint is 5A26 8E93 8D2B 5D4C 2BDE 95B2 76E4 4366 90D9 9A66

To claim this, I am signing this object:

1. password
2. otp
3. text message with URL
4. phone call to other person with PIN
5. PIN -> original person via encrypted channel
6. PIN in website (#3)
7. Website gives link to new website
8. New website asks for SSN, verifies address
9. Drone flies to address, flashes morse code
10. Morse code converted to English, gives final URL
@TannerFilip
TannerFilip / autoexec.cfg
Created September 7, 2015 22:19
csgo navy seal copypasta for Logitech G600
bind "kp_downarrow" "say good luck have gabe"
bind "kp_ins" "say "What the fuck did you just fucking say about me, you little bitch?""
bind "kp_end" "say Youre fucking dead, kiddo."
bind "kp_pgdn" "say good half life"
bind "kp_minus" "say I\'ll have you know I graduated top of my class in the Navy Seals, and I\'ve been involved in numerous secret raids on Al-Quaeda"
bind "kp_plus" "say I am trained in gorilla warfare and Im the top sniper in the entire US armed forces"
bind "kp_home" "say "will wipe you the fuck out with precision the likes of which has never been seen before on this Earth"
bind "kp_uparrow" "say As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now"
bind "kp_pgup" "say You better prepare for the storm that wipes out the pathetic little thing you call your life. You\'re fucking dead, kid."
bind "kp_leftarrow" "say I can kill you in over seven hundred ways, and thats just with my bare hands."
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1442955516408",
"Action": "cloudformation:*",
"Effect": "Allow",
"Resource": "*"
},
{
# fetch page text
self.text = self.response.read()
if unicodify:
self.text = self.Decode(self.text)
f = open('/home/tanner/Downloads/stewbot/stewbot/components/sitematrix.xml', 'r')
self.text = f.read()
# parse page text
if not parse_as:
self.parsed = None
return
Traceback (most recent call last):
File "window.py", line 14, in <module>
create_window()
File "window.py", line 4, in create_window
window = gtk.window()
AttributeError: 'module' object has no attribute 'window'
import gtk
def create_window():
window = gtk.window()
window.set_default_size(200, 200)
window.connect('destroy', gtk.main_quit)
label = gtk.Label('Hello World')
window.add(label)