Skip to content

Instantly share code, notes, and snippets.

View SpotlightForBugs's full-sized avatar
:atom:
I am coding. At least I am pretending to be...

Johannes Häusler SpotlightForBugs

:atom:
I am coding. At least I am pretending to be...
View GitHub Profile
@SpotlightForBugs
SpotlightForBugs / autoupdateRepo.sh
Last active February 16, 2025 02:38
Shell script to update a git repository from GitHub.
#!/bash
#shell script to update a git repository from GitHub.
#(C)2022-SpotlightForBugs - https://github.com/SpotlightForBugs/SpotlightForBugs
#What is this script for?
#welcome to the script that updates a git repository from GitHub, automatically.
#This script is designed to be installed via crontab, so that it runs as a service.
versionNumber="1"
@SpotlightForBugs
SpotlightForBugs / update_reqs.py
Created October 5, 2022 19:18
Update the requirements.txt file of a python project
#this file reads the file csv_tools.py and updates the requirements.txt file with the packages used in the file using the pipreqs module
import os
os.system("python -m pipreqs.pipreqs "+(os.getcwd())+" --force")
@SpotlightForBugs
SpotlightForBugs / solver.js
Last active October 15, 2022 16:31
Automatically solve Questions on Schlaukopf.de
//put this in your browser`s Console after starting a Quiz on Schlaukopf.de
setInterval(function () {
runtime.asyncEvaluate(1)
}, 3000); //time to wait in miliseconds
//a manual approach to solve the quiz can be found here:
// https://gist.github.com/SpotlightForBugs/8cd6dd20ba1fd6f11e0d541aa8f20b7f
//manual way to solve the quiz
//
//1. start the quiz
//2. open the console (F12)
//paste this code into the console and press enter
@SpotlightForBugs
SpotlightForBugs / notification.js
Last active November 26, 2024 12:03
show a notification to a user |showNotification(message_text, button_text, button_url)| The buttonURL is optional
//REQURIES JQUERY!!!!!!
/**
* The showNotification function displays a banner at the top of the page.
*
*
* @param message_text Set the text of the banner
* @param button_text Set the text of the button
* @param button_url Redirect to a specific page after the information banner is closed
*
import os
import html2text
import pdoc
def main():
"""
"""
1. Create a sentence "i do not not like not to swim"
2 . create a list of negations
2. count all negations in the sentence
3. if the amount of negations is even, then remove all negations from the sentence, else remove all but the first
"""
negations = ["not", "no","n't"]
@SpotlightForBugs
SpotlightForBugs / BackUp.MD
Created March 10, 2023 07:21
The BackUp for my Profile.

Hi 👋, I'm Johannes Häusler

A developer from Germany

  • 🔭 I’m currently working on a monitoring system for the school’s project

  • 🌱 I’m currently learning Go

  • 👯 I’m looking to collaborate on with you

  • 👨‍💻 All of my projects are available at https://GitHub.com/SpotlightForBugs

alert('xss');
public class Main {
public static void main(String[] args) {
System.out.println(wasMacheIch(5, 5));
}
/**
* Die Methode wasMacheIch berechnet das Produkt zweier Zahlen
* @param x die erste Zahl