Skip to content

Instantly share code, notes, and snippets.

View vincentscode's full-sized avatar

Vincent Schmandt vincentscode

View GitHub Profile
@vincentscode
vincentscode / nextcloud-file-upload.sh
Created May 11, 2023 14:22
Fast file uploads for Nextcloud
sudo apt update && sudo apt install -y curl wget && wget https://raw.githubusercontent.com/tavinus/cloudsend.sh/master/cloudsend.sh && chmod +x cloudsend.sh
./cloudsend.sh <file> <nextcloud drop url>
@vincentscode
vincentscode / rwth-codescape-0-step-solution.java
Created October 20, 2022 16:15
Fun 0 Step Solution for the RWTH game Codescape
// additional imports
import java.util.function.*;
import java.lang.reflect.*;
import java.util.*;
// move replacement
Method[] allMethods = this.getClass().getSuperclass().getDeclaredMethods();
for (Method m : allMethods) {
if (m.getName().contains("move")) {
try {

Keybase proof

I hereby claim:

  • I am vincentscode on github.
  • I am vincentscode (https://keybase.io/vincentscode) on keybase.
  • I have a public key ASDkzs9BkyvC3kw1lDqkkXlI31933W3vBZ69DtR0jaKTIQo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1LJWnLJc6ZWT1pRqCWFGxdkeyx7oWuuJBp https://explorer.blockstack.org/address/1LJWnLJc6ZWT1pRqCWFGxdkeyx7oWuuJBp
log_file = open("log.txt", "w")
# noinspection PyShadowingBuiltins
def print(*args, log_level=0):
if log_level == 0:
log_prefix = "[INFO ] "
elif log_level == 1:
log_prefix = "[WARN ] "
elif log_level == 2:
def debug_shell():
print("[DEBUG SHELL]", "Waiting for input")
while True:
command = input(">>> ")
if command == "exit()":
break
try:
exec(command)
except Exception as e:
print("[DEBUG SHELL]", e)