Skip to content

Instantly share code, notes, and snippets.

*penguin noises*

Matěj Volf mvolfik

*penguin noises*
View GitHub Profile
mvolfik / updates.vbs
Created Dec 7, 2018
Make computer look updating
View updates.vbs
Dim objShell, strPath1, strAttr1
Set objShell = CreateObject ("WScript.Shell")
strPath1 = """C:\Program Files (x86)\Mozilla Firefox\firefox.exe"""
strAttr1 = "-P default"
objShell.Run strPath1 & strAttr1
WScript.sleep 1500
objshell.sendkeys "{F11}"
View kahoot-hotkeys.user.js
// ==UserScript==
// @name Kahoot hotkeys
// @namespace
// @version 0.2
// @description take over the world!
// @author mvolfik
// @match*
// ==/UserScript==
(function() {
View canvas_upgrade.user.js
// ==UserScript==
// @name Canvas tweaks
// @namespace
// @version 0.4
// @description Try to take over the world!
// @author matjey
// @match
// @downloadURL
// @grant GM_addStyle
// @grant unsafeWindow
mvolfik /
Last active Jan 24, 2021
Reorder pages of a PDF to allow printing as a brochure
import sys, subprocess, tempfile, os.path, warnings
A4 = (595, 842)
source = sys.argv[1]
target = sys.argv[2]
pages = None
page_size = None
mvolfik /
Created Mar 17, 2021
Keybase identity proof

Keybase proof

I hereby claim:

  • I am mvolfik on github.
  • I am mvolfik ( on keybase.
  • I have a public key ASDDaXK1Eg2w4eURSQ3GtP_eu8u4TFM637ckRfvRJg5GZgo

To claim this, I am signing this object:

mvolfik / learningapps.user.js
Created Mar 18, 2021
Userscript to solve exercises
View learningapps.user.js
// ==UserScript==
// @name solver
// @namespace
// @version 0.1
// @description Add button to autofill
// @author Matěj Volf
// @match*/watch?id=*
// @downloadUrl
// @updateUrl
// @grant none
View day14_visualisation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bugreport.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mvolfik /
Created Dec 12, 2019
View timestamps when people solved specific task of Advent of Code
import json
from datetime import datetime as dt
import requests
import re
y = input("YEAR: ")
cookie = {'session': "YOUR SESSION COOKIE HERE (it's valid for 30 days)"}
homepage = requests.get(''+y+'/leaderboard/private', cookies=cookie)
for id in re.compile(r"(?<=\/"+y+r"\/leaderboard\/private\/view\/)(\d+)").findall(homepage.content.decode()):
data = json.loads(requests.get(''+y+'/leaderboard/private/view/'+id+'.json', cookies=cookie).content)
mvolfik / troll.vbs
Last active Feb 9, 2022
Windows trolling script
View troll.vbs
Set WshShell = WScript.CreateObject("WScript.Shell")
strName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" )
'If you find a Windows PC with user logged in, place this file in folder
' C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\ (may vary with PC language)
' and run for first time to disable security check and Firefox default browser check
WScript.sleep 5000
msgbox "Critical: Your system is severely affected by multiple threats.. All processes are being aborted..."
msgbox "Sytem failure in %WINDIR%"