Skip to content

Instantly share code, notes, and snippets.

View baseonmars's full-sized avatar

Dan Cseko baseonmars

View GitHub Profile
@baseonmars
baseonmars / keybase.md
Created July 6, 2017 05:05
keybase.md

Keybase proof

I hereby claim:

  • I am baseonmars on github.
  • I am baseonmars (https://keybase.io/baseonmars) on keybase.
  • I have a public key ASCz3UuqgdjlFuh8MQ27LFM-EojY7lzwPK0uupO7uY8p-Qo

To claim this, I am signing this object:

var margin = 5;
S.cfga({
"defaultToCurrentScreen" : true,
"secondsBetweenRepeat" : 0.1,
"checkDefaultsOnLoad" : true,
"focusCheckWidthMax" : 3000
});
// Create Operations
@baseonmars
baseonmars / gist:f69b7eb25ce92e865a9f
Created May 5, 2015 11:03
node-unix-dgram build issue with iojs 2.0.0
0 info it worked if it ends with ok
1 verbose cli [ '/Users/dan/.nvm/versions/io.js/v2.0.0/bin/iojs',
1 verbose cli '/Users/dan/.nvm/versions/io.js/v2.0.0/bin/npm',
1 verbose cli 'i' ]
2 info using npm@2.9.0
3 info using node@v2.0.0
4 verbose readDependencies loading dependencies from /Users/dan/code/forks/node-unix-dgram/package.json
5 verbose install where, deps [ '/Users/dan/code/forks/node-unix-dgram',
5 verbose install [ 'bindings', 'nan' ] ]
6 verbose install where, peers [ '/Users/dan/code/forks/node-unix-dgram', [] ]
<!doctype html>
<html>
<head>
<title>Bootstrap example</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
@baseonmars
baseonmars / simple_bootstrap
Created July 3, 2014 14:35
a simple bootstrap layout
<!doctype html>
<html>
<head>
<title>Bootstrap example</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<style>
@baseonmars
baseonmars / git-olde
Last active January 4, 2016 16:59
List git branches in order of age
#!/bin/bash
location="--list"
while getopts rla opt; do
case $opt in
r)
location="--remote"
;;
l)
function say(phrase, language) {
var audio = ...
return audio.play()
}
function Audio(...) {
}
Audio.prototype.play = function () {
var def = new $.Deferred()
@baseonmars
baseonmars / .tmux.conf
Created March 15, 2012 17:21
Dane's tmux file
# Use C-a, like screen
unbind C-b
unbind l
set -g prefix C-a
bind-key '`' last-window
bind-key C-a send-keys 'C-a'
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
$ svn co http://svn.openqa.org/svn/selenium-rc/trunk selenium-rc
$ cd selenium-rc
$ patch -p0 < snow-leopard.patch
$ mvn install
$ cp selenium-server.jar selenium-server.jar.bak #if it exists
$ cp selenium-server/target/selenium-server-1.0.2-SNAPSHOT-standalone.jar selenium-server.jar
taken from http://jira.openqa.org/browse/SRC-743#action_18980
see snow-leopard.patch for patch. This is obviously for selenium server v1, the dev's recommend try 2.0 alpha in the bug thread - I haven't tried this yet.
@baseonmars
baseonmars / bullet-proof-font-face.css
Created December 3, 2009 12:00
Bullet proof font-face decleration
@font-face {
font-family: 'Graublau Web';
src: url('GraublauWeb.eot');
src: local('Graublau Web Regular'), local('Graublau Web'),
url('GraublauWeb.otf') format('opentype');
}