Skip to content

Instantly share code, notes, and snippets.

from github import Github # pip install github
# Github API Token
ACCESS_TOKEN= ''
# Github Users stars you want to hoard
githubUser = 'stankye'
# File name you want to save as
fileName = 'myStars.txt'
@Xaero252
Xaero252 / Moved.md
Last active May 26, 2019 02:17
Enable nvdec support for plex dockers on unraid
@DashLt
DashLt / create_service.sh
Last active October 27, 2022 05:57
Quickly make 100 service accounts and generate keys for them
#!/bin/bash
# requires gcloud command line tools; go to https://cloud.google.com/sdk/docs/quickstarts to get them
# max 100 service accounts per project
# run gcloud init --console-only first and select a project
KEYS_DIR=keys
for name in service{1..100}; do echo $name; done | parallel --citation -j100 gcloud iam service-accounts create {}
for name in $(gcloud iam service-accounts list --format='value(email)'); do echo $name; done | parallel --citation -j100 gcloud iam service-accounts keys create $KEYS_DIR/{}.json --iam-account={}
gcloud iam service-accounts list --format='value(email)'
@smoser
smoser / README.md
Last active April 2, 2019 23:52
fix lxc ZFS filesystem cannot destroy error.

Fix LXD error when cannot destroy filesystem dataset busy

Sometimes lxd with zfs gets hosed in a way that:

$ lxc delete --force golden-piranha
Error: Failed to destroy ZFS filesystem: cannot destroy 'default/containers/golden-piranha': dataset is busy

The script lxcl-fix-filesystem-busy below helps to fix that.

@binkybear
binkybear / NETHUNTEROS.MD
Last active October 9, 2025 22:13
Nethunter ROM on Nexus 5 & 6P with Nexmon (testing only)

Nethunter OS on Nexus 5/Nexus 6P

Here are instructions to install Nethunter (as a ROM) with working native monitor mode in the chroot using Nexmon. The ROM is a modified CM 14.1 (nougat) base with custom kernel which supports: HID, Drivedroid, Kexec, and external wireless.

What you need

You will need the following 3 items (maybe 4):

Nexus 5 Devices:

@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream