- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- When only changing documentation, include
[ci skip]in the commit title - Consider starting the commit message with an applicable emoji
| git commit -m "Commit only unstaged changes" $(git diff --name-only) |
| !# /bin/bash | |
| cp app.AppImage ~/Applications/app.appimage | |
| // following is the .desktop file to be placed in ~/.local/share/applications/ | |
| /** app.desktop **/ | |
| [Desktop Entry] | |
| Name=file name | |
| Exec=/home/username/Applications/app.appimage | |
| Terminal=false |
| #! /bin/bash | |
| # This script groups commit messages by date for the current user and logs them on the console - ignores merge commits | |
| FROM="2025-08-15"; | |
| TO="2025-08-15"; | |
| git log --no-merges --all --author="$(git config user.email)" --since="$FROM 00:00" --until="$TO 23:59" --date=short --pretty=format:'%ad%x09%s' | awk -F'\t' 'NR==1{d=$1; print d; print $2; next} $1!=d{print ""; d=$1; print d} {print $2}' |
Bypass disable-devtool
(Working as of 2025-02-09)
There are websites that use disable-devtool to prevent you from opening or using devtools. They typically prevent you from right clicking or using the keyboard shortcut to open devtools. Even if you successfully do so, they detect it and redirect you elsewhere. You can bypass this by using one of the following ways.
If the shortcut F12 on Windows or Option + ⌘ + I on Mac do not work. Press the three vertically aligned dots in the top right corner of your Google Chrome or Microsoft Edge window. Under the section "More Tools", you'll see the option to select "Developer Tools" which opens the toolkit in your window.
| OPTIONAL | |
| ensure pulling is possible via www-data user | |
| -> sudo -u www-data git pull | |
| if not add it in visudo | |
| -> git ALL = (www-data) /usr/bin/git pull | |
| add ubuntu to www-data group | |
| -> sudo usermod -aG www-data ubuntu |
| #!/bin/bash | |
| # based on http://unix.stackexchange.com/questions/175071/how-to-decrypt-hostnames-of-a-crypted-ssh-known-hosts-with-a-list-of-the-hostna/175199#175199 | |
| function replace { | |
| host="$1" | |
| found=$(ssh-keygen -F "$host" 2>/dev/null | grep -v '^#' | sed "s/^[^ ]*/$host/") | |
| if [ -n "$found" ]; then | |
| ssh-keygen -R "$host" &>/dev/null | |
| echo "$found" >>~/.ssh/known_hosts | |
| echo "Found and replaced: $host" |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # allow reload of this file with PRE r | |
| bind r source-file ~/.tmux.conf \; display "Reloaded." | |
| # switch prefix to control-a, unmap b, allow double-a to go through | |
| set -g prefix C-a | |
| unbind C-b | |
| bind C-a send-prefix | |
| # -r repeat time (Default 500 millis) | |
| set -g repeat-time 2000 |