Skip to content

Instantly share code, notes, and snippets.

@lolindirfaelivrin
lolindirfaelivrin / php_perumtaion.php
Created May 3, 2012 08:50
PHP: Php string permutation
<?php
/**
* Permutations
*
* Returns an array of strings containing all the
* ($alphabet ^ $output_length) permutations
*
* @alphabet (string|array) set of at least two elements to choose from
* @output_length (int) the number of elements in each output string
*
@lolindirfaelivrin
lolindirfaelivrin / hack.sh
Created May 1, 2012 21:34 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@lolindirfaelivrin
lolindirfaelivrin / more.md
Created May 1, 2012 21:18 — forked from vasilisvg/more.md
Dropbox: This is my backup script which syncs my server to my dropbox every day.

The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.

You should have a similar script.