Skip to content

Instantly share code, notes, and snippets.

View Zatte's full-sized avatar

Mikael Rapp Zatte

  • Kvantic.com
  • Stockholm
View GitHub Profile
@Zatte
Zatte / mirror-org-repos.sh
Created November 5, 2021 08:10 — forked from benbalter/mirror-org-repos.sh
Mirror all organization repositories
org="whitehouse"
for repo in $(curl -v -s "https://api.github.com/orgs/$org/repos?per_page=100&type=sources" 2>&1 | grep '"full_name": "*"' | cut -d':' -f2 | sed s'/,$//' | sed s'/"//g' ); do
filename=$(echo "$repo" | cut -d'/' -f2)
echo "Downloading $repo..."
curl -o "$filename.zip" -L "https://github.com/$repo/archive/master.zip"
done
@Zatte
Zatte / Host
Last active November 6, 2023 12:32 — forked from lucndm/Host
Proxmox GPU passthrough to LXC Container
Note : Proxmox 6.1
VI : /etc/apt/sources.list
# security updates
deb http://security.debian.org jessie/updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian jessie pve-no-subscription
@Zatte
Zatte / cookies.js
Created November 30, 2020 10:02 — forked from rubinchyk/cookies.js
[Read cookies] Read cookies
function readCookies() {
const cookies = document.cookie.replaceAll("; ", "&");
const params = new URLSearchParams(cookies);
return Object.fromEntries(params.entries());
}
// OR
Object.fromEntries(new URLSearchParams(document.cookie.replaceAll("; ", "&")).entries())