Skip to content

Instantly share code, notes, and snippets.

View damien-list's full-sized avatar

Damien List damien-list

View GitHub Profile
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@pjkix
pjkix / css-stats-ack.sh
Created October 5, 2011 21:39
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@mrtazz
mrtazz / graphline.sh
Created July 20, 2012 12:42
shell function to quickly check a graphite graph
#
# shell function to print graphite graphs as sparklines in the terminal
# needs https://github.com/holman/spark
#
function graphline() {
GRAPHITEHOST="graphite.example.com"
if [ ! -n "$1" ]; then print "Usage: $0 metric [minutes]"; return 1; fi
if [ ! -n "$2" ]; then MINUTES=10 ; else MINUTES=$2; fi
curl -s "${GRAPHITEHOST}/render?from=-${MINUTES}minutes&target=${1}&format=raw" | cut -d"|" -f 2 | spark ;
}
@swannodette
swannodette / gist:3217582
Created July 31, 2012 14:52
sudoku_compact.clj
;; based on core.logic 0.8-alpha2 or core.logic master branch
(ns sudoku
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
(defn get-square [rows x y]
(for [x (range x (+ x 3))
y (range y (+ y 3))]
(get-in rows [x y])))
@eranation
eranation / gist:3241616
Created August 2, 2012 22:51
MongoDB Aggregation Framework way for "select count (distinct fieldName) from someTable" for large collections
//equivalent of "select count (distinct fieldName) from someTable"
db.someCollection.aggregate([{ $group: { _id: "$fieldName"} },{ $group: { _id: 1, count: { $sum: 1 } } } ])
@thom4parisot
thom4parisot / anonymous-quora.js
Created August 3, 2012 21:40
Navigating Quora without being logged in
Array.prototype.forEach.call(document.querySelectorAll('[class*="blurred_answer"]'), function(el){ el.className = el.className.replace(/blurred_answer[^\s]*/g, '') })
@m4dz
m4dz / README.md
Last active September 23, 2025 16:13
OS X Fresh (Re)Install

OS X ENV (re)Install

This is my personal guide to restore my configuration and setup my system for a fresh install. I use it and keep it updated frequently. Hope it will inspire you on your own way =].

Backup

Before a fresh reinstall, don't forget to backup many things. A regular ghost made with CarbonCopyCloner or Clonezilla is a good solution, but if you can't, you should save the following:

anonymous
anonymous / countryselect
Created November 22, 2012 18:19
List of country with their local name
^<select name="CountrySelect">
<option selected="selected">Select a country from this menu</option>
<option value="couaf.html">Afghanistan • افغانستان</option>
<option value="coual.html">Albania • Shqipëria</option>
<option value="coudz.html">Algeria • الجزائر</option>
<option value="couad.html">Andorra</option>
<option value="couao.html">Angola</option>
<option value="couag.html">Antigua and Barbuda</option>
<option value="couar.html">Argentina</option>
<option value="couam.html">Armenia • Հայաստան</option>
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active December 26, 2025 10:04
A badass list of frontend development resources I collected over time.
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active December 26, 2025 12:02
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k