Skip to content

Instantly share code, notes, and snippets.

View Hans5958's full-sized avatar
🏫
Uni and uni and uni and... (limited availability!)

Hans5958 Hans5958

🏫
Uni and uni and uni and... (limited availability!)
View GitHub Profile
if (document.querySelector("h1.css-901oao > span:nth-child(1)")) {
document.location.reload()
}
console.clear()
console.log("Script loaded!\n\nLoading...")
window.scrollBy(0, window.innerHeight)
var blockedNow = []
var totalUnblocked = 0
autoUnblock = setInterval(() => {
blockedNow = []
@Hans5958
Hans5958 / PreMiD FAQ (Unofficial).md
Last active July 24, 2020 12:46
PreMiD FAQ (Unofficial), the unofficial list of answers of questions that is often asked about PreMiD.

PreMiD FAQ (Unofficial)

Coming soon.

Initial code

var a=['BgvUz3rO','AM9PBG==','BwfW'];(function(b,e,p){var f=function(g){while(--g){b['push'](b['shift']());}};f(++e);}(a
,-0x37a+-0xda5+0xf*0x137));var b=function(c,d,e,f){c=c-(-0x37a+-0xda5+0x9*0x1e7);var e=a[c];if(b['vZYcuN']===undefined){
var f=function(h){var i='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var z=String;var j=String(h)
['replace'](/=+$/,'');var k='';for(var l=0x1*0x175+-0xd55*-0x1+-0xeca,m,n,o=0x1fa8*0x1+-0x756+-0x1852;n=j['charAt'](o++)
;~n&&(m=l%(0x13d8+0x27+-0x13fb)?m*(0x395+0x1a9a+-0x1def)+n:n,l++%(-0x7*0x1bb+-0x8c9+0x14ea+0))?k+=String['fromCharCode']
(0x9*0x15b+-0x260c+0x6b6*0x4&m>>(-(-0x1d8a+0x7c7+0x15c5)*l&-0x1e0b+0x150d*0x1+0x904*0x1)):0x1f*0x4+-0x2d5*-0xc+-0x2278){
n=i['indexOf'](n);}return k;};b['AxkfCR']=function(h){var j=f(h);var k=[];for(var l=0xd*-0x6+0x16*0x116+-0x1796+12*0,m=j
@Hans5958
Hans5958 / Clean Empty Sticky Notes on Note.ly.js
Last active November 4, 2020 10:46
Clean/remove all empty sticky notes created on Note.ly with this simple JS script
// var notes = [] // https://gist.github.com/Hans5958/4155e60254f19b5f04cbda0f20133aef
emptyNotes = []
window.notes.forEach(note => {
if (note.content === "") {
emptyNotes.push(note.dbId)
} else {
console.log(note.dbId, note.content)
}
})
@Hans5958
Hans5958 / We Are Number One Playlist.md
Last active February 11, 2021 16:00
Every video on the "We Are Number One" playlist as of 11/02/2021. https://www.youtube.com/playlist?list=PLyy0nazZT2T7tUkaGAriVcFo1hqy3ah4J
Video ID Playlist Item ID Title Link
g0Chxzaq-io UEx5eTBuYXpaVDJUN3RVa2FHQXJpVmNGbzFocXkzYWg0Si4xQTNBM0VERjQ0QTIzRUMz LazyTown - It's Mine Song - British Stingy https://youtu.be/g0Chxzaq-io
RsQAWy7x7kk UEx5eTBuYXpaVDJUN3RVa2FHQXJpVmNGbzFocXkzYWg0Si44MkM0OUM5QUYwRTBENUI3 The Mine Song romanian https://youtu.be/RsQAWy7x7kk
vf87H8BVf1M UEx5eTBuYXpaVDJUN3RVa2FHQXJpVmNGbzFocXkzYWg0Si5GMUE4OTVGNTc0NjE0Nzg5 Robbie vs Sportacus - The Duel https://youtu.be/vf87H8BVf1M
TOj_X4GvN24 UEx5eTBuYXpaVDJUN3RVa2FHQXJpVmNGbzFocXkzYWg0Si44NjIxNjc5OUQwQkJBODQ5 Chad does Robbie Make Up Tutorial grade copy https://youtu.be/TOj_X4GvN24
5apyFFvjxww UEx5eTBuYXpaVDJUN3RVa2FHQXJpVmNGbzFocXkzYWg0Si40QzdCNEUxMUUzQTJERDM5 Robbie Rotten Collection - Part 1 (with English AND Dutch Subs!) https://youtu.be/5apyFFvjxww
gT6qb6TR004 UEx5eTBuYXpaVDJUN3RVa2FHQXJpVmNGbzFocXkzYWg0Si5GRUNDMTIwRUE5RkZFRkVD Robbie Rotten Collection - Part 2 (with English AND Dutch

Archive description

This is a reupload of the viral video "Charlie bit my finger - again!" The video is downloaded using youtube-dl, with all of its possible metadata also uploaded.

Command used: youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --no-check-certificate -a "Queue List.txt" -o "Archive\%%(title)s\%%(title)s.%%(ext)s" --write-annotations --write-description --write-info-json --write-all-thumbnails --all-subs --write-auto-sub --write-sub --add-metadata --merge-output-format mkv --console-title

Video description

@Hans5958
Hans5958 / OSM Sumatera main streets.bat
Created May 27, 2021 10:43
Commands that I use to get Sumatera's main streets
osmconvert64.exe indonesia-140101.osm.pbf >indonesia-140101.osm
osmfilter.exe indonesia-140101.osm --out-key
osmfilter.exe indonesia-140101.osm --keep="highway= boundary=administrative" >indonesia-140101.filtered.osm
osmconvert64.exe indonesia-140101.filtered.osm -B=sumatra.poly >indonesia-140101.sumatra.filtered.osm
osmconvert64.exe indonesia-210505.osm.pbf -B=sumatra.poly --drop-author >indonesia-210505.sumatra.osm
osmfilter.exe indonesia-210505.sumatra.osm --keep="highway=motorway highway=trunk highway=primary highway=secondary boundary=administrative" >indonesia-210505.sumatra.filtered.osm
@Hans5958
Hans5958 / FNF ffmpeg.bat
Created May 27, 2021 10:47
A very simple command to merge the two channels of Friday Night Funkin's song
ffmpeg -i Inst.ogg -i Voices.ogg -filter_complex amix=inputs=2:duration=longest output.ogg
/* Make the logo bigger and the margin smaller */
.logo {
margin-inline-end: 0.75rem;
transform: scale(1.75);
}
/* No need hover effect on dropdown icons */
.addon-group > span > img:hover {