Skip to content

Instantly share code, notes, and snippets.

@bfontaine
bfontaine / LICENSE.txt
Created July 6, 2012 21:59 — forked from 140bytes/LICENSE.txt
140byt.es -- shuffleArray (92B)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright © 2011 Baptiste Fontaine bfontaine.net
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@bfontaine
bfontaine / LICENSE.txt
Last active December 12, 2015 02:19 — forked from 140bytes/LICENSE.txt
Random CSS hexadecimal color code generator.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
-----BEGIN CERTIFICATE-----
MIIDaDCCAlCgAwIBAgIBATANBgkqhkiG9w0BAQUFADA9MRAwDgYDVQQDDAdiYXRp
Zm9uMRUwEwYKCZImiZPyLGQBGRYFeWFob28xEjAQBgoJkiaJk/IsZAEZFgJmcjAe
Fw0xNDA4MjQxMTM5NTJaFw0xNTA4MjQxMTM5NTJaMD0xEDAOBgNVBAMMB2JhdGlm
b24xFTATBgoJkiaJk/IsZAEZFgV5YWhvbzESMBAGCgmSJomT8ixkARkWAmZyMIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn3uOgWl+FwXIjDdCay28i6cK
FxHWhHoS/mH9pkXzSGVctEKP2fulie6MkIvrLCP5M6TpByeaBjcJjZPadrou1FIc
Yc/O14jYjaKTqfMxpzgNfGzDdBgBo0QZ9rcHjORetdIZdUSDaZjPtI1aGS6eBMsh
W2X6GxL4UQ1kH0Lyg7iPYAH5RHnD3+G+S28iOPFfRLFzm4fwJp1k7URiiSyOHTDp
B0ZehKKrW/ibCaRMYp2VoCamcim4de1VA6CTOaYSShueqThE18n1HM6aprihziyM
@bfontaine
bfontaine / LICENSE.txt
Last active December 22, 2015 14:18 — forked from 140bytes/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2013 Baptiste Fontaine <bfontaine.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@bfontaine
bfontaine / ipython_config.py
Created April 27, 2014 18:26
Import your ~/.bashrc aliases in IPython
# Configuration file for ipython.
import re
import os.path
c = get_config()
with open(os.path.expanduser('~/.bashrc')) as bashrc:
aliases = []
for line in bashrc:
@bfontaine
bfontaine / install-rogue.sh
Last active August 29, 2015 14:09
Install the original Rogue on Ubuntu
echo "==> retrieving the source"
wget http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.4-src.tar.gz
echo "==> unpacking"
tar xzf rogue5.4.4-src.tar.gz && cd rogue5.4.4
echo "==> configuring"
./configure --disable-debug --disable-dependency-tracking
echo "==> patching"
@bfontaine
bfontaine / pixel-dungeon-jar2app.sh
Last active August 29, 2015 14:10
Install Pixel Dungeon as a Mac .app
#! /usr/bin/env bash
#
# Usage:
# curl -sL http://bit.ly/pixeldungeon2app-sh | bash -e
#
echo "Creating a temporary directory..."
mkdir -p pd_tmp
cd pd_tmp
echo "Downloading a JDK build..."
curl -L# -o jdk.zip https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.7.0-u60-unofficial-macosx-x86_64-image.zip
@bfontaine
bfontaine / rm-brew-doc.sh
Last active August 29, 2015 14:16
Remove docs from installed Homebrew formulae. I ran short of disk space while installing something, and this little command got me 600MB back. Use at your own risk.
\ls -1 /usr/local/Cellar/*/*/share/doc | grep doc: | cut -d: -f1 | xargs rm -rf; brew prune
package main
import "fmt"
func main() {
p := rune(96)
s := `package main
import "fmt"
@bfontaine
bfontaine / gephi-for-osx.md
Last active October 25, 2020 20:21
Install Gephi on OS X
  1. Install Homebrew:

     ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. Download Java 6 on this page and install it

  3. Install Gephi:

     brew cask install gephi