Skip to content

Instantly share code, notes, and snippets.

View superscott's full-sized avatar
👺
щ(ಠ益ಠщ) (✖╭╮✖) ᕦ(ò_óˇ)ᕤ

superscott superscott

👺
щ(ಠ益ಠщ) (✖╭╮✖) ᕦ(ò_óˇ)ᕤ
View GitHub Profile
@superscott
superscott / .zlogin
Last active August 18, 2020 05:37
oh-my-zsh files.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Netflix Keynote:
@caseyrosethal
AWS - three regions. (US-W, US-E, EU)
300 + Microservices :: Dev ownership includes Deployment and Uptime
Software is getting more complex:
--how we interact with software
mobile. IoT. rapid rate of change.
@superscott
superscott / onetime_playbook.yml
Created October 9, 2014 22:16
initial* shellshock bash test for ansible
---
- hosts: all
sudo: True
gather_facts: no
tasks:
- command: env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
register: output
- debug: var=output
@superscott
superscott / kafka
Created September 12, 2014 00:27
Simple Kafka Ubuntu init.d Startup Script
DAEMON_PATH=/opt/kafka/bin
DAEMON_NAME=kafka
# Check that networking is up.
#[ ${NETWORKING} = "no" ] && exit 0
PATH=$PATH:$DAEMON_PATH
# See how we were called.
case "$1" in
start)
@superscott
superscott / azure_vm.sh
Last active August 29, 2015 14:05
check if azure vm is running.....
#!/bin/bash
# Pass the vm name as the first argument
vm_name=$1
# Check to make sure the VM is Present (in a silly way).
# data = good, warn = bad.
vm_exist=`azure vm show $vm_name | awk '{print $1}'| uniq | sed 's/://g' | grep warn`
# Default Time Output for Pretty Print.
@superscott
superscott / curl_output.sh
Last active August 29, 2015 14:05
WPScan Error Output
~/projects/wpscan [13:22:19] [ruby-2.1.2@rails4] $ curl -IkL http://example.com/?author=1
HTTP/1.1 301 Moved Permanently
Content-Length: 157
Content-Type: text/html; charset=UTF-8
Location: http://example.com/author/admin/
Server: Microsoft-IIS/8.0
X-Powered-By: PHP/5.4.23
X-Pingback: http://example.com/xmlrpc.php
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=1585cb42abd371ffda100f8cd315354b3b6a2e7476bd3a0acfa838f0a0af0abb;Path=/;Domain=example.com
@cache ||= begin
return true if condition1 && condition2
return true if condition3
return true if condition4
long_code1
long_code2
long_code3
result2
end
@superscott
superscott / keybase.md
Created May 22, 2014 13:38
keybase.md

Keybase proof

I hereby claim:

  • I am superscott on github.
  • I am superscott (https://keybase.io/superscott) on keybase.
  • I have a public key whose fingerprint is 3187 DA2F 5515 23DE 9591 7841 3293 6ED8 5088 25EF

To claim this, I am signing this object:

desc 'Validating JavaScript with Ant /lib/tasks/js_validate/'
task 'validate:javascript' do
puts 'Validating JavaScript with Ant /lib/tasks/js_validate/'
puts `cd #{Rails.root}/lib/tasks/js_validate/ && ant validate-javascript`
end
source 'https://rubygems.org'
gem 'rails', '4.0.4'
gem 'mysql2'
group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'awesome_print', :github => 'michaeldv/awesome_print'
gem 'pry'