Skip to content

Instantly share code, notes, and snippets.

View ivar's full-sized avatar

Ivar Vasara ivar

  • Misc / Consultant
  • Vancouver
View GitHub Profile
@roman
roman / tmux.conf
Created July 4, 2011 16:42
My tmux conf
# Set prefix to C-a to keeps things simpler
unbind C-b
unbind l
set -g prefix C-a
bind C-a send-prefix
set -g default-terminal "screen-256color"
# Use vi keybindings in the copy and scroll mode
set-window-option -g mode-keys vi
# Use vi keybindings on the prompt
@dkubb
dkubb / .gitignore
Created December 5, 2011 18:26
Test Feedzirra w/VCR using an HTTP proxy
cassettes
@cpb
cpb / gist:1988988
Created March 6, 2012 21:10
Bookmarklet for Webkit Browsers to make GitHub Pull Requests full screen
javascript:["#slider .frames .frame",".mini-avatar-bubble",".line-comments .clipper",".site", ".site .container","#files_bucket",".discussion-timeline"].forEach(function(i) { try { var set=document.querySelectorAll(i); for(var e=0; e<set.length; e++) {set[e].style.setProperty('width','auto');} } catch(e) { console.log(e) } });[".site"].forEach(function(i) { try { document.querySelector(i).style.setProperty('margin-left','31px'); } catch(e) { console.log(e) } })
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active November 14, 2024 17:18
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@jonasschneider
jonasschneider / Gemfile
Created January 14, 2013 13:36
Multiprocessing on a single heroku dyno
source "http://rubygems.org"
@seabre
seabre / three.cljs
Last active September 13, 2021 06:19 — forked from michiakig/three.cljs
Three.js demo with ClojureScript. Actually works.
(ns three.demo)
(def THREE js/THREE)
(def camera (THREE.PerspectiveCamera. 75 (/ (.-innerWidth js/window)
(.-innerHeight js/window)) 1 10000))
(set! (.-z (.-position camera)) 1000)
(def scene (THREE.Scene.))
(def geometry (THREE.CubeGeometry. 200 200 200))
(def obj (js/Object.))
(set! (.-color obj) 0xff0000)
(set! (.-wireframe obj) true)
@joey-coleman
joey-coleman / README.md
Last active November 1, 2016 19:27
Webapps with OS X Server 3.1

Creating a apache-proxy webapp on OS X using Server.app. Just enable the webapp on the appropriate domains; the path etc is configured in the webapp plist.

The examples below come from the config I used to get jenkins running on the Overture build server.

Frankly, I think the mechanism used has promise, but is very poorly documented. So it goes with much of Apple's Server.app stuff, though. Apple's "Advanced Topics" page at http://www.apple.com/support/osxserver/advancedtopics/ is not a bad place to find a bit of help, though.

  • One for the webapp description
    • Lives in /Library/Server/Web/Config/apache2/webapps/
    • Should be auto-detected by Server.app? Doesn't seem to be for me, no idea why.
  • The magic invocation webappctl restart appears to force a reload.
@nickloewen
nickloewen / bret_victor-reading_list.md
Last active November 14, 2024 21:10
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

# Phasing Piano for Sonic Pi, coded by Darin Wilson
# inspired by Steve Reich's Clapping Music
#
# This piece consists of two threads, each playing the same short melodic phrase.
#
# On every third pass through the phrase, one of the threads shifts the phase by
# 1/4 of a beat, moving it more and more out of phase. Eventually, it comes
# back around to where it started, and the piece ends.
use_synth :piano
@oqu
oqu / gist:354aecb973f6bf5c0efe
Last active February 23, 2016 13:55
Dobot - first try
/**
* Created by olipion on 2/8/16.
* My first shot at reverse engineering java application.
*/
var SerialPort = require("serialport").SerialPort;
var serialPort;
/**