Skip to content

Instantly share code, notes, and snippets.

@matthiaskern
matthiaskern / feedly_export_saved_for_later.js
Last active June 30, 2017 02:27
Small script to fetch saved for later items from feedly as JSON. Based on https://gist.github.com/bradcrawford/7288411
if(!(window.jQuery)) {
var script = document.createElement("script");
script.setAttribute("src", "https://code.jquery.com/jquery-2.2.1.min.js");
script.setAttribute("type", "text/javascript");
script.onload = logItems;
document.getElementsByTagName("head")[0].appendChild(script);
} else {
logItems();
}
@andrewmriley
andrewmriley / gist:6401eef48859519f483c
Last active April 23, 2024 18:19
Copy your current git branch name to clipboard
## Choose one and add it as an alias or throw it in a script ##
### Modern Git Thanks to @Pezmc
# Linux/Unix Wayland
git branch --show-current | wl-copy
# Linux/Unix X11
git branch --show-current | xclip -selection clipboard
# MacOS
@agragregra
agragregra / gulpfile.js
Created January 15, 2016 10:36 — forked from martinwolf/gulpfile.js
Jekyll, Browsersync and Gulp
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
@crittelmeyer
crittelmeyer / tmux_cheatsheet.markdown
Last active September 27, 2023 19:37 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux/tmuxinator cheatsheet

tmux

As configured in my dotfiles, here and here.

Command line

$ tmux                           -> start new
$ tmux new -s myname             -> start new w/session name
$ tmux a  #  (or at, or attach)  -> attach
$ tmux a -t myname               -> attach to named
@tjweir
tjweir / hhkb-viper.hex
Created March 29, 2015 18:28
Viper .hex for HHKB layout.
:10000000CCC00000E7C00000E5C00000E3C0000075
:10001000E1C00000DFC00000DDC00000DBC0000068
:10002000D9C00000D7C000000C946823D3C00000E2
:10003000D1C00000CFC00000CDC00000CBC0000088
:10004000C9C00000C7C00000C5C00000C3C0000098
:100050000C94E60EBFC00000BDC00000BBC0000095
:10006000B9C00000B7C00000B5C00000B3C00000B8
:10007000B1C00000AFC00000ADC00000ABC00000C8
:10008000A9C00000A7C00000A5C000000C94850E08
:10009000A1C000009FC000009DC000009BC00000E8
@aamnah
aamnah / lamp.sh
Last active February 19, 2024 11:51
Bash script to install Apache, MySQL and PHP as well as PHPMyAdmin and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Written by @AamnahAkram from http://aamnah.com
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
@jasonrudolph
jasonrudolph / git-branches-by-commit-date.sh
Created February 12, 2012 20:40
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created September 9, 2011 18:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods