Skip to content

Instantly share code, notes, and snippets.

View arjenvanderende's full-sized avatar

Arjen van der Ende arjenvanderende

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arjenvanderende on github.
  • I am arjenvanderende (https://keybase.io/arjenvanderende) on keybase.
  • I have a public key whose fingerprint is AA7A 35D3 2131 1411 7CB1 175B D3AB CA27 02F4 EA9C

To claim this, I am signing this object:

@arjenvanderende
arjenvanderende / gae_download_app.sh
Created July 26, 2013 10:48
Terminal command to download an AppEngine app. The example from the documentation is incorrect.
appcfg.sh -A <apppid> -V <version> download_app <directory>
@arjenvanderende
arjenvanderende / git_push_current_branch_default.sh
Created April 11, 2013 13:15
Configure git to push only the current branch when using: git push
git config --global push.default current
git push
@arjenvanderende
arjenvanderende / find_application_using_port.sh
Created April 8, 2013 07:45
Find an application that is using a specific port.
lsof -i -P | grep 8080
@arjenvanderende
arjenvanderende / jquery_any.js
Last active December 15, 2015 13:49
Adds helper method $.any() for promises to jQuery. Usage: $.any(promise1, promise2).then(someAction);
(function( $ ) {
$.any = function () {
var failed = 0;
var count = arguments.length;
var dfd = $.Deferred();
for (var i = 0; i < count; i++) {
arguments[i].then(function(value) {
dfd.resolve(value);
}, function() {
@arjenvanderende
arjenvanderende / play_find_routes.sh
Last active December 15, 2015 12:58
For Play! Framework, finds all public static method that should have a route defined in routes/conf.
egrep "public static" `git ls-files | egrep "controller" | egrep -v "test"` | sed 's/[a-z/]*\/\([A-Za-z]*\).java:[ ]*public static [a-zA-Z<>, ]* \([_a-zA-Z]*\).*/\1.\2/' | egrep -v "//" | awk 'NR==FNR{a[$NF];next}!($0 in a)' conf/routes -
@arjenvanderende
arjenvanderende / replace_space_with_underscore_in_filenames.sh
Created January 17, 2013 14:48
Changes the filename of each file in the current directory, so spaces are replaced with underscores.
for name in *.*; do new_name=$(echo $name | sed 's/ /_/g'); mv "$name" $new_name; done
@arjenvanderende
arjenvanderende / invert_mouse_wheel_direction.ps1
Last active January 11, 2024 14:09
Inverting the mouse wheel direction in Windows, to mimic the natural scroll direction of OS X.
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }