Skip to content

Instantly share code, notes, and snippets.

View runxel's full-sized avatar
:shipit:
go where nobody else went

Lucas Becker runxel

:shipit:
go where nobody else went
View GitHub Profile
@runxel
runxel / pwbreaker.vba
Created July 6, 2024 18:58
Breaks Excel worksheet password protection.
Sub PasswordBreaker()
'Breaks worksheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
@runxel
runxel / FritzBoxChecksum.pl
Created March 9, 2021 21:42
FreeFritzBox's DNS
#!/usr/bin/perl
# Read Fritz!Box configuration dump file and compute its checksum using CRC32.
# The problem is only knowing what to checksum exactly, and in this case its not pretty.
# Inspired from the very compact Visual Basic script by Michael Engelke available at
# http://www.mengelke.de/Projekte/FritzBoxVBScript
# The Fritz!Box accepts a modified file where the checksum has been changed
# manually to the output of this program in the last line. I have no idea what
# happens if there is a syntax error anywhere inside the config file, so beware.
@runxel
runxel / duplicates.py
Created June 13, 2020 23:27 — forked from tfeldmann/duplicates.py
Fast duplicate file finder written in python
#!/usr/bin/env python
"""
Fast duplicate file finder.
Usage: duplicates.py <folder> [<folder>...]
Based on https://stackoverflow.com/a/36113168/300783
Modified for Python3 with some small code improvements.
"""
import os
import sys
@runxel
runxel / CleanBingMap.js
Created May 15, 2020 13:12
Clean your Bing Map for exploring
javascript: (function () { var ids = ["MicrosoftNav", "id_h", "b_footer"]; var cls = ["taskBar", "bm_LocateMeControl", "bm_feedbackBetaButton"]; var hidden = (window.getComputedStyle(document.getElementById(ids[0]))).getPropertyValue("display"); if (hidden !== "none") { var disp = "none"; } else { var disp = ""; }; for (var i = 0; i < ids.length; i++) { document.getElementById(ids[i]).style.display = disp; document.getElementsByClassName(cls[i])[0].style.display = disp; }; })();
@runxel
runxel / CleanMap.js
Last active October 4, 2023 09:13
Clean your Google Maps and Google Streetview for better exploring. Use it as a bookmarklet.
javascript: (function () { var ids = ["titlecard", "omnibox-container", "vasquette", "assistive-chips", "watermark", "image-header"]; var hidden = (window.getComputedStyle(document.getElementById(ids[0]))).getPropertyValue("display"); if (hidden !== "none") { var disp = "none"; document.getElementsByClassName('app-viewcard-strip')[0].style.visibility = 'hidden'; } else { var disp = ""; document.getElementsByClassName('app-viewcard-strip')[0].style.visibility = ''; }; for (var i = 0; i < ids.length; i++) { document.getElementById(ids[i]).style.display = disp; };})();
@runxel
runxel / settings.json
Created May 3, 2020 18:26
Windows Terminal settings
// This file was initially generated by Windows Terminal 0.11.1191.0
// It is located in `$env:LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState`
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@runxel
runxel / Windows Explorer Shortcuts.md
Last active March 11, 2020 19:13
Some things you can type in the adressbar of the Windows Explorer

General

  • Type in cmd to open a command line at this directory
  • Same goes for powershell and
  • wsl – the Windows Subsystem for Linux (if installed)

📁 System Folders

Parameter Target folder
@runxel
runxel / .gitignore
Last active October 12, 2024 18:00
A .gitignore template
# custom gitignore
# built as an allround, project-agnostic template to copy for me
*.cache
# py
.env
.venv
*.py
*.pyc

LP_XMLConverter dependencies

alphabetically sorted, applicable to Archicad 23


AlgMath.dll
AttributeManager.dll
BasicMath.dll
BIMData.dll
Brep.dll

Intro

To view the progress of a Powerpoint presentation, a progress bar can be displayed at the top of the slide show.

How to proceed

Once the slideshow is complete, go to View > Macro and create a new macro.

In the VBS editor copy this text in the blank page:

'' Add progress bar only to all non-hidden pages
Sub AddProgressBar()