Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo chsh -s /bin/zsh
curl https://gist.githubusercontent.com/jgrodziski/7405347/raw/f9bf15d5e2779417985d9137c3f5cb932b4858fb/jerem.zsh-theme -o ~/.oh-my-zsh/themes/jerem.zsh-theme
# then change these two lines in .zshrc
# ZSH_THEME="jerem"
# plugins=(git docker osx sublime mvn ssh-agent lein brew dircycle history jump z autojump zsh-syntax-highlighting)
#!/bin/bash
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo bash -c "echo JAVA_HOME="/usr/lib/jvm/java-8-oracle" >> /etc/environment"
java -version
@jgrodziski
jgrodziski / docker-aliases.sh
Last active April 24, 2024 17:41
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #

Keybase proof

I hereby claim:

  • I am jgrodziski on github.
  • I am jgrodziski (https://keybase.io/jgrodziski) on keybase.
  • I have a public key whose fingerprint is D629 2B73 5ADE 9129 D6BE BB5B 3513 46D6 EDFE 6C3B

To claim this, I am signing this object:

@jgrodziski
jgrodziski / encrypt-folder
Created December 25, 2013 23:01
encrypt a folder to an image
echo -n "password" | hdiutil create -encryption -stdinpass -srcfolder GYB-GMail-Backup-jeremie@grodziski.com encrypted.dmg
@jgrodziski
jgrodziski / custom-configuration.el
Created December 24, 2013 13:58
my emacs live custom configuration
(setq inferior-lisp-program "lein repl")
(require 'package)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(windmove-default-keybindings)
(defun nrepl-send-to-repl ()
"Send the appropriate forms to the repl to be evaluated."
@jgrodziski
jgrodziski / config
Created December 24, 2013 10:43
My ssh config
ControlPersist yes
GSSAPIAuthentication no
Host *
Compression yes
CompressionLevel 7
Cipher blowfish
ServerAliveInterval 600
ControlMaster auto
ControlPath /tmp/ssh-%r@%h:%p
@jgrodziski
jgrodziski / tunneloff.sh
Last active December 30, 2015 03:39
Disable the tunnel on wifi and ethernet
sudo networksetup -setsocksfirewallproxystate Ethernet off
sudo networksetup -setsocksfirewallproxystate Wi-Fi off
@jgrodziski
jgrodziski / tunnelon.sh
Created December 3, 2013 15:31
open an ssh tunnel and automatically enable it on your Ethernet and Wifi connection
ssh -t -t -n -D 9999 YOUR_REMOTE_SERVER & >> /dev/null
sudo networksetup -setsocksfirewallproxy Ethernet localhost 9999
sudo networksetup -setsocksfirewallproxy Wi-Fi localhost 9999
sudo networksetup -setsocksfirewallproxystate Ethernet on
sudo networksetup -setsocksfirewallproxystate Wi-Fi on
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"