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 / 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 April 13, 2023 20:55
A .gitignore template
# custom gitignore
# built as an allround, project-agnostic template to copy for me
*.cache
*.pyc
# shortcuts
*.lnk
*.url

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()
@runxel
runxel / firefox_about-config.md
Last active August 22, 2020 10:10
Things you should(could) change in the Firefox "about:config" dialog

see also: https://github.com/aris-t2/customcssforfx

Usability

  • security.dialog_enable_delay
    Set to a lower number or zero.
    (it was orginally introduced so malware can't download software "unseen". But it may also annoy the user)

Design