Skip to content

Instantly share code, notes, and snippets.

View djanatyn's full-sized avatar

Jonathan Strickland djanatyn

View GitHub Profile
# change prefix to Ctrl-a (like in gnu screen)
unbind C-b
set-option -g prefix C-s
bind-key C-a send-prefix
# allow terminal scrolling
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
# copy mode - turning off for a little bit
# unbind [
[jstrickland@ip-10-0-1-16]~% sudo -u deploy deploy_site qa-rhea 10.0.3.222 10.0.3.48
Making ssh link to tomcat; please wait.
Running -- ls -l /etc/hosts -- on the tomcat server.
Output: -- Warning: Permanently added '[localhost]:11075' (RSA) to the list of known hosts.
-rw-r--r--. 1 root root 212 Sep 19 13:29 /etc/hosts
--
ssh link to tomcat succeeded.
Making ssh link to mysql; please wait.
Running -- ls -l /etc/hosts -- on the mysql server.
---
- 1964212 -- ABC Unified
- 0761630 -- Acalanes Union High
- 3166761 -- Ackerman Charter
- 1975309 -- Acton-Agua Dulce Unified
- 3667587 -- Adelanto Elementary
- 0110017 -- Alameda County Office of Education
- 0161119 -- Alameda Unified
- 0161127 -- Albany City Unified
- 4970599 -- Alexander Valley Union Elementary
[{:name=>"Room: STB", :info=>"LAWS4277_S1Tutorial Group 2PHYS1101_S1Tutorial Group 2 [notes on web]PHYS1101_S1Tutorial Group 3 [notes on web]MATH1013_S1Tutorial Group 4PSYC4005_S1Workshop AIDEC8016_S1Lecture 1POGO8072_S1Tutorial 2POGO8072_S1Tutorial 3", :location=>"Crawford Seminar Room 9", :day=>:tue, :hour=>9, :id=>0}, {:name=>"Room: STB", :info=>"ENGN6213_S1Tutorial (Tutorials) Group 1ENGN3213_S1Tutorial (Tutorials) Group 1ENGN6224_S1Tutorial A (Half class) Group 1ENGN3224_S1Tutorial A (Half class) Group 1CHIN6012_S1Tutorial A Group 1CHIN1013_S1Tutorial A Group 1CHIN1012_S1Tutorial A Group 1JPNS2012_S1Tutorial A Group 1JPNS6012_S1Tutorial A Group 1CHIN6013_S1Tutorial A Group 1INDN1002_S1Tutorial B Group 1SPAN2001_S1Tutorial C Group 1SPAN6503_S1Tutorial C Group 1JPNS2014_S1Tutorial Group 1INTR2024_S1Tutorial Group 1ENVS6101_S1Tutorial Group 1ENVS1001_S1Tutorial Group 1JPNS6014_S1Tutorial Group 1ENVS2007_S1Tutorial Group 1ASIA2086_S1Tutorial Group 1HIST2110_S1Tutorial Group 3HIST6110_S1Tutorial Group 3HIST12
@djanatyn
djanatyn / -
Created February 15, 2015 01:52
wlp3s0 32 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
@djanatyn
djanatyn / add_tunnels.rb
Created March 23, 2015 21:42
create ssh tunnels according to yaml so I can rsync, to aid with migration to AWS
#!/usr/bin/env ruby
require 'yaml'
abort "usage: #{$0} <yaml>" unless ARGV.length == 1
filename = ARGV[0]; abort "could not find file: #{filename}" unless File.exists? filename
begin
servers = YAML::load_file filename
rescue Exception => e
zubkoland :: ~/zubkoland ‹master*› % git commit -m 'add more information to the config file'
[master fe317c8] add more information to the config file
1 file changed, 4 insertions(+), 1 deletion(-)
zubkoland :: ~/zubkoland ‹master› % git push
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 521 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:djanatyn/zubkoland.git
➜ ~ curl -v https://qa-titan.cytobank.org/cytobank/
* Adding handle: conn: 0xe0c8b0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0xe0c8b0) send_pipe: 1, recv_pipe: 0
* About to connect() to qa-titan.cytobank.org port 443 (#0)
* Trying 52.0.159.149...
* Connected to qa-titan.cytobank.org (52.0.159.149) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
ip-10-0-1-16 :: modules/aws/templates ‹aws-dev› % yes | aws-security-audit -i --skip-ssh-rules >/dev/null &
[3] 19917 19918
ip-10-0-1-16 :: modules/aws/templates ‹aws-dev› % nwf aws-security-audit
found too many processes; narrow your query, use --exact, or just pass a PID:
- sudo -u root /usr/local/bin/aws-security-audit -i --skip-ssh-rules (19918)
- ruby /usr/local/bin/aws-security-audit -i --skip-ssh-rules (19998)
ip-10-0-1-16 :: modules/aws/templates ‹aws-dev› % nwf 19998 1 ↵
found exactly one process, continuing.
monitoring: ruby /usr/local/bin/aws-security-audit -i --skip-ssh-rules (19998)
[jstrickland@ip-10-129-13-52]~% sudo ./migration_sudoers jstrickland
[sudo] password for jstrickland:
successfully added rsync permissions for jstrickland!
[jstrickland@ip-10-129-13-52]~% sudo ./migration_sudoers jstrickland
user found in sudoers, exiting.
[jstrickland@ip-10-129-13-52]~% sudo ./migration_sudoers rlpowell
successfully added rsync permissions for rlpowell!
[jstrickland@ip-10-129-13-52]~% sudo cat /etc/sudoers | tail -n 3
#includedir /etc/sudoers.puppet.d
jstrickland ALL = (ALL) NOPASSWD: /usr/bin/rsync