This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| # Search synchronized files conflicted by Nextcloud and | |
| # replace the original file if it is zero sized. | |
| START_DIR="$1" | |
| GLOB_PATTERN=' (conflicted copy ????-??-?? *)' | |
| REGEX_PATTERN=' \(conflicted copy [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]+\)' | |
| OLDIFS=$IFS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Rename argument files of taken photos (JPG) and videos (AVI) to a Nextcloud compatible timestamp format. | |
| # | |
| # Author: Markus Kwaśnicki | |
| # | |
| # Prerequisites: | |
| # * { Install-Module -Name ExifDateTime -Scope CurrentUser } | |
| # * { Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser } | |
| # | |
| # Setup: Create shortcut to | |
| # `"C:\Program Files\PowerShell\7\pwsh.exe" -WindowStyle Hidden -File "%USERPROFILE%\Documents\PowerShell\Scripts\Rename-FotofallenFotos.ps1"´ inside |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Skip YouTube Ads | |
| // @description This is your new file, start writing code | |
| // @match *://*.youtube.com/* | |
| // ==/UserScript== | |
| function skipAd() { | |
| const adPlaying = document.body.querySelector(".ad-showing"); | |
| if (!adPlaying) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source ~/.profile | |
| # Customized terminal prompt to reflect current git branches. Based on Debian's default PS1 variable, which was | |
| # e.g. '\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # at the time beeing of Debian 12 Bookworm. The original prompt was broken in two parts (left and right) | |
| # and it can get flavoured with the middle part, to your very linking. | |
| # | |
| # Left part: ${PS1:0:-3} | |
| # Right part: ${PS1:${#ps1_left_part}:${#PS1}} | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Enable Disney Plus on Linux | |
| // @description This is your new file, start writing code | |
| // @match *://*.disneyplus.com/* | |
| // ==/UserScript== | |
| Object.defineProperty(navigator, "userAgent", { value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36", configurable: true, enumerable: true, writable: true }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Prune local orphan refs | |
| git prune -v | |
| # Deletes all stale (local) remote-tracking branches under origin. | |
| # These stale branches have already been removed from the remote repository | |
| # referenced by <name>, but are still locally available. | |
| git remote prune origin |
OlderNewer