Skip to content

Instantly share code, notes, and snippets.

View jasonmoo's full-sized avatar

Jason Mooberry jasonmoo

View GitHub Profile
@endolith
endolith / Has weird right-to-left characters.txt
Last active June 1, 2024 10:58
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@alexisrobert
alexisrobert / webserver.go
Created May 20, 2011 10:13
Tiny web server in Go for sharing a folder
/* Tiny web server in Golang for sharing a folder
Copyright (c) 2010-2014 Alexis ROBERT <alexis.robert@gmail.com>
Contains some code from Golang's http.ServeFile method, and
uses lighttpd's directory listing HTML template. */
package main
import "net/http"
import "net/url"
@sebastien-p
sebastien-p / LICENSE.txt
Created August 24, 2011 16:13 — forked from 140bytes/LICENSE.txt
base62 encode
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
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
@the42
the42 / gist:1956518
Created March 2, 2012 07:34
GZip encoding for GO V1 using custom responsewriter
package main
import (
"compress/gzip"
"io"
"net/http"
"strings"
)
type gzipResponseWriter struct {
@saich
saich / profiler.js
Created June 26, 2012 06:00
window.performance.now() wrapper for profiler use
/**
* @constructor
*/
function Profiler() {
}
/**
* Uses the best resolution timer that is currently available.
* The return value of this can only be used for measuring the time interval,
@mike-zhang
mike-zhang / udpProxy.go
Created October 8, 2012 15:58
Implementation of a UDP proxy in Golang
// Implementation of a UDP proxy
package main
import (
"flag"
"fmt"
"log"
"net"
"os"
@kgriffs
kgriffs / sysctl.conf
Last active April 29, 2024 11:32
Linux Web Server Kernel Tuning
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
#
# See also: https://gist.github.com/kgriffs/4027835
#
# Assumes a beefy machine with lots of network bandwidth
@nikic
nikic / php-5.5-features.md
Last active August 31, 2020 10:39
List of new features in PHP 5.5
@brito
brito / dabblet.css
Created April 23, 2013 02:15
Springfield Reloaded
/* Springfield Reloaded */
/* typography */
@import url(//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css);
@import url(http://fonts.googleapis.com/css?family=Signika+Negative:300|Signika:300);
* { font:300 1em/1.6 Signika; margin:0; padding:0 }
a { text-transform:uppercase; font-size:.9em; color:inherit; text-decoration:none;
margin:0 .6em 0 0; display:inline-block }
header h1 { font:300 2.6em/1 Signika Negative; text-transform:uppercase;
margin-bottom:.3em }
@qerub
qerub / ThriftUnixDomainSocketServer.java
Created June 23, 2013 22:03
Thrift + Unix domain socket server
import java.io.File;
import java.io.IOException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TFastFramedTransport;
import org.apache.thrift.transport.TIOStreamTransport;
import org.apache.thrift.transport.TTransport;
import org.newsclub.net.unix.AFUNIXServerSocket;
import org.newsclub.net.unix.AFUNIXSocket;