Skip to content

Instantly share code, notes, and snippets.

View jeanlescure's full-sized avatar
🚀
Actively Contributing

Jean Lescure jeanlescure

🚀
Actively Contributing
View GitHub Profile
# Install ttfautohint on Ubuntu 12.04 LTS
# @author: Jean Lescure
# 2014/04/23
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder
cd /tmp
git clone git://repo.or.cz/ttfautohint.git
cd ttfautohint
# Handle bootstrap's dependency: automake
@jeanlescure
jeanlescure / cli-thread-manager.rb
Last active August 29, 2015 14:01
Ruby Interactive Command Line Thread Manager
# Interactive Command Line Thread Manager
#
# The following code allows you to manage multiple threads
# from a single command-line instance with fully
# customizeable commands
#
# @author = Jean M. Lescure
# @date = 2014/5/24
COMMANDS = ['help','new','list','kill','describe']
@jeanlescure
jeanlescure / init.sh
Last active August 29, 2015 14:02
Automated Dev Environment Installation for APTrustDPN on Ubuntu 14.04
#######################################################################
# Automated Dev Environment Installation for APTrustDPN on Ubuntu 14.04
# Author: Jean M. Lescure
#
# To use:
# *download to home folder
# chmod 777 init.sh
# ./init.sh
#######################################################################
echo -e "\E[0;36m--> 1. Installing rabbitmq ...\E[0m"
@jeanlescure
jeanlescure / decisiv-ak
Last active August 29, 2015 14:03
decisiv-ak
# Place this file in your /etc/yum.repos.d/ directory
[epel-apache-maven]
name=maven from apache foundation.
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0
[epel-apache-maven-source]
# Update repos and Install dependencies
sudo apt-get update
sudo apt-get -y install git zsh curl htop
# Install MongoDB Server
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-10gen

Keybase proof

I hereby claim:

  • I am jeanlescure on github.
  • I am jeanlescure (https://keybase.io/jeanlescure) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.4
Comment: https://keybase.io/crypto
wcBMA8HXR+LBlfN9AQf7BgQl/jh0p9K2MmtjYEsdLCQRtU4f2xGtgOKnE0HxUAmg
R36lQDeAYgrpw0xqou/KUGanGFmsxWhJu1dO/dga3+FSpAdUyyDFvAF03vLaDaxH
dYSHbhEuRrbsx6q/645LZwGIk1JMKatWp3DhFIVMkQnM9pXB4SyylV5VSBRHTouM
YTfyAu+uQSIdTXX9NB2AXEK1zojbNxhEKH0OnTPcWF3PY00S6sRw8WE7CE/4OVUU
tGtPJ09DbplSvbfWypFLMbEyTTNcrsXDkKCtm05p4TmmTycGeLFcku9w3L7i3jnR
bPAaGfqzC7VeQF2lcI2wLQutuZEwsoyFQKC6WgTg1cHATAPB10fiwZXzfQEIAKyx
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.4
Comment: https://keybase.io/crypto
wcBMA8HXR+LBlfN9AQf+OzGW18kgYe1zuwfl4lTBvZM9QApwu8e6sizFkLsmxG8M
1t+aiupyLIeyLUNCRFTch3jD+IkrNEbM69rbi1y0BGfbZNbMZl3nntupD9d1p5st
Zd7iQCtaQbidPQPQ2GPORSojRXPhTShg/UmKb1aQOSrVkCBzIN3MsiPd3VGAQAga
JQjGbEWMy02i2E0BZSI4HXK878wP5492rwF4gTofZ3ZegeLJ3XkREjloxdcwJiVZ
4kFpZGneXxfkiF0dlhtqRRHqv5w0GRmF9K5CjW57KaKUtMFFO0cdgq21Ayai8ZLz
a4edIsBnhaW45/bXVYtiAbMXesvUH/mr2iC5bd/FNMHATAPB10fiwZXzfQEH/jhf
@jeanlescure
jeanlescure / stringify_bools.rb
Last active August 29, 2015 14:17
Stringify booleans recusively in Arrays and Hashes
# Over-write method
def stringify_bools!(target)
target.replace stringify_bools(target)
end
# Returns clone of target Array or Hash with all booleans within turned into strings
def stringify_bools(target)
t_clone = target.clone
raise ArgumentError, 'Target is neither Array or Hash' unless target.is_a?(Array) || target.is_a?(Hash)