Skip to content

Instantly share code, notes, and snippets.

View jmvrbanac's full-sized avatar

John Vrbanac jmvrbanac

View GitHub Profile
@jmvrbanac
jmvrbanac / VMWare-SymLink
Created March 1, 2013 17:10
VMWare SymLink for kernel version.h for Ubuntu 13.04
@jmvrbanac
jmvrbanac / Perforce-Gitconfig
Last active July 11, 2018 11:50
Setting up p4merge and diff on Mac OSX
# Other Stuff
[merge]
tool = p4merge
keepBackup = false
[mergetool "p4merge"]
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[diff]
@jmvrbanac
jmvrbanac / BeyondCompare-gitconfig
Created April 9, 2013 20:18
Beyond Compare settings for git
[diff]
tool = bc3
[difftool]
prompt = false
[difftool "bc3"]
cmd=/opt/bcompare/bin/bcompare $LOCAL $REMOTE
[merge]
tool = bc3
[mergetool]
prompt = false
@jmvrbanac
jmvrbanac / PEP8 external tool filter for IDEs
Last active December 16, 2015 00:39
PEP8 external tool filter for IDEs
$FILE_PATH$:$LINE$:$COLUMN$
@jmvrbanac
jmvrbanac / Python.sublime-settings
Last active December 23, 2015 18:09
Python.sublime-settings
{
"scroll_past_end": false,
"rulers": [
72,
79
],
"word_wrap": false,
"wrap_width": 80,
"tab_size": 4,
"translate_tabs_to_spaces": true,
@jmvrbanac
jmvrbanac / gist:7920633
Created December 11, 2013 23:42
Using pyenv virtualenvs in a Jenkins Job
#!/bin/bash
set +x
# Setup all of the pyenvs
export PATH="$HOME/.pyenv/bin:$PATH"
export CONFIGURE_OPTS='--enable-shared'
eval "$(pyenv init -)"
pyenv shell 2.7.5
pyenv virtualenvwrapper
pyenv rehash
@jmvrbanac
jmvrbanac / peap-mschapv2
Last active January 4, 2016 18:19
Wicd template for wireless with PEAP and MSCHAPv2
name=PEAP with MSCHAPv2
author=jmvrbanac
version = 1
require username *Username password *Password
-----
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="$_ESSID"
scan_ssid=$_SCAN
key_mgmt=WPA-EAP
@jmvrbanac
jmvrbanac / install_pyenv.sh
Last active February 16, 2023 09:29
Install pyenv on Ubuntu
#!/bin/bash
sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl
sudo pip install virtualenvwrapper
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
@jmvrbanac
jmvrbanac / run.sh
Last active August 29, 2015 13:56
CloudCAFE Jenkins Script
#!/bin/bash
set +x
# Setup all of the pyenvs
export PATH="$HOME/.pyenv/bin:$PATH"
export CONFIGURE_OPTS='--enable-shared'
eval "$(pyenv init -)"
pyenv shell 2.7.6
pyenv virtualenvwrapper
pyenv rehash
@jmvrbanac
jmvrbanac / dev_cafe.sh
Created February 10, 2014 16:27
CAFE Tmux setup
#!/bin/bash
BASEDIR="/home/john/Repositories/github/CAFE"
VENV_NAME="CloudCAFE"
PROJECT="CAFE-Dev"
set_env_and_clear(){
num_panes=`tmux list-panes -t $PROJECT:$1 | wc -l`
for (( i=0; i<${num_panes}; i++ ));
do