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/env bash | |
| set -euo pipefail | |
| INPUT="" | |
| OUTPUT="" | |
| DELIM="" | |
| ENCODING="" | |
| # --- Check dependencies --- |
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
| cat ~/.zsh_history | perl -CSD -pe 's/^: ([0-9]+):[0-9];(.*)$/- cmd: $2\n when: $1\n/' >> ~/.local/share/fish/fish_history |
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/sh | |
| # Check all supervisor status files | |
| supervisor_status_files=$(find /tmp -name "supervisor_status_*" 2>/dev/null) | |
| if [ -z "$supervisor_status_files" ]; then | |
| echo "No supervisor status files found" | |
| exit 1 | |
| fi |
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
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 | |
| indent_style = space | |
| insert_final_newline = false | |
| trim_trailing_whitespace = true | |
| max_line_length = 120 |
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 Wean off from Google Search | |
| // @namespace Violentmonkey Scripts | |
| // @match https://www.google.com/search | |
| // @grant none | |
| // @run-at document-start | |
| // @version 1.0 | |
| // @author - | |
| // @description 28/04/2023, 08.56.12 | |
| // ==/UserScript== |
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
| /** | |
| * This type allows you to replace a certain substring (S) within a Set (T) with a different string (D). | |
| * infer L means that L is inferred as a type that is the part of T before S. | |
| * infer R means that R is inferred as a type that is the part of T after S. | |
| * A is an accumulator variable that holds the replaced string(s) as the recursion progresses. | |
| * The recursion stops when T no longer contains S and the final value of A is returned as the resulting type. | |
| */ | |
| export type Replace<T extends string, S extends string, D extends string, | |
| A extends string = ""> = T extends `${infer L}${S}${infer R}` ? | |
| Replace<R, S, D, `${A}${L}${D}`> : `${A}${T}` |
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 | |
| cd /tmp/elixir-ls-update | |
| if [ -d "/tmp/elixir-ls-update" ] ; then | |
| rm -rf /tmp/elixir-ls-update | |
| fi | |
| git clone --depth 1 https://github.com/elixir-lsp/elixir-ls | |
| cd elixir-ls | |
| mix deps.get | |
| mix elixir_ls.release -o ~/.vscode/extensions/jakebecker.elixir-ls-*/elixir-ls-release/ |
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
| # Translation of WordPress - 5.8.x - Development in Danish | |
| # This file is distributed under the same license as the WordPress - 5.8.x - Development package. | |
| msgid "" | |
| msgstr "" | |
| "PO-Revision-Date: 2021-10-07 08:20:41+0000\n" | |
| "MIME-Version: 1.0\n" | |
| "Content-Type: text/plain; charset=UTF-8\n" | |
| "Content-Transfer-Encoding: 8bit\n" | |
| "Plural-Forms: nplurals=2; plural=n != 1;\n" | |
| "X-Generator: GlotPress/3.0.0-alpha.2\n" |
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 | |
| cd /tmp | |
| wget https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64 | |
| mv MailHog_linux_amd64 mailhog | |
| chmod +x mailhog | |
| sudo mv mailhog /usr/local/bin/mailhog | |
| sudo mkdir /etc/mailhog | |
| sudo echo "username:bcryptpw" > /etc/mailhog/auth.file |
NewerOlder