Skip to content

Instantly share code, notes, and snippets.

View michaelcoyote's full-sized avatar
👀
building and learning

Michael michaelcoyote

👀
building and learning
View GitHub Profile
@michaelcoyote
michaelcoyote / stupid_dpkg_tricks
Created September 10, 2014 17:20
Stupid dpkg tricks
dpkg -l # list all packages
dpkg -L <PKG> # list a specific package
dpkg -c <PKG> # show pakage contents
dpkg -I <PKG> # Package info..
@michaelcoyote
michaelcoyote / bosh-lite_deploy.md
Last active August 29, 2015 14:06
Quick local deploy of cf-release on bosh-lite

bosh-light quick deploy

Get the bosh-light VM and start it

vagrant destroy
vagrant up --provider=virtualbox

Upload the stemcell to bosh

bosh upload stemcell ~/workspace/stemcells/bosh-stemcell-25-warden-boshlite-ubuntu-trusty-go_agent.tgz

Change over to the cloned cf-releases repo

@michaelcoyote
michaelcoyote / Eclipse_Android
Last active August 29, 2015 14:06
Installing Eclipse for Android on Ubuntu precise.
# From here: http://linuxconfig.org/get-started-with-android-application-development-using-linux-and-android-sdk
# and here http://ubuntuforums.org/showthread.php?t=2048793
sudo apt-get install eclipse
sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main"
sudo add-apt-repository "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main"

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@michaelcoyote
michaelcoyote / Bash_keys.md
Last active January 20, 2023 13:33
Bash Keyboard shortcuts

#Bash Keyboard Shortcuts

###Cursor movement:

Ctrl + a   Go to the beginning of the line (Home)
Ctrl + e   Go to the End of the line (End)
Ctrl + p   Previous command (Up arrow)
Ctrl + n   Next command (Down arrow)
Alt + b   Back (left) one word

Alt + f Forward (right) one word

@michaelcoyote
michaelcoyote / YAML_Ref_Card.yaml
Created September 15, 2014 06:14
YAML Reference card
%YAML 1.1 # Reference card
---
Collection indicators:
'? ' : Key indicator.
': ' : Value indicator.
'- ' : Nested series entry indicator.
', ' : Separate in-line branch entries.
'[]' : Surround in-line series branch.
'{}' : Surround in-line keyed branch.
Scalar indicators:
@michaelcoyote
michaelcoyote / basicvimkeys.md
Last active August 29, 2015 14:06
Basic Vim Keys

Basic VIM Keys

Notes

  • a number in front of most movement and edit keys acts as a multiplier to that key
    • e.g. 30j moves the cursor down 30 lines and 3i tora types toratoratora
  • editing can be stacked with movement characters
    • e.g. dw will delete a word
@michaelcoyote
michaelcoyote / linkdump
Last active August 29, 2015 14:06
Link Dump
PSSH - http://archive09.linux.com/feature/151340?theme=print
bash tests - http://tldp.org/LDP/abs/html/comparison-ops.html http://tldp.org/LDP/abs/html/fto.html
ssh agent - http://www.unixwiz.net/techtips/ssh-agent-forwarding.html
Mac KB shortcuts - http://support.apple.com/kb/ht1343
bosh docs - http://docs.cloudfoundry.org/bosh/
@michaelcoyote
michaelcoyote / boshhelp.txt
Created September 17, 2014 22:13
bosh help
→ bosh --help
BOSH CLI helps you manage your BOSH deployments and releases.
Usage: bosh [<options>] <command> [<args>]
-c, --config FILE Override configuration file. Also can be overridden by BOSH_CONFIG environment variable. Defaults to $HOME/.bosh_config. Override precedence is command-line option, then environment variable, then home directory.
--[no-]color Toggle colorized output
-v, --verbose Show additional output
-q, --quiet Suppress all output
-n, --non-interactive Don't ask for user input
-N, --no-track Return Task ID and don't track
@michaelcoyote
michaelcoyote / manifest2vm.md
Last active August 29, 2015 14:06
BOSH Manifest to running VM

CF Manifest to running VM

Path

  1. Manifest contains information about a job to start in either the

  2. configuration templates/"spec" (from cf-release/jobs/<jobname>/) + stemcell + packages (from cf-release/packages)

  3. magic from the BOSH Director (prepare) takes the stemcell and starts it and lays over package info and configs in /var/vcap