Skip to content

Instantly share code, notes, and snippets.

View notxarb's full-sized avatar

Braxton Huggins notxarb

View GitHub Profile
@notxarb
notxarb / order_server.rb
Created August 25, 2012 18:43
softlayer server order
hardware = [
{
"hostname"=> 'host1',
"domain"=> 'somewhere.com',
'hardDrives' => [
{
'complexType' => 'SoftLayer_Hardware_Component_HardDrive',
'partitions' => [
{
'name' => '/boot',
@notxarb
notxarb / subnets.txt
Last active May 12, 2016 21:35
Pagodabox CIDR addresses
75.126.19.144/28
75.126.23.16/28
184.173.69.128/28
50.97.157.0/26
75.126.59.16/28
@notxarb
notxarb / gist:3835922
Created October 4, 2012 19:43
pears are my least favorite fuit
1. Installation base ($prefix) : /usr/bin/php-5.2.17
2. Temporary directory for processing : /tmp/pear/install/5.2.17
3. Temporary directory for downloads : /tmp/pear/install/5.2.17
4. Binaries directory : /usr/bin/php-5.2.17
5. PHP code directory ($php_dir) : /usr/share/pear/php-5.2.17
6. Documentation directory : /usr/docs/php-5.2.17
7. Data directory : /usr/data/php-5.2.17
8. User-modifiable configuration files directory : /etc/php-5.2.17
9. Public Web Files directory : /var/www
10. Tests directory : /usr/tests/php-5.2.17
@notxarb
notxarb / iptables
Last active December 10, 2015 14:09 — forked from anonymous/gist:4445900
iptables
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -F FORWARD
iptables -F OUTPUT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A INPUT -s 24.116.177.208/29 -i eth1 -p tcp -m tcp --dport 22 -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -P INPUT DROP
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]) {
const char *hostname = argv[1];
const char *service = argv[2];
@notxarb
notxarb / payload.json
Created October 30, 2015 18:15
example payload for engine scripts
{"code_dir":"/opt/code","deploy_dir":"/data","live_dir":"/code","cache_dir":"/mnt/cache","etc_dir":"/data/etc","env_dir":"/data/etc/env.d","app":"ruby-test","env":{"APP_NAME":"ruby-test"},"dns":["ruby-test.dev"],"port":"8080","boxfile":null,"platform":"local"}
@notxarb
notxarb / redd.conf
Created February 1, 2016 23:38
example redd.conf
daemonize yes
loglevel warning
logfile /var/log/redd.log
syslog-enabled no
port 4470
bind 127.0.0.1
timeout 10
routing-enabled yes
udp-listen-address 127.0.0.1
save-path /var/db/redd
@notxarb
notxarb / add_swap.sh
Created November 2, 2017 16:02
add swap to day one databases
dd if=/dev/zero of=/var/swap.4 bs=1024 count=2097152
mkswap /var/swap.4
swapon /var/swap.4

Keybase proof

I hereby claim:

  • I am notxarb on github.
  • I am notxarb (https://keybase.io/notxarb) on keybase.
  • I have a public key ASD8OYSCDBY8PAdsnIbqljoL-QrsmpPnAbTzXBuOaisjNwo

To claim this, I am signing this object: