Skip to content

Instantly share code, notes, and snippets.

View jfrobbins's full-sized avatar

Jon Robbins jfrobbins

  • NC
  • 19:19 (UTC -05:00)
View GitHub Profile
@ubershmekel
ubershmekel / SimpleHTTPServerSSL.py
Created August 9, 2013 15:28
SimpleHTTPServerSSL.py is a python 3 version of SimpleSecureHTTPServer.py from code.activestate.com
'''
SimpleHTTPServerSSL.py - simple HTTP server supporting SSL/TLS. I.e. HTTPS. For python 3.3
- replace CERT and KEY with the location of your .pem server file.
- the default port is 443.
usage: python SimpleHTTPServerSSL.py
based on http://code.activestate.com/recipes/442473-simple-http-server-supporting-ssl-secure-communica/
'''
@wofeiwo
wofeiwo / readLines-writeLines.go
Created April 2, 2013 04:41
read lines write lines like python api in golang
package main
import (
"io"
"os"
"bufio"
"bytes"
"fmt"
"strings"
)
@chimo
chimo / getAliases.php
Created August 8, 2012 01:58
Import StatusNet group aliases to your local instance
<?php
/**
* Quick and dirty script to import StatusNet group aliases to your local instance.
* Could definitely use some improvements, but it seems to works okay for my needs.
*
* HOWTO:
* Change the four variables below to match your configurations and run the script.
*/
@zyxar
zyxar / exercise.tour.go
Last active October 28, 2025 01:42
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active October 27, 2025 08:27
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh