Skip to content

Instantly share code, notes, and snippets.

View t5r7's full-sized avatar
✌️

Thomas R. t5r7

✌️
  • Portsmouth, Birmingham
  • 17:12 (UTC +01:00)
View GitHub Profile
@t5r7
t5r7 / f.js
Created January 18, 2018 17:40
[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]](([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(![]+[])[!+[]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[!+[]+!![]+!![]
@t5r7
t5r7 / poll-results.css
Created February 19, 2018 02:07
Show Twitter poll results before voting
.PollXChoice-progress {
max-width: none !important;
margin-left: 0 !important;
margin-right: 0.3em !important;
}
@t5r7
t5r7 / desktop.md
Last active October 21, 2020 19:53
Tom's Linux distro recommendations

Desktop Use

  • Ubuntu Budgie ~ My daily driver, works well, looks nice
  • XUbuntu ~ My favourite "lightweight" distro; nice and customizable while still managing to run fine on a Pentium 4
  • AntiX ~ For even older PCs (like my Pentium 3 laptop), AntiX Debian is lovely.
@t5r7
t5r7 / tumblr-gdpr.js
Created May 26, 2018 15:47
Tumblr uncheck all advertisers at once (GDPR)
for(e of document.querySelectorAll('input[type="checkbox"]')) { e.checked = false }
@t5r7
t5r7 / passnot.py
Last active March 15, 2019 00:17
Da532/Passie clone
import codecs
print('### Welcome to PassNot ###\n')
key=raw_input('Enter a key to use:\n')
service=raw_input('\nEnter the service you wish to create a password for:\n')
print('\nYour password for ' + service + ' is:')
print(key + codecs.encode(service, 'rot_13') + '\n\n')
@t5r7
t5r7 / irista-all.js
Last active May 28, 2019 00:53
Canon Irista select all photos
let sa = window.setInterval(function() {
window.scrollBy(0, 350);
for (e of document.querySelectorAll('.header-selector:not(.header-selector-selected)')) {
e.click();
}
}, 300)
@t5r7
t5r7 / key-morse.py
Created June 25, 2019 21:40
Keyboard Lock Light/Beeper Morse Code
import os, time
import morse_talk as mtalk
dotLen = 0.08
print('Keyboard Lock LED Morse Code')
code = raw_input('Morse Code: ')
codeSplit = list(code)
@t5r7
t5r7 / todoist.js
Last active October 23, 2019 04:19
Todoist Bulk-Add
function addTask(t, hseconds) {
window.setTimeout(function() {
document.querySelectorAll('ul.items .item_editor_input .public-DraftEditor-content span')[0].innerText = t;
document.querySelectorAll('ul.items .item_editor_submit')[0].click();
}, hseconds * 500);
}
let i = 0;
for (task of tasks) {
addTask(task, i);
@t5r7
t5r7 / percent_bar.py
Last active September 6, 2020 17:04
pro percent ting bro
def roundtotens(n):
n = int(n)
# ty https://stackoverflow.com/a/26454686 xoxo
return int((n + 9) // 10 * 10)
def percent_bar(percent):
hashCount = 0
hashes = ""
dashes = ""