Can be invoked directly using dash
@echo off
set "PATH=%~dp0\usr\bin;%PATH%"
"%~dp0\usr\bin\dash" /usr/bin/rebaseall -p
git config --global user.email || echo "no email found" | |
git config --global user.signingkey || echo "no signing key found" | |
echo "$(git config --global user.email) namespaces=\"git\" $(eval cat $(git config --global user.signingkey))" >> ~/.ssh/allowed_signers | |
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers |
Can be invoked directly using dash
@echo off
set "PATH=%~dp0\usr\bin;%PATH%"
"%~dp0\usr\bin\dash" /usr/bin/rebaseall -p
flowchart TD
A["Start Bash Shell"] --> B{"Login Shell?"}
B -- Yes --> C["/etc/profile"]
C --> D{"~/.bash_profile exists?"}
D -- Yes --> E["~/.bash_profile"]
D -- No --> F["~/.profile"]
E --> G{"Source ~/.bashrc?"}
so, it is possible to use docker containers as a lightweight "use and throw away" vm
docker run -dit --name ubuntu ubuntu:24.04
# can also expose all host
docker run -dit --network host --name ubuntu ubuntu:24.04
docker exec -it ubuntu bash
next time you start the container it stays alive
; Author: nopeless@github.com
┼ ┌ ┬ ┐ ╋ ┏ ┳ ┓ ┼ ╭ ┬ ╮ ╬ ╔ ╦ ╗
│ ├ ┼ ┤ ┃ ┣ ╋ ┫ │ ├ ┼ ┤ ║ ╠ ╬ ╣
─ └ ┴ ┘ ━ ┗ ┻ ┛ ─ ╰ ┴ ╯ ═ ╚ ╩ ╝
┿ ┍ ┯ ┑ ╂ ┎ ┰ ┒ ╪ ╒ ╤ ╕ ╫ ╓ ╥ ╖
│ ┝ ┿ ┥ ┃ ┠ ╂ ┨ │ ╞ ╪ ╡ ║ ╟ ╫ ╢
━ ┕ ┷ ┙ ─ ┖ ┸ ┚ ═ ╘ ╧ ╛ ─ ╙ ╨ ╜
#Requires AutoHotkey v2.0 | |
#SingleInstance | |
#UseHook | |
; V2 rewrite and simplification by author: nopeless @ github.com | |
; | |
; Originally written by Lexikos (404) | |
; http://www.autohotkey.com/forum/post-147849.html#147849 | |
; Modifications by Trevor Bekolay for the How-To Geek | |
; http://www.howtogeek.com/ |
#!/bin/bash | |
set +euo pipefail | |
LANG="C.UTF-8" | |
n() { | |
(($1 >= ${#A[@]})) && return | |
L=$(($1 + $2)) | |
Q=$(($2 * 2)) | |
V=${A[$1]} |
<?xml version="1.0" encoding="UTF-8" ?> | |
<NotepadPlus> | |
<!-- | |
This shortcuts.xml file is configured to reflect many common Visual Studio Code keybindings. | |
- Some default Notepad++ shortcuts have been changed. | |
- Not all VS Code shortcuts can be mapped due to feature differences (e.g., integrated terminal, debugger). | |
- Multi-key shortcuts from VS Code (e.g., Ctrl+K Ctrl+C) cannot be mapped directly. A single-key alternative has been used where available. | |
--> | |
<InternalCommands> | |
<!-- General File Operations --> |
const classes = new Set(); | |
document.querySelectorAll('[class]').forEach(el => { | |
el.classList.forEach(cls => classes.add(cls)); | |
}); | |
const replacer = prefix => [...classes].find(c => c.startsWith(prefix)); | |
const classRegex = /class\^=("[^"]+"|(?:\\.|[^\\\n\]])+)/g; | |
const cssProcessor = text => text.replace(classRegex, match => `class=${replacer(match[1])}`); |
pathColor="\033[38;2;104;169;196m" | |
errColor="\033[38;2;255;60;60m" | |
sucColor="\033[38;2;152;82;173m" | |
resetColor="\033[m" | |
if ((EUID)); then | |
userColor="\033[38;2;201;116;173m" | |
userSymbol='$' | |
else |