Skip to content

Instantly share code, notes, and snippets.

View 7hunderbird's full-sized avatar
👶
Since 1976.

Tyler Bird 7hunderbird

👶
Since 1976.
View GitHub Profile
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the ruby version
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
@7hunderbird
7hunderbird / Readme.md
Last active August 29, 2015 13:57
quickest setup of a php machine on a vagrant box

Update Ubuntu

You should already be in the vagrant server with vagrant ssh.

sudo su
apt-get update
apt-get upgrade -y 
exit # root
exit # exit vagrant (to reboot)
gem install gollum
Fetching: charlock_holmes-0.7.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing gollum:
ERROR: Failed to build gem native extension.
/Users/deploy/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb
checking for main() in -licui18n... no
checking for main() in -licui18n... no
@7hunderbird
7hunderbird / 104.131.218.153.json
Last active August 29, 2015 14:04
troubleshooting Chapter 4 - Quick Start - 5 Minute Server of Reliably Deploying Rails Applications
{
"run_list": [
],
"automatic": {
"ipaddress": "104.131.218.153"
}
}
@7hunderbird
7hunderbird / attributes-default.rb
Last active August 29, 2015 14:04
proto code for actions and filters for a fail2ban recipe
# cookbooks/fail2ban/attributes/default.rb
# This is an attribute file snippet
default[:fail2ban][:dir] = "/etc/fail2ban/"
default[:fail2ban][:action_path] = "cookbooks/fail2ban/files/default/action"
default[:fail2ban][:filters_path] = "cookbooks/fail2ban/files/default/filters"
language: ruby
rvm:
- jruby-1.7.18
before_script:
- ./bin/setup --config
- gem install brakeman
script:
- bundle exec rake spec
language: ruby
rvm:
- jruby-1.7.18
addons:
postgresql: "9.2"
before_script:
- ./bin/setup --config
- psql -c 'create database abacus_test;' -U postgres

Keybase proof

I hereby claim:

  • I am 7hunderbird on github.
  • I am 7hunderbird (https://keybase.io/7hunderbird) on keybase.
  • I have a public key whose fingerprint is B6F8 4C9B 1966 D07D 3282 DD8A 3075 39C1 A583 CC0F

To claim this, I am signing this object:

[ PRODUCTION ] root@sc-prod-ids2:~# apt-get -y install securityonion-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
@7hunderbird
7hunderbird / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console