Skip to content

Instantly share code, notes, and snippets.

@jgrodziski
jgrodziski / settings.xml
Created September 10, 2017 16:00
maven settings.xml including clojars repo
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers/>
#!/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 March 9, 2025 14:09
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 [email protected] 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