Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / vbox_cli.md
Last active January 3, 2018 23:42 — forked from Driste/vbox_cli.md
VBox CLI

VirtualBox CLI

Installation

Mac

brew cask install virtualbox virtualbox-extension-pack

Linux

Linux Download

@pythoninthegrass
pythoninthegrass / vbox-cli-manual.md
Created January 3, 2018 20:46 — forked from mortymacs/vbox-cli-manual.md
VirtualBox Useful Commands

Create vm

VBoxManage createvm --name "Debian 9" --register

Modify vm

VBoxManage modifyvm "Debian 9" --memory 1024
@pythoninthegrass
pythoninthegrass / lazy-ssh-agent.sh
Created December 28, 2017 22:05 — forked from bseibold/lazy-ssh-agent.sh
Lazy Loading for ssh-agent keys. Loads default SSH identities on demand. Tested with bash and zsh.
function wrapssh() {
setopt shwordsplit &>/dev/null
# load agent if it's not running
if [ -z "$SSH_AUTH_SOCK" ]; then
eval $(ssh-agent) &>/dev/null
fi
# load keys if necessary
DO_ADD=0
@pythoninthegrass
pythoninthegrass / gist:7b8ce5493369e828dc6680b06dc4666d
Last active December 22, 2017 22:46 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@pythoninthegrass
pythoninthegrass / docker-cleanup-resources.md
Created August 14, 2017 02:59 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@pythoninthegrass
pythoninthegrass / Microsoft.PowerShell_profile.ps1
Last active August 11, 2017 16:28 — forked from cloudRoutine/Microsoft.PowerShell_profile.ps1
Powershell Profile for use with Cmder
<#
# ┌ ┐
# sources
# └ ┘
https://gist.github.com/cloudRoutine/87c17655405cd8b1eac7
https://gist.github.com/furzeface (not sure where profile.ps1 URL disappeared to)
#>
# If this script is throwing an error near a Unicode symbol try resaving the file as UTF-8 with BOM
$psmodules = ";~\Documents\WindowsPowerShell\Modules"
@pythoninthegrass
pythoninthegrass / .gitconfig
Last active May 2, 2020 18:20 — forked from VonC/.gitconfig
My global git config
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = first last
email = address
[github]
user = username
@pythoninthegrass
pythoninthegrass / Dockerfile
Created August 2, 2017 05:58 — forked from renzok/Dockerfile
docker: mapping host uid and gid to user inisde container
FROM debian:jessie
ENV USER=boatswain USER_ID=1000 USER_GID=1000
# now creating user
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \
@pythoninthegrass
pythoninthegrass / osx_sanity_check.sh
Last active September 12, 2020 15:17
Mac Setup
#!/usr/bin/env bash
# SOURCES:
# https://gist.github.com/DylanTackoor/7a04052cfc3a726d9af6f798875189fc
# https://github.com/timsutton/osx-vm-templates/blob/ce8df8a7468faa7c5312444ece1b977c1b2f77a4/scripts/xcode-cli-tools.sh
# https://github.com/mathiasbynens/dotfiles/blob/master/.macos
# Exit upon failed command
# set -e
@pythoninthegrass
pythoninthegrass / dscl_create_user
Last active May 11, 2017 16:46
create user on mac os x with dscl command
#!/usr/bin/env bash
# SOURCES:
# https://gist.github.com/rubytester/7330557
# http://stackoverflow.com/a/1923893
# Exit upon failed command
# set -e