Skip to content

Instantly share code, notes, and snippets.

👺
щ(ಠ益ಠщ) (✖╭╮✖) ᕦ(ò_óˇ)ᕤ

superscott superscott

👺
щ(ಠ益ಠщ) (✖╭╮✖) ᕦ(ò_óˇ)ᕤ
Block or report user

Report or block superscott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@superscott
superscott / .zlogin
Last active Jul 22, 2019
oh-my-zsh files.
View .zlogin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
View gist:32868c92ebf9ba0fabd0
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 Oct 9, 2014
initial* shellshock bash test for ansible
View onetime_playbook.yml
---
- 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 Sep 12, 2014
Simple Kafka Ubuntu init.d Startup Script
View kafka
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 Aug 29, 2015
check if azure vm is running.....
View azure_vm.sh
#!/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 Aug 29, 2015
WPScan Error Output
View curl_output.sh
~/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
View begin-end.rb
@cache ||= begin
return true if condition1 && condition2
return true if condition3
return true if condition4
long_code1
long_code2
long_code3
result2
end
View 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:

View valid.rake
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
View Gemfile
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'
You can’t perform that action at this time.