Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
@shmup
shmup / torrents.md
Last active July 15, 2024 20:36
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

@shmup
shmup / twitch_hexchat.md
Last active June 14, 2024 20:02
How to connect to Twitch with HexChat (SSL)

HEXCHAT / TWITCH

Here's a method to chat in a twitch #channel with HexChat

  1. Get HexChat here (or your package manager): https://hexchat.github.io/

  2. Click Add and name it Twitch or whatever.

  3. Now click Edit and change the server/port up top to: irc.chat.twitch.tv/6697

@shmup
shmup / gist:6ed5af7c3f09f2e547974a5486b3fd24
Created January 16, 2018 23:56
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~
@shmup
shmup / twitch_irssi.md
Last active March 19, 2024 11:50 — forked from hunterbridges/twitch_irc.md
How to connect to Twitch with IRSSI (SSL)

IRSSI / TWITCH

Here's a method to chat in a twitch #channel with IRSSI

Get your oauth token here: https://twitchapps.com/tmi/

Server block

server = {
 address = "irc.chat.twitch.tv";
@shmup
shmup / 8bitdo-pro2-quick-reminder.md
Last active March 15, 2024 03:40
8bitdo pro 2 quick reminder

WIP

image

image

@shmup
shmup / proton
Created December 7, 2023 19:41
easily run an .exe with proton on linux
#!/usr/bin/env bash
# This script launches a Windows executable using Proton within a Linux environment.
# It requires exactly one argument: the path to the executable to run.
# It sets up a separate Proton prefix for each executable to avoid conflicts.
# Usage: proton <path-to-executable>
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <executable-path>"
exit 1
@shmup
shmup / paste.vim
Created February 18, 2024 21:18 — forked from romainl/paste.vim
Sharing is caring
" Mac OS X (requires curl)
" ------------------------
command! -range=% SP <line1>,<line2>w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\n' | pbcopy
command! -range=% CL <line1>,<line2>w !curl -F 'clbin=<-' https://clbin.com | tr -d '\n' | pbcopy
command! -range=% VP <line1>,<line2>w !curl -F 'text=<-' http://vpaste.net | tr -d '\n' | pbcopy
command! -range=% PB <line1>,<line2>w !curl -F 'c=@-' https://ptpb.pw/?u=1 | tr -d '\n' | pbcopy
command! -range=% IX <line1>,<line2>w !curl -F 'f:1=<-' http://ix.io | tr -d '\n' | pbcopy
command! -range=% EN <line1>,<line2>w !curl -F 'file=@-;' https://envs.sh | tr -d '\n' | pbcopy
command! -range=% XO <line1>,<line2>w !curl -F 'file=@-' https://0x0.st | tr -d '\n' | pbcopy
command! -range=% TB <line1>,<line2>w !nc termbin.com 9999 | tr -d '\n' | pbcopy
@shmup
shmup / perms.txt
Last active February 6, 2024 00:38
linux perm/group/selinux notes
█▓▒░ PERMISSION THINGS ░▒▓█
chgrp pissgroup file | change file's group to pissgroup
chmod 755 directory | set r/w/execute for owner, r/execute for group and others on dir
chown username:groupname file | change owner and group of file
getent group wheel | list all users of a group
gpasswd -a username piss | add user to the group piss (alternative)
gpasswd -d username piss | remove user from the group piss
groupadd piss | create a new group named piss
groupdel piss | delete the group named piss
@shmup
shmup / moolist
Last active January 27, 2024 17:18
quickly run any of the breathing moos on moolist.com with tt++
#!/usr/bin/env bash
# quickly run any of the breathing moos on moolist.com with tt++
# requires: curl, fzy (or fzf but update script), tt++
# https://asciinema.org/a/633014
set -euo pipefail
html_content=$(curl -s 'https://moolist.com/all.php')
telnet_uris=$(
@shmup
shmup / Caddyfile
Created January 7, 2024 23:36
streaming with srs and ffmpeg
:8888 {
root * /crypt
file_server browse
@tsFiles {
path *.ts
}
header @tsFiles Content-Type video/MP2T
log {
output stdout
}