Skip to content

Instantly share code, notes, and snippets.

@bepvte
bepvte / mover.py
Created April 8, 2024 13:43
organize a folder of twitter likes by date posted?
#!/usr/bin/env python3
import re
from pathlib import Path
import shutil
from datetime import datetime
from os import walk, scandir
from pprint import pprint
import sqlite3
@bepvte
bepvte / cygx.sh
Created September 19, 2022 16:39
#!/usr/bin/env bash
set -euo pipefail
# cygstart XWin -nowgl -noprimary -multiwindow -listen tcp -dpi 96 :0
if false; then
address=$(ip -4 -br address show dev eth0 | awk '{sub("/[[:digit:]]+", "", $3);print $3}')
bash.exe --login -s <<- EOF
set -euox pipefail
cygstart -v --directory="\$USERPROFILE" x410.exe /public
sleep 0.2
@bepvte
bepvte / ExplorerToTwitter.ahk
Last active February 24, 2024 22:55
my autohotkey stuff that fixes my mac layout keyboard
#Requires AutoHotkey v2.0
#Warn
ToTwitterURL() {
MouseGetPos ,, &activehwnd
if WinExist("ahk_class CabinetWClass ahk_id " activehwnd) {
shell := ComObject("shell.application")
windows := shell.Windows()
for val in windows {
if activehwnd == val.HWND {
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iHgEIBYKACAWIQQWTiUZ2BGLhlW2bEozVWMD0eLTDgUCYvaGxgIdAwAKCRAzVWMD
0eLTDvwiAP9pzV4xAeIHvVeRZuGHJzv7OJnTP306Yy0sTJfX1kVwDgEA0ewSjaI1
1hDwE5dSwE0PIAT3TVLAeWCQmcGuI3x1yw4=
=RtlA
-----END PGP PUBLIC KEY BLOCK-----
// ==UserScript==
// @name Hydralize
// @namespace https://github.com/bepvte
// @match *://*.fandom.com/*
// @version 1.3
// @author bep
// @noframes
// @grant GM_addStyle
// @run-at document-end
// @license CC BY-NC-SA 3.0
@bepvte
bepvte / list.txt
Created November 9, 2021 06:29
termux apt
apt
bash
busybox
bzip2
ca-certificates
command-not-found
coreutils
curl
dash
diffutils
@bepvte
bepvte / Dockerfile
Created March 30, 2020 20:37
some dockerfiles for firefox docker
FROM buildpack-deps:18.04
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libegl1-mesa \
mesa-va-drivers \
mesa-vdpau-drivers \
mesa-vulkan-drivers \
firefox
@bepvte
bepvte / youtube-dl.prf.xml
Last active November 1, 2021 22:27
youtube dl tasker and termux script
<TaskerData sr="" dvi="1" tv="5.11.14">
<Profile sr="prof4" ve="2">
<cdate>1576557674021</cdate>
<edate>1616439546629</edate>
<flags>8</flags>
<id>4</id>
<mid0>5</mid0>
<nme>youtube-dl</nme>
<Event sr="con0" ve="2">
<code>580953799</code>
READ ME: WINDOWS 95
TABLE OF CONTENTS
1. HOW DO I ACCESS THE �N SYNC MULTIMEDIA AND WEB SITES FROM THIS
ENHANCED CD?
2. WHAT IF I ALREADY HAVE WEB ACCESS?
3. HOW DO I PLAY THIS CD'S MUSIC ON MY COMPUTER?
1. HOW DO I ACCESS THE �N SYNC MULTIMEDIA AND WEB SITES FROM THIS
@bepvte
bepvte / SLASHKILLER
Created January 26, 2018 17:51
the secret of how to remove the .html and trailing slash on nginx without redirect loops
#please ignore my indenting
location / {
try_files $uri $uri/ @htmlext;
}
location ~ \.html$ {
try_files $uri =404;
}
location @htmlext {
rewrite ^(.*)$ $1.html last;
}