Skip to content

Instantly share code, notes, and snippets.

View eivindj's full-sized avatar

Eivind Josten eivindj

  • Oslo, Norway
View GitHub Profile
@eivindj
eivindj / README.md
Created December 10, 2015 08:20 — forked from MethodGrab/README.md
Jenkins NodeJS Plugin: Missing nodejs.org installers

Jenkins NodeJS Plugin: Missing nodejs.org installers

Versions

  • Ubuntu 14.04 LTS x64
  • Java 1.7
  • Jenkins 1.639
  • NodeJS plugin 0.2.1
@eivindj
eivindj / flock.sh
Created December 9, 2015 13:39
File locking in scripts
#!/bin/sh
# from http://sysadvent.blogspot.no/2008/12/day-9-lock-file-practices.html
lockfile="/tmp/cron_rsync.lock"
if [ -z "$flock" ] ; then
lockopts="-w 0 $lockfile"
exec env flock=1 flock $lockopts $0 "$@"
fi
@eivindj
eivindj / how-to-view-source-of-chrome-extension.md
Last active August 28, 2015 12:30 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=unknown&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.