Skip to content

Instantly share code, notes, and snippets.

View Stankye's full-sized avatar
:octocat:
Accepting The Risk

R Stankye

:octocat:
Accepting The Risk
  • Personal Account
  • US
View GitHub Profile
@Stankye
Stankye / script.ini
Created May 5, 2018 08:00
ProcDump Specifics Packers/Protectors Definitions :: FEUERRADER
;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
; ProcDump Specifics Packers/Protectors Definitions.
;
; (C) G-RoM iN 1998, 1999, 2000
; (C) FEUERRADER modified, 2003
;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
; Implemented :
;
; ADD : ADD a value to temporary address
; BP : Set a Breakpoint at temporary address.
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'
@Stankye
Stankye / Rclone lsjson Google Drive Elastic mapping
Created January 13, 2020 19:40
Mappings for Rclone lsjson output. ES only takes ndjson so just remove commads / [] and use the _bulk import api.
{
"mappings" : {
"_meta" : {
"created_by" : "A Ghost"
},
"properties" : {
"Hashes" : {
"properties" : {
"MD5" : {
"type" : "text",
@Stankye
Stankye / thumbnailz.sh
Last active February 7, 2020 00:11
Creds to seednode
# Creds to seednode
# listen for requests to https://my.domain.here/
server {
# include shared config
include /etc/nginx/conf.d/shared.conf;
# enable LetsEncrypt SSL certs
ssl_certificate /etc/letsencrypt/live/my.domain.here/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my.domain.here/privkey.pem;
@Stankye
Stankye / dumb stuff
Created February 25, 2020 06:31
dumbStuff.sh
# Shows most used commands from $HISTFILE (with sudo)
cat $HISTFILE | awk '{print $1}' | sort | uniq -c | sort -nr
# Shows most used commands from $HISTFILE (without sudo)
cat $HISTFILE | sed 's/^sudo//' | awk '{print $1}' | sort | uniq -c | sort -nr
@Stankye
Stankye / vyos wireguard setup vpn provider
Created January 16, 2021 07:27
vyos wireguard setup vpn provider
Since this post took me a few searchs to many, hopfully the repost of what i found will end up on search results.
I used this to set up mullvad wireguard vpn connection from vyos.
This would work for setting up other vpn providers like torguard.
This really boring text is mainly for seo so some poor sap does not repeat my hour and a half of suffering.
The config stuff below is working on 1.4 rolling as of date posted.
there should be more documentation on the setup of the keys somewhere.
gen some default keys so you can copy the file perms and stuff'
find . -type f -regex '.*\.\(mkv\|avi\|mp4\|ogb\|webm\|flv\|mpv\)' -exec bash -c 'ffprobe -v quiet -print_format json -show_format -show_streams "{}" | jq -c "." | psql --command "COPY tmp (data) FROM STDIN;" postgresql://postgres:hunter2@localhost:5432/postgres ' \;
WITH streams AS (
SELECT jsonb_array_elements((data->'streams')) AS stream,
data -> 'format' AS format
FROM tmp
)
SELECT format ->> 'filename' AS FILE_NAME,
stream ->> 'codec_name' AS CODEC_NAME,
stream -> 'height' AS HEIGHT
@Stankye
Stankye / app.js
Last active December 16, 2021 02:28
mc ws watch
// Modified https://github.com/sidious38/wsserver-bedrock
// MIT License
// Usage:
// CheckNetIsolation LoopbackExempt -a -n="Microsoft.MinecraftUWP_8wekyb3d8bbwe"
// npm install ws uuid chokidar
// node app.js "path/to/functions"
// /connect localhost:3000
const chokidar = require("chokidar");
@Stankye
Stankye / githoard.py
Last active March 31, 2025 05:54
Makes a list of a Github users stars or public repositories as clonable git url's
#!/usr/bin/env python3
# Usage:
# python githoard.py -u <githubUser> -m <method> -t <githubToken> -o <output>
#
# Example:
# python githoard.py -u stankye -m stars -t <githubToken> -o ./stars.txt
#
import argparse
import os
from github import Github # pip install PyGithub
@Stankye
Stankye / anime_wikidata.ipynb
Created January 23, 2022 01:38
Some musings about anime and wikidata
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.