Skip to content

Instantly share code, notes, and snippets.

View epequeno's full-sized avatar

Steven Pequeno epequeno

View GitHub Profile
# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, officially ports have two entries
# even if the protocol doesn't support UDP operations.
#
# Updated from http://www.iana.org/assignments/port-numbers and other
# sources like http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/services .
# New ports will be added on request if they have been officially assigned
# by IANA and used in the real-world or are needed by a debian package.
Verifying myself: My Bitcoin username is +epequeno. https://onename.io/epequeno
# native compiler linux amd64
GOROOT=$HOME/go
#GOBIN=
GOARCH=amd64
GOOS=linux
CGO_ENABLED=1
PATH=$GOROOT/bin:$PATH
@epequeno
epequeno / macbook pubkey
Last active August 29, 2015 14:05
macbook pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBUOhY8aKoc1W1vYbkZbk2NuJz90gRQNoTEmW2mvgQuwE5ua8aZmrSuDYJ/WOBXCo+R/cKyot0ZGI1PLrsRotHT/ks35rvlANxSdYGI9dI0CyuvBheQzbhRuZvE7Igi+CJro40dAYtCIeO4yDLRdpSzyX64PrINkvEWu4B7/eL6j3J4TGQUjQiftk5uJrejRGAjbz6eJ7goS2PaMvIFMWWH5krOuW6GqXN9NDMpIeC40Hf8ZuyzgaNGDkl7ZsIXVqr77TbUfs4UPNOBFk3x303vm/rbEK0Qw4/6WzBwD/0wJbLM9Bm4LIpsvMJU/C7ZVs1KRIjZjjKsgUfDo4RlxFb stev7819@MMW45KDV30
@epequeno
epequeno / jupiter-pubkey.txt
Created August 14, 2014 23:54
jupiter public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFWYrWzjqizIfzcD8vJlBuadbIcJFthzncIBRjaTD/PXORksbnAU9yK70c/+i1JPVQW3nBLnwj62g/1kqPEFbCXdXAntmH1W9x3/EMpXjb3a7xhCF5X6p3g+H+/pOh3X3U60TbvB5DdWnMiUYJ8maW/rWRkZ5+Oids6cXScwp/JkXHNZKEBBxtPISOO93UWzD4F/xIkFnxrg7Y4OFbxi0vYHN804/OPmD0opth38dga4qPABsvhEAcb17PG2yTUe08M39ncabF7wOfY0UGbM7wOdc7p/kS9Nj8ttOQmXJTLKrePsLd7KsC0RlOvX+MRxnmDDfpvu9OJt5HS61rIWaf steven@jupiter
/etc/tgt/targets.conf
to make images (5G):
dd if=/dev/zero of=/root/iscsi_disks/disk01.img bs=1 count=0 seek=5G
<target iqn.2014-08.iscsi.pequeno.in:target01>
backing-store /root/iscsi_disks/disk01.img
</target>
<target iqn.2014-08.iscsi.pequeno.in:target02>
backing-store /root/iscsi_disks/disk02.img
@epequeno
epequeno / pw-reset.sh
Created August 31, 2014 22:32
pw-reset.sh
#!/bin/bash
PASSWORD=123456
for i in {1..10}; do
if [[ $i -lt 10 ]]; then
echo -e "$PASSWORD\n$PASSWORD" | ipa user-mod tnt0$i --password
else
echo -e "$PASSWORD\n$PASSWORD" | ipa user-mod tnt$i --password
fi
done
@epequeno
epequeno / rax-api-practice.py
Created September 18, 2014 23:47
practice with python/ raxapi
# make a file called auth.json that has the following:
{
"auth": {
"RAX-KSKEY:apiKeyCredentials": {
"username": "",
"apiKey": ""
}
}
}
@epequeno
epequeno / rax-api.py
Created September 24, 2014 19:36
rax api stuff
import requests
auth_url = "https://identity.api.rackspacecloud.com/v2.0/tokens"
json_header = {"Content-Type" : "application/json"}
auth = open("auth.json").read()
req = requests.post(auth_url, data=auth, headers=json_header)
print req.json()['access']['token']['id']
@epequeno
epequeno / saturn.txt
Created October 6, 2014 18:13
saturn pub key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZ3UeFTDeLR/PIOoLWca7r1KXjbIHnbaKcwH/vItLD0qFtTD2Rd6PdKOt9YteAErmOULRexx61rcQofo0FH9i2LD5VhGDw2L58wHI3eb9HefNaefckK3f/5xRdGPi/952jHfKI8ORsZEveDu+1xOkPJKW46t+dAfFMzjPsGbpR08Tx5xuOxeBCHt8s5mxD1Sn6lCUC+2HrxHTX/iUysZtmCEZoDskFSbFA+VSW+xs2p0/DS6g/GoSDBJnNGMTKafaZOoO2N4eD6M6ASM8PPdtyLhKNB3wYjvwPPdwlhLeDy2DwOnPW5KH/6ZVre4rKd6cKORrHGb/5aA9CPC1F8RXf steven@saturn