Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "your_email@example.com"
#! /usr/bin/env bash | |
# http://smirnov-am.blogspot.com/2015/04/installation-of-python-279-in-ubuntu.html | |
# http://davebehnke.com/python-pyenv-ubuntu.html | |
# https://renoirboulanger.com/blog/2015/04/upgrade-python-2-7-9-ubuntu-14-04-lts-making-deb-package/ | |
# install dependencies | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential |
#! /usr/bin/env bash | |
# http://smirnov-am.blogspot.com/2015/04/installation-of-python-279-in-ubuntu.html | |
# http://davebehnke.com/python-pyenv-ubuntu.html | |
# https://renoirboulanger.com/blog/2015/04/upgrade-python-2-7-9-ubuntu-14-04-lts-making-deb-package/ | |
# install dependencies | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential |
#!/usr/bin/env ruby | |
require 'digest/md5' | |
require "addressable/uri" | |
# this is based on gravatar image API | |
# https://en.gravatar.com/site/implement/images/ | |
# options : | |
# size : <integer> size of image | |
# default: <string> url of image if email not found or: | |
# * 404 |
#! /usr/bin/env python2 | |
# Requires: PIL, colormath | |
# | |
# Improved algorithm now automatically crops the image and uses much | |
# better color matching | |
from PIL import Image, ImageChops | |
from colormath.color_conversions import convert_color | |
from colormath.color_objects import LabColor | |
from colormath.color_objects import sRGBColor as RGBColor |
#!/bin/bash | |
# Accept already established connections (so it doesnt drop your current SSH session) | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# Accept SSH connections from anywhere | |
iptables -A INPUT -p tcp -i eth0 --dport ssh -j ACCEPT | |
# (Optional) Accept HTTP connections from anywhere | |
iptables -A INPUT -p tcp -i eth0 --dport 80 -j ACCEPT |
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
require 'logger' | |
class ColoredLogger < Logger | |
WHITE = "\e[37m" | |
CYAN = "\e[36m" | |
MAGENTA = "\e[35m" | |
BLUE = "\e[34m" | |
YELLOW = "\e[33m" | |
GREEN = "\e[32m" | |
RED = "\e[31m" | |
BLACK = "\e[30m" |
require 'logger' | |
class ColoredLogger < Logger | |
WHITE = "\e[37m" | |
CYAN = "\e[36m" | |
MAGENTA = "\e[35m" | |
BLUE = "\e[34m" | |
YELLOW = "\e[33m" | |
GREEN = "\e[32m" | |
RED = "\e[31m" | |
BLACK = "\e[30m" |
FIXME: | |
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
or | |
libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found | |
gem uninstall nokogiri libxml-ruby | |
brew update | |
brew uninstall libxml2 |