Skip to content

Instantly share code, notes, and snippets.

www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.web_enable_ab_rsp_cl, false)
@Yuki2718
Yuki2718 / gist:46b4335d2e5cd422b68aac72d7706d41
Last active April 24, 2024 18:20
YT - mitigate slow loading
www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
@hwei
hwei / gist:c1eae657b44f3436702a
Created April 27, 2015 09:26
Convert matcap to cubemap (Unity 5.0)
using UnityEngine;
using UnityEditor;
public class MatcapToCubemap : ScriptableWizard {
public Texture matcap;
public float emissionScale = 1f;
public int size = 256;
void OnWizardUpdate () {
this.isValid = this.matcap != null;
@grihabor
grihabor / Makefile.version
Last active April 24, 2024 18:18
Makefile to use for incremental semantic versioning
MAKE := make --no-print-directory
DESCRIBE := $(shell git describe --match "v*" --always --tags)
DESCRIBE_PARTS := $(subst -, ,$(DESCRIBE))
VERSION_TAG := $(word 1,$(DESCRIBE_PARTS))
COMMITS_SINCE_TAG := $(word 2,$(DESCRIBE_PARTS))
VERSION := $(subst v,,$(VERSION_TAG))
VERSION_PARTS := $(subst ., ,$(VERSION))
@matt-dres
matt-dres / install_certs_mac.sh
Created December 15, 2022 23:50
Download & install selfsigned certs from TAP onto macOS
#!/bin/bash
set -euo pipefail
#####
# Simple bash script to retrieve the selfsigned cert from TAP and install it locally on macOS
#####
echo "--- Fetching TAP Ingress Certificate ---"
kubectl get secret -n cert-manager tap-ingress-selfsigned-root-ca -o yaml | yq '.data."ca.crt"' | base64 -d > ca.crt
@dnovik
dnovik / cities.csv
Created January 19, 2019 06:55 — forked from nalgeon/cities.md
Города России с координатами
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 21 columns, instead of 18. in line 5.
Индекс,Тип региона,Регион,Тип района,Район,Тип города,Город,Тип н/п,Н/п,Код КЛАДР,Код ФИАС,Уровень по ФИАС,Признак центра района или региона,Код ОКАТО,Код ОКТМО,Код ИФНС,Часовой пояс,Широта,Долгота,Федеральный округ,Население
385200,Респ,Адыгея,,,г,Адыгейск,,,0100000200000,ccdfd496-8108-4655-aadd-bd228747306d,4: город,0,79403000000,79703000001,0107,UTC+3,44.8783715,39.190172,Южный,12689
385000,Респ,Адыгея,,,г,Майкоп,,,0100000100000,8cfbe842-e803-49ca-9347-1ef90481dd98,4: город,2,79401000000,79701000001,0105,UTC+3,44.6098268,40.1006527,Южный,144055
649000,Респ,Алтай,,,г,Горно-Алтайск,,,0400000100000,0839d751-b940-4d3d-afb6-5df03fdd7791,4: город,2,84401000000,84701000,0400,UTC+7,51.9582681,85.9602957,Сибирский,62861
658125,край,Алтайский,,,г,Алейск,,,2200000200000,ae716080-f27b-40b6-a555-cf8b518e849e,4: город,0,01403000000,01703000,2201,UTC+7,52.4920914,82.7794145,Сибирский,28528
656000,край,Алтайский,,,г,Барнаул,,,2200000100000,d13945a8-7017-46ab-b1e6-ede1e89317ad,4: город,2,01401000000,01701000,2200,UTC+7,53.
@amingholami
amingholami / make-chr.sh
Last active April 24, 2024 18:13 — forked from stroebs/make-chr.sh
Install Mikrotik CHR on a DigitalOcean Droplet (2021)
Install Mikrotik CHR on Digital Ocean Ubuntu 18.04 LTS Droplet. Tested 11/2021
1. Turn Off Droplet after creation and go to Recovery and set it to Boot from Recovery ISO.
2. Trun on Droplet and open Console
3. Press 6 and go to shell
4. Paste below code to install CHR on HDD
@SeanMcGrath
SeanMcGrath / poshmark-share
Last active April 24, 2024 18:12
JS code to share all items in a poshmark closet to followers and all available events
const clickDelta = 4000; // ms delay between clicks
const cycleDelta = clickDelta * 100; // ms delay between share cycles
const clickLinks = (el) => {
el.click();
// set a short timeout so there's time to load in the active parties/render the modal
setTimeout(() => {
document
.querySelectorAll("[data-et-name='share_poshmark']")
@siddhipa
siddhipa / README.md
Last active April 24, 2024 18:11
Nike Global Manufacturing Dataset

This is the Nike Global Manufacturing Dataset. Originally published by at Nike Manufacturing. It consists of details of Nike manufacturing factories across the world – their locations, factory types, number of workers, female workers, and migrant workers, etc.

A code example with D3, see VizHub: Basic Scatter Plot.

@nateklaiber
nateklaiber / design.md
Last active April 24, 2024 18:11
API Client Design