This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jtyr's theme for oh-my-zsh | |
# Color shortcuts | |
RED=$fg_bold[red] | |
GREEN=$fg_bold[green] | |
YELLOW=$fg_bold[yellow] | |
BLUE=$fg_bold[blue] | |
CYAN=$fg_bold[cyan] | |
RESET=$reset_color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# | |
# This Makefile helps to bundle and unbundle local Git repos. Directories | |
# containing bare repos should end with `.git` (e.g. `mybarerepo.git`). | |
# | |
### | |
DIRS = $(shell find . -type d -maxdepth 1) | |
BUNDLES = $(filter-out $(wildcard *.git.bundle), $(wildcard *.bundle)) | |
BUNDLES_BARE = $(wildcard *.git.bundle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create SSH keys to be able to use localhost as the proxy | |
ssh-keygen | |
cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/authorized_key | |
chmod 700 ~/.ssh | |
# Create the SSH config | |
cat >~/.ssh/config <<END | |
Host * | |
# !!!Make sure this directory exists!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gitwebmarkdown | |
// @version 0.2 | |
// @description Renders readme files in markdown. | |
// @include http://yourserverhere.com/git/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @require https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js | |
// ==/UserScript== | |
var converter = new showdown.Converter(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Move to https://github.com/jtyr/vagrantfile_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function walk() { | |
if [ $1 == 0 ]; then | |
echo -n "" > /tmp/deps; | |
fi | |
echo $2 >> /tmp/deps; | |
for N in $(seq $1); do | |
echo -n ' '; | |
done | |
echo -n '- '; | |
echo $2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
import json | |
import sys | |
''' | |
Description | |
----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was moved to https://github.com/jtyr/ansible-ini_inventory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Shell script used to bootstrap Kubernetes on the play-with-k8s.com service | |
### | |
# | |
# Inspired by https://gist.github.com/jjo/78f60702fbfa1cbec7dd865f67a3728a | |
# | |
# Usage: | |
# source <(curl -sL bit.do/jtyr-pwk-setup) | |
# | |
# Edit: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# | |
# Description | |
# ----------- | |
# | |
# Script which helps to configure resolv.conf based on information pushed by | |
# the OpenVPN server. | |
# |
OlderNewer