Skip to content

Instantly share code, notes, and snippets.

View arkhi's full-sized avatar
🐼

Fabien Basmaison arkhi

🐼
View GitHub Profile
anonymous
anonymous / config.json
Created February 24, 2016 07:29
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#999",
"@gray-darker": "#555",
"@gray-dark": "#777",
"@gray": "#b8b8b8",
"@gray-light": "#ddd",
"@gray-lighter": "#eee",
"@brand-primary": "#dd1e26",
"@brand-success": "#5cb85c",
@dark-reiser
dark-reiser / git_deploy.md
Created April 12, 2015 11:56
git hook deploy
  1. create repositories
git init --bare weduz.git
  1. create web directori
mkdir /var/www/weduz

3.enter hook directory

@staltz
staltz / introrx.md
Last active May 29, 2024 05:51
The introduction to Reactive Programming you've been missing
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
@henrik242
henrik242 / p4merge
Last active January 5, 2023 22:23
Helper script for p4merge and Git on MacOSX
#!/bin/bash
for arg; do [[ $arg = /* ]] || arg=$PWD/$arg; absargs+=("$arg"); done;
/Applications/P4Merge.app/Contents/Resources/launchp4merge "${absargs[@]}"
@zpao
zpao / run-this.js
Created June 10, 2011 23:27
Simple Window + Tab Stats
/* Run this in your error console */
var wc=0, tc=0, tgc=0;
var {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/DownloadUtils.jsm");
var wm = Services.wm;
var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
var e = wm.getEnumerator("navigator:browser");
var uc = { };
while (e.hasMoreElements()) {