Skip to content

Instantly share code, notes, and snippets.

View nrkruk's full-sized avatar

Nicolas Kruk nrkruk

View GitHub Profile
@nrkruk
nrkruk / how-to-view-source-of-chrome-extension.md
Created February 20, 2019 20:02 — 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=stable&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.

@nrkruk
nrkruk / vagrantfile
Last active August 29, 2015 14:07
Method for installing docker using vagrant instead of the boot2docker install. Mainly used as a workaround for windows file sharing and port forwarding issues with Virtual Box
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
echo 'deb http://get.docker.io/ubuntu docker main' > \
/etc/apt/sources.list.d/docker.list