# Generate new ssh key (from github)
# https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
ssh-keygen -t rsa -b 4096 -C "email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/EXAMPLE_rsa
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
'.platform-win32 .editor, .platform-linux .editor': | |
'ctrl-shift-L': 'editor:split-selections-into-lines' | |
'ctrl-shift-up': 'editor:add-selection-above' | |
'ctrl-shift-down': 'editor:add-selection-below' |
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
# Customise this file, documentation can be found here: | |
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs | |
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md | |
# can also be listed using the `fastlane actions` command | |
# Change the syntax highlighting to Ruby | |
# All lines starting with a # are ignored when running `fastlane` | |
# If you want to automatically update fastlane if a new version is available: | |
# update_fastlane |
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
import atexit | |
import os | |
import sys | |
try: | |
import readline | |
except ImportError: | |
print "Module readline not available." | |
else: | |
import rlcompleter | |
readline.parse_and_bind('tab:complete') |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# T: an array containing the values of the coins | |
# L: integer wich is the total to give back | |
# Output: Minimal number of coins needed to make a total of L | |
def dynamicCoinChange( T, L ): | |
Opt = [0 for i in range(0, L+1)] | |
You'll need jupyter and some tools to draw plots :)
pip3 install jupyter
pip3 install matplotlib numpy pandas
jupyter notebook
You should have some tools installed like Homebrew, a text editor such as Sublime Text and it's subl command line app inside a bin
folder and some basic terminal knowledge.
This gist is a more detailed version of niepi's gist with things that worked for me. It may help someone :)
$ brew install php --with-apache --with-mysql --with-pgsql --with-intl
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
#!/usr/bin/env bash |
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
# > It happened to me and it turned out that I removed erroneously the postgres user from "ssl-cert" group, set it back with | |
gpasswd -a postgres ssl-cert | |
# Fixed ownership and mode | |
sudo chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key | |
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key | |
# now postgresql starts! (and install command doesn't fail anymore) | |
sudo /etc/init.d/postgresql start |