This file contains 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
.editor-group-watermark>.letterpress { | |
/* https://github.com/Aikoyori/ProgrammingVTuberLogos */ | |
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABpQAAARCCAYAAACtoRG2AAABgGlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz/GiBiNsLCweAmroUGJjcVMfhUWM08ZbGaeeTNqZrzeG0m2ynaKEhu/FvwFbJW1UkRK1tbEhuk5b54ayZzbuedzv/ee073ngkfNaFnLG4RsLm9GxkPKXGxeqX3BSzN1+GiNa5YxHR1TqWgf91Q58bbHqVX53L/WsJS0NKiqEx7RDDMvPCE8tZY3HN4RbtXS8SXhM+GAKRcUvnP0hMsvDqdc/nLYVCNh8DQJK6lfnPjFWtrMCsvL6cxmVrWf+zgv8SVzs1GJHeLtWEQYJ4TCJKOEGaSPYZkH6aGfXllRIT9Yyp9hRXI1mQ3WMVkmRZo8AVFXpXpSoi56UkaGdaf/f/tq6QP9bnVfCGqebfutC2q3oViw7c8j2y4eQ/UTXObK+SuHMPQueqGsdR6AfxPOr8paYhcutqDt0Yib8ZJULe7RdXg9hcYYtNxA/YLbs599Th5A3ZCvuoa9feiW8/7FbyDzZ8ZbTvm6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nOzdd3hb1f0/8PfVXra8Le8RZ+8dEkYIIxBiVmlaRiktLWWYUkpboMAXSgulpdBSUtr+2lJWadlDzLIhJIQkkL0dZ9iO4r1ly5Lu7w9FjWMkWbLv1b2S36/n8QOxpXM+urq2zjmfMwAiIiIiIiIiIiIiIiKiCASlAyAiIiIiIiIiIpKbo8qpPXNqbu5J47IKUi36LAFI7ff5TV29Pq3X5++0GHX7lk7N3Z6fbnYrHSsREZEaMaFERERERERERERJ5YdPfjlhSqH |
This file contains 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
function fat32_img_size { | |
declare dir="$1" | |
declare -i unit_sector=512 | |
declare -i reserved_sectors=32 | |
declare -i num_fats=2 | |
declare -i num_paths=$(find "$dir" -mindepth 1 | wc -l) | |
declare -i fat_sectors=$((num_paths * unit_sector / num_fats - 1)) | |
This file contains 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
untar() { local tar="$1"; tar -tf "$tar" | fzf -m | tar -vxT - -f "$tar"; } |
This file contains 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
[Containments][2] | |
lastScreen=0 | |
plugin=org.kde.panel | |
[Containments][2][Applets][1] | |
plugin=org.kde.plasma.panelspacer | |
[Containments][2][Applets][2] | |
plugin=org.kde.plasma.kickoff |
This file contains 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
git commit --amend --date "$(date --date="$(git show --format=%ai --no-patch HEAD) 2 minutes ago" '+%Y/%m/%d %H:%M:%S %z')" --no-edit |
This file contains 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
# Usage: git-editdate 10 minutes ago | |
# Usage: git-editdate 3 hours 2 minutes 1 second | |
# Usage: git-editdate author | |
# | |
# Extra Usage: | |
# # Set command to edit since HEA0~10 | |
# env GIT_SEQUENCE_EDITOR='sed --in-place "s/^pick /edit /"' git rebase --interactive HEAD~10 | |
# | |
# # do-while | |
# while |
This file contains 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 | |
set -e | |
screenshots_dir="$HOME/Pictures/screenshots" | |
[ ! -d "$screenshots_dir" ] && mkdir -vp "$screenshots_dir" | |
crop="$(crop)" | |
screenshot_path="$screenshots_dir/screenshot-$(date +%s).jpg" | |
import -window root -crop "$crop" "$screenshot_path" |
This file contains 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 | |
hash "$@" >/dev/null 2>&1 |
This file contains 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 | |
(shopt -s checkwinsize) | |
for i in $(seq 1 $COLUMNS); do | |
printf ─ | |
done | |
echo |
This file contains 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
# raspberrypi login: pi | |
# Password: raspberry | |
# Time zone: Asia/Tokyo | |
# Keyboard layout: jp | |
function setup1 { | |
sudo raspi-config nonint do_change_locale ja_JP.UTF-8 | |
sudo raspi-config nonint do_boot_behaviour B2 | |
NewerOlder