Skip to content

Instantly share code, notes, and snippets.

View bench.js
"use strict";
var fs = require("graceful-fs"),
yazl = require("yazl"),
archiver = require("archiver");
var dir = process.argv[2];
yazlFunc(function () {
archiverFunc();
@silverwind
silverwind / gist:ba8c6577503b1f5809f9
Last active Aug 29, 2015
Code view and Editor theme styles - pulled from GH stylesheet
View gist:ba8c6577503b1f5809f9
.highlight .pl-coc,.highlight .pl-entm,.highlight .pl-eoa,.highlight .pl-mai .pl-sf,.highlight .pl-pdv,.highlight .pl-sc,.highlight .pl-sr,.highlight .pl-v,.highlight .pl-vpf{
color:#0086b3
}
.highlight .pl-eoac,.highlight .pl-mdht,.highlight .pl-mi1,.highlight .pl-mri,.highlight .pl-va,.highlight .pl-vpu{
color:#008080
}
.highlight .pl-c,.highlight .pl-pdc{
View gist:c4335d6919aabd5ce290
@-moz-document regexp("^https?://((gist|guides|help|status|developer)\.)?github\.com((?!generated_pages\/preview).)*$"), domain("render.githubusercontent.com") {
/* Github Dark Theme v1.8.36 (9/5/2014)
* https://github.com/StylishThemes/GitHub-Dark
* http://userstyles.org/styles/37035
* License: http://sam.zoy.org/wtfpl/
*/
/* AGENT_SHEET */
body {
background-color: #222 !important;
background-image: /*[[bg-choice]]*/ url(https://stylishthemes.github.io/GitHub-Dark/images/backgrounds/bg-tile1.png) !important;
View gist:d0802f7a919ae86ff25e
#!/usr/bin/env node
"use strict";
console.log("This is pid " + process.pid);
setTimeout(function () {
process.on("exit", function () {
require("child_process").spawn(process.argv.shift(), process.argv, {
cwd: process.cwd(),
@silverwind
silverwind / nginx.conf
Last active Sep 1, 2017
Nginx TLS proxy for droppy
View nginx.conf
user http;
worker_processes 1;
error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server_tokens off;
View ococat.css
body { background: #222 }
#octo #cat { fill: #fff }
#octo { position: fixed; height: 100%; width: 100% }
#octo .part {
animation-name: fade;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: ease-out;
fill: #333;
@silverwind
silverwind / gist:7647456
Last active Dec 29, 2015
109 unique, light and distinguishable colors.
View gist:7647456
#9576ff
#869a00
#c67f66
#ff0095
#809b31
#92bc82
#919191
#ff4593
#f79c0d
#d2ad00
View gist:6741581
install: /usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/
programs: =/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/
libraries: =/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../:/lib/armv6l-unknown-linu
View gist:6741509
install: /usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/
programs: =/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/
libraries: =/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../:/lib/armv6l-
@silverwind
silverwind / spacing.css
Created Aug 5, 2013
hack fix for line number spacing
View spacing.css
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("^http(s)?://((www|gist|help|status).)?github.*") {
/* Github Dark Theme v1.3.5 (6/18/2013)
* https://github.com/Mottie/Github-Dark
* http://userstyles.org/styles/37035
* License: http://sam.zoy.org/wtfpl/
*/