Skip to content

Instantly share code, notes, and snippets.

View Nanodragon999's full-sized avatar
🏠
Searching for a remote work.

Norton Nanodragon999

🏠
Searching for a remote work.
  • France
View GitHub Profile
@ericmjl
ericmjl / display.py
Created April 28, 2019 11:51
Custom module that wraps waveshare's e-paper display code.
from PIL import Image
def read_img(fname):
b = Image.open("images/{fname}_b.bmp".format(fname=fname))
r = Image.open("images/{fname}_r.bmp".format(fname=fname))
return b, r
def display(fname, epd):
b, r = read_img(fname)
@nektro
nektro / ytdla.ps1
Created April 24, 2019 10:06
youtube-dl audio powershell
youtube-dl -x --audio-format m4a -o "%(uploader)s - %(title)s - %(id)s.%(ext)s" $args
@werrpy
werrpy / .bashrc
Last active October 8, 2023 11:02
rtorrent / deluge symlink and auto rename for plex and rclone upload
alias filter_filebot='cat ~/filebot/data/logs/filebot_auto_rclone.log | grep -i "move" | uniq > ~/filebot/data/logs/filebot_auto_rclone_filtered.log && cat ~/filebot/data/logs/filebot_auto_rclone_filtered.log'
@joshuarli
joshuarli / 4.gif
Last active May 2, 2019 18:40
ri
4.gif
@Dimtree
Dimtree / build-caddy-no-telemetry.sh
Created April 3, 2019 20:57
Build a Caddy webserver release with no telemetry enabled.
#!/bin/bash -e
mkdir -p out
export GOPATH="$(mktemp -d)"
go get -u -v github.com/mholt/caddy/caddy
go get -u -v github.com/caddyserver/builds
pushd "$GOPATH"/src/github.com/mholt/caddy/caddy
sed -i 's/var EnableTelemetry = true/var EnableTelemetry = false/' caddymain/run.go
go run build.go
@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)'
@holly-hacker
holly-hacker / khdownload.cs
Created December 19, 2018 11:49
KHInsider downloader
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace KHDownload
@CMCDragonkai
CMCDragonkai / ssh_vpn.md
Last active September 15, 2024 17:57
SSH VPN #cli

SSH VPN

Here's an example of setting up a basic point to point VPN using SSH tunnels.

First you need a server in the cloud that isn't behind a NAT.

Ensure that the host and server has port 22 open and is running sshd.

If you're using AWS, make sure to check your security groups.

@hazel0177
hazel0177 / installArchBios.md
Last active March 12, 2025 04:28
Install Arch Linux on Legacy Bios Systems.

Part 1: Initial Steps

Before you can install Arch Linux, you need to get the ISO from the Arch Linux website. Once you have the ISO from your mirror of choice you should install Rufus (if you're on windows) and use that to copy the ISO to your USB drive. Then boot into the USB drive that you have just put the ISO's files onto (steps vary). Once you've booted in do these commands to ensure the rest will go smoothly.

loadkeys (your locale, google that.)
ping -c 3 google.com
#!/bin/bash
# Adjust homserver, room, and accesstoken to your particular setup
# Script is expecting data to be piped in on STDIN
# Example:
# echo "some text" | sendmatrix
msgtype=m.text
homeserver=<homeserver>
room=<room id>