I hereby claim:
- I am pv8 on github.
- I am pv8 (https://keybase.io/pv8) on keybase.
- I have a public key whose fingerprint is 38EB FF7D 03DA E2D5 4D39 5007 3155 7CED BBAD 4FA3
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# Fix virtualenv symlinks after upgrading python with Homebrew and then running | |
# `cleanup`. | |
# | |
# After upgrading Python using Homebrew and then running `brew cleanup` one can | |
# get this message while trying to run python: | |
# dyld: Library not loaded: @executable_path/../.Python | |
# Referenced from: /Users/pablo/.venv/my-app/bin/python | |
# Reason: image not found |
#!/usr/bin/env bash | |
set -e | |
prompt_user() { | |
read -p "$1 [hit <enter> to abort]: " user_input | |
if [[ -z "$user_input" ]]; then | |
echo "Aborting git local config setup." | |
exit 1 | |
fi |
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo yum install -y apache-maven | |
mvn --version |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add ~/.ssh/id_rsa; | |
} |
I hereby claim:
To claim this, I am signing this object:
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
--- bash_completion 2017-02-09 18:29:54.000000000 -0200 | |
+++ bash_completion_new 2017-02-09 18:20:19.000000000 -0200 | |
@@ -1205,6 +1205,39 @@ | |
_known_hosts_real $options "$(_get_cword :)" | |
} # _known_hosts() | |
+# Helper function to locate ssh included files in configs | |
+# This function look for the "Include" keyword in ssh config files and include | |
+# them recursively adding each result to the config variable | |
+_included_ssh_config_files() |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to make opened Markdown files always be soft wrapped: | |
# | |
# path = require 'path' | |
# |
import random | |
items = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'] | |
for position, idx in enumerate(random.sample(range(0, len(items)), len(items))): | |
print(position, items[idx]) |