Skip to content

Instantly share code, notes, and snippets.

@kamysheblid
kamysheblid / convert-x265.sh
Last active September 4, 2023 19:55
convert videos x265 to x264 and change filename
#!/usr/bin/env bash
### Initialize stuff
CUR_DIR=$PWD
OPTIONS="r:f:"
VIDEO_SUFFIXES='mkv|avi|mp4|mov'
HELP_MSG="Usage %s: [-D] [-r regex-remove] [-a regex-array-remove] [-d dir] [-f filename] args
Should work on all video files with suffixes ${VIDEO_SUFFIXES}. Give
@kamysheblid
kamysheblid / guide.org
Created June 12, 2023 20:39
Fix for clojars and Maven block on Iranians Syrians, Koreans, Cubans, Russians, and soon billions more

The problem

clojars and maven repositories block IPs of countries that the west hates (ex. Iran) and this problem is only going to get worse as americans increasingly become more fascist. It’s obvious the Chinese are getting a block soon.

The fix

This is how to fix the issue. Use a Chinese, Iranian, or other mirror. You can find a local mirror (if it exists) by going to some search engine and searching “clojar mirror iran” or “maven mirror

@kamysheblid
kamysheblid / pass decryptor.py
Created June 2, 2021 06:36
decrypt gnu pass files
'''Decrypt gnu pass files.
Simply give it the location of the directory storing all the .gpg files and it will dump the contents into a file.
'''
from sys import exit
from argparse import ArgumentParser
from pathlib import Path
from gnupg import GPG
import logging
parser = ArgumentParser()
@kamysheblid
kamysheblid / feedbro-opml-to-elfeed-org.py
Created May 30, 2021 03:13
Python3 script to convert feedbro.opml to elfeed.org
import xml.etree.ElementTree as ET
from pathlib import Path
from sys import exit
import logging, argparse
#Parse args
parser = argparse.ArgumentParser(description='Python script to convert from feedbro RSS opml format to elfeed org format')
parser.add_argument('-v',action='count',default=0,help='Verbose output. Do -vv to get debug output')
parser.add_argument('file',help='Filename for input')
parser.add_argument('--force','-f',action='store_true',help='Overwrite elfeed.opml without asking')
@kamysheblid
kamysheblid / ISS-Crew.txt
Last active September 13, 2020 18:58
The Names and Countries of every ISS crew member until September 13 2020
Belgium Frank De Winne
Canada Chris Hadfield
Canada David Saint-Jacques
Canada Robert B. Thirsk
France Léopold Eyharts
France Thomas Pesquet
Germany Alexander Gerst
Germany Thomas Reiter
Italy Luca Parmitano
Italy Paolo Nespoli
@kamysheblid
kamysheblid / readme.org
Last active September 6, 2020 20:35
Interesting projects I'd like to work on

Lisp built entirely in Assembly for ARM or AMD64

There are only 5-20 functions that need to be created. Though the hard part would be memory management. Would be interesting to have lisp handle its own memory management itself using a handful of assembly functions.

Also make a program that can boot from GRUB. It wouldnt be an OS but it could be used to build one.

@kamysheblid
kamysheblid / stopmediumpaywall.txt
Created August 25, 2020 16:48
Bypass the annoying paywall on Medium.com and DataScience.com
// ==UserScript==
// @name Stop the Medium The Pay Wall
// @namespace StopThePayWall
// @version 1
// @include *medium*
// @include *datascience*
// ==/UserScript==
async function abc () {
var resp = (await fetch(location, { "credentials": "omit", "headers": { "Accept": "text/html,text/xhtml,text/xml,*/*", "Connection": "keep-alive", }, "method": "GET", "mode": "cors" }));
@kamysheblid
kamysheblid / Bypass Annoying Quora Login Greasemonkey Script
Last active August 25, 2020 16:48
You can use this script to bypass the annoying forced quora login
// ==UserScript==
// @name Bypass Quora Login
// @version 1
// @grant none
// @include http*://www.quora.com/*
// ==/UserScript==
// To bypass quora login, just put ?share=1 at the end of the url
// This script checks if share=1 is at part of url, if not it inserts it and reloads