Skip to content

Instantly share code, notes, and snippets.

View reset.css
Made by Elly Loel -
With inspiration from:
- Josh W Comeau -
- Andy Bell -
- Adam Argyle - /
- `:where()` is used to lower specificity for easy overriding.
yufengwng / zipping.txt
Created Mar 26, 2015
Commands for archiving and zipping files.
View zipping.txt
create new gunzipped tar
$ tar cvzf <name>.tar.gz file <files>
extract from gunzipped tar
$ tar xvzf <name>.tar.gz
list contents of gunzipped tar
yufengwng / usb.txt
Created Nov 24, 2016
Commands for managing usb devices
View usb.txt
view device filesystems
$ lsblk -f
view devices
$ udiskctl status
view device info
$ udiskctl info -b /dev/<id>
mount partition
michaelficarra / etsy-scrape.rb
Created Sep 13, 2011
download all the listing images from a given etsy shop
View etsy-scrape.rb
require 'etsy'
Etsy.api_key = '<api-key>'
shop = Etsy::Shop.find '<shop-name>'
out_dir = '<output-directory>'
Etsy.environment = :production
Dir.mkdir out_dir unless File.exists? out_dir
listings = []
yufengwng / public_ip.txt
Created May 16, 2018
Get public IP address programmatically
View public_ip.txt
$ curl -si
yufengwng /
Created Mar 29, 2017
ZSH completion file for doctl.
# ZSH completion script for doctl.
# This takes bach completion and converts it to support zsh.
# Inspired by [kubectl][kc] and [opencompose][oc], the bash
# part is from [@andewsomething][as-gist].
# [kc]:
# [oc]:
# [as-gist]:

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

yyx990803 / starcounter.js
Last active Jun 28, 2022
Count your total stars!
View starcounter.js
var https = require('https'),
user = process.argv[2],
opts = parseOpts(process.argv.slice(3))
request('/users/' + user, function (res) {
if (!res.public_repos) {
var pages = Math.ceil(res.public_repos / 100),

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
jsoverson / intercept.js
Created Feb 19, 2019
Intercept responses with chrome and puppeteer
View intercept.js
const puppeteer = require('puppeteer');
const prettier = require('prettier');
const atob = require('atob');
const btoa = require('btoa');
const scriptUrlPatterns = [
const requestCache = new Map();