Skip to content

Instantly share code, notes, and snippets.

View RingoRohe's full-sized avatar
🏠
Working from home

Ringo Rohe RingoRohe

🏠
Working from home
View GitHub Profile
@RingoRohe
RingoRohe / reset-project-permissions.md
Created March 4, 2023 18:53
reset project permissions

Reset File and Directory Permissions

find ./ -type d -exec chmod 744 {} + && find ./ -type f -exec chmod 644 {} +

@RingoRohe
RingoRohe / str_replace.scss
Created September 16, 2022 19:41
SCSS String Replace Function
@function str-replace($string, $search, $replace: "") {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace +
str-replace(
str-slice($string, $index + str-length($search)),
$search,
$replace
);
@RingoRohe
RingoRohe / Komoot bulk remove Tours
Last active June 8, 2025 13:24
Want to remove all your Tours from Komoot.de? Go to the Page with your Tourlist, open Developer Console, paste this Code and wait.
let func = () => {
let tour = document.querySelector('li[data-tour-id] [data-test-id="t_actions_delete"]');
if (tour) {
tour.click();
window.setTimeout(() => {
document.querySelector('button[data-test-id=t_actions_delete_confirm]').click();
window.setTimeout(() => {
func();
}, 300);
}, 300);
@RingoRohe
RingoRohe / launch.json
Created January 6, 2021 10:25
VSCode Debug Settings
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Angular Debug",
"type": "firefox",
"request": "launch",

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.