Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block WooodHead

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
WooodHead /
Created Nov 27, 2019 — forked from myusuf3/
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
WooodHead /
Created Nov 8, 2019 — forked from jondot/
ios keyboard bezier
  onKeyboardWillHide(e) {
    Animated.timing(this.state.height, {
      toValue: this.listViewMaxHeight,
      duration: e.duration,
      easing: Easing.bezier(0.1, 0.76, 0.55, 0.9)

  onKeyboardWillShow(e) {
WooodHead / schema.sql
Created Oct 4, 2019 — forked from hays-hutton/schema.sql
A Simplified Schema Example for PostgREST
View schema.sql
users (
email TEXT PRIMARY KEY CHECK ( email ~* '^.+@.+\..+$' ),
pass TEXT NOT NULL CHECK (length(pass) < 256),
role NAME NOT NULL CHECK (length(role) < 256)
WooodHead / output.json
Created Oct 3, 2019 — forked from canuckistani/output.json
Get 10k extensions from the chrome web store.
View output.json
WooodHead / gist:a9efd895d98969d83a8223bccbc568d3
Created Oct 3, 2019 — forked from sshay77/gist:4b1f6616a7afabc1ce2a
View gist:a9efd895d98969d83a8223bccbc568d3
// ==UserScript==
// @name Google Search Better Privacy
// @description Delete unnecessary params and add useful params on Google Search.
// @version 0.0.4
// @include http://*.google.*/search*
// @include http://*.google.*/imgres*
// @include https://*.google.*/search*
// @include https://*.google.*/imgres*
// @exclude*
// @exclude*
WooodHead /
Created Aug 4, 2019 — forked from samiujan/
How to install Scrapy on Ubuntu

Scrapy is the web-scraper's scraper - it handles typical issues like distributed, asynchronous crawling, retrying during down-time, throttling download speeds, pagination, image downloads, generates beautiful logs and does much much more

You need a few modules to run scrapy on a Ubuntu/Debian machine (I used a cloud-based Ubuntu 14.04.4 LTS)

Following are the steps (and some recommendations)

The following was executed on a vanilla DigtialOcean Ubuntu (5 USD per month, 512 MB RAM). I feel this is sufficient to run a Scrapy crawler running at approx 1 HTTP request per second (with auto-throttle and delays turned on)

sudo apt-get update
WooodHead / puppeteer-gif.js
Created May 22, 2019 — forked from bambooom/puppeteer-gif.js
use puppeteer to generate gif
View puppeteer-gif.js
const fs = require('fs');
const puppeteer = require('puppeteer');
const GIFEncoder = require('gifencoder');
const PNG = require('png-js');
function decode(png) {
return new Promise(r => {png.decode(pixels => r(pixels))});
WooodHead /
Created Mar 25, 2019 — forked from wbotelhos/
Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
WooodHead /
Created Mar 25, 2019 — forked from GAS85/
Aria2 + Ubuntu 16.04 + Apache2 + Web UI
OS: Ubuntu 16.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is
Your local IP network is

Aria 2

1. Installation

Install aria2 package:

WooodHead /
Created Feb 13, 2019 — forked from adamloving/
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
You can’t perform that action at this time.