Skip to content

Instantly share code, notes, and snippets.

View gurre's full-sized avatar

Gustav Svalander gurre

  • Göteborg, Sweden
  • 14:26 (UTC +02:00)
View GitHub Profile
@tzengerink
tzengerink / tslint-pre-commit
Created October 10, 2016 07:44
TSLint pre-commit hook
#!/bin/bash
for file in $(git diff --cached --name-only | grep -E '\.ts$')
do
git show ":$file" | tslint "$file"
if [ $? -ne 0 ]; then
exit 1
fi
done
@txels
txels / rebase-onto.md
Last active December 19, 2018 02:00
Rebase a git branch onto another

Change the base branch for your current branch

Some cases:

  • you started a bugfix out of develop, but it should be applied to a release branch
  • you started on a branch and want to rebase it on some colleague's changes

Command

@sdamashek
sdamashek / ranges.txt
Last active January 15, 2016 01:14
Currently Suspected NEW IP Ranges
range - IP Range Owner
46.148.30.0/23 - Infium LLC
62.109.0.0/19 - TheFirst-RU clients
62.122.72.0/23 - Leksim Ltd.
78.24.216.0/21 - TheFirst-RU clients
82.146.40.0/21 - Infium LLC
82.146.56.0/21 - TheFirst-RU clients
91.197.131.0/24 - Virtual Data Computing LLC
91.207.60.0/23 - PE Ivanov Vitaliy Sergeevich
@davegurnell
davegurnell / ios-scroll.js
Created January 23, 2011 11:16
iOS HTML5 Scrollpane
/* iOS scrollpane jQuery plugin, v1.0
* ==================================
*
* (c) 2011 Dave Gurnell
* http://boxandarrow.com
*
* Distributed under the Creative Commons Attribution 3.0 Unported licence:
* http://creativecommons.org/licenses/by/3.0/
*/