a. Download replace-text.sh
b. Clone the gist repo in the same directory as replace-text.sh
-
using SSH url:
git clone git@gist.github.com:<reponame (hash)>
-
using HTTPS url:
| // ==UserScript== | |
| // @name för helvete biltema ge mig exakt lagerstatus | |
| // @namespace https://github.com/iwconfig | |
| // @version 0.3 | |
| // @description 1337 st på lagret istället för (13+) | |
| // @author iwconfig | |
| // @updateURL https://gist.github.com/iwconfig/da9d124977802230732cac0679a3ecfa/raw/vafan-biltema-exakt-lagerstatus.user.js | |
| // @match https://www.biltema.se/* | |
| // @icon https://www.google.com/s2/favicons?domain=biltema.se | |
| // @grant none |
| #!/usr/bin/env bash | |
| rdom () { local IFS=\> ; read -d \< E C ;} | |
| while rdom; do # alternatively: while IFS=\> read -d \< E C; do | |
| case $E in | |
| tvshow|episodedetails) | |
| parent=${E} ;; | |
| title|showtitle|season|episode|plot|aired|thumb) | |
| echo ${parent}.${E}: ${C} ;; |
| #!/usr/bin/env bash | |
| ryml () { local IFS=': ' ; read E C ;} | |
| while ryml; do # alternatively: while IFS=': ' read E C; do | |
| case $E in | |
| parent) | |
| parent=${E} ;; | |
| child) | |
| echo ${parent}.${E}: ${C} ;; |
| // ==UserScript== | |
| // @name Blocket bostad Google Maps | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description try to take over the world! | |
| // @author You | |
| // @downloadURL https://gist.github.com/iwconfig/69c74cf7fa57ef9034c0b0dee7fa20e5/raw/blocket-bostad-google-maps.user.js | |
| // @updateURL https://gist.github.com/iwconfig/69c74cf7fa57ef9034c0b0dee7fa20e5/raw/blocket-bostad-google-maps.user.js | |
| // @supportURL https://gist.github.com/iwconfig/69c74cf7fa57ef9034c0b0dee7fa20e5 | |
| // @match https://bostad.blocket.se/* |
| # Normalizes filenames and folders !! | |
| # because fuck you HFS+ | |
| # I hate you so | |
| # so much | |
| # Very WIP and probably abandoned because | |
| # I dont feel like fixing the bugs and i'll just | |
| # consider all this as wasted time and redo my | |
| # rsync command with `--iconv=utf-8-mac,utf-8`, |
| #!/usr/bin/env bash | |
| # A more manageable yt-dlp/youtube-dl format filtering for svtplay.se. It outputs a | |
| # complete format filter string. Defaults to the best quality, dash and hevc, and | |
| # avoids all audio accessibilities. It handles both 2-channel and 6-channel audio. | |
| # Use --audio-multistream to merge both tracks. | |
| # It takes zero up to three arguments, each of which is one of "best" or "worst". | |
| # The first is for video, the second for audio and the third argument is for the | |
| # third "generic" fallback if both the first and the second filters fail. By default |
| { | |
| "homepage": "https://github.com/divyam234/rclone", | |
| "version": "1.67.2", | |
| "license": "MIT license", | |
| "url": "https://github.com/divyam234/rclone/releases/download/v1.67.2/rclone-v1.67.2-windows-amd64.zip", | |
| "hash": "e32f95a5af686f2e79515ef3eddb52b7a8a21a030388f72223261e869fa5d970", | |
| "extract_dir": "rclone-v1.67.2-windows-amd64", | |
| "bin": "rclone.exe", | |
| "shortcuts": [ | |
| [ |
| #!/usr/bin/env python3 | |
| import configparser | |
| import json | |
| from pprint import pp | |
| def parse_proxmox_config(file_path): | |
| parser = configparser.ConfigParser(allow_no_value=True, delimiters=':') | |
| with open(file_path, 'r') as file: | |
| content = file.read() |
| #!/usr/bin/env python3 | |
| import shlex | |
| def wrap(string, width, prefix='', initial_prefix='', subsequent_prefix='', suffix='', initial_suffix='', subsequent_suffix='', word_wrap=False, cmd_wrap=False, join=True, join_with='\n'): | |
| lines = [] | |
| if word_wrap or cmd_wrap: | |
| for line in string.strip().splitlines(): | |
| line_list = [] | |
| line_length = 0 | |
| for word in shlex.split(line, posix=False) if cmd_wrap else line.split(): |