Compare commits
18 Commits
c697587d9a
...
master
Author | SHA1 | Date | |
---|---|---|---|
a102274416
|
|||
d14ab2d7ff
|
|||
5df3b86fc9
|
|||
b470f1cf43
|
|||
155696c12f
|
|||
4dddd17132
|
|||
057b0bf93a
|
|||
954138b1ef
|
|||
75f1174ace
|
|||
c49c8b2a09
|
|||
d6eadbd7b6
|
|||
6cb491d338
|
|||
2079564fe5
|
|||
b49e7ad83d
|
|||
a588a8299e
|
|||
d21a1a5c07
|
|||
7a519522ca
|
|||
e094e72395
|
@@ -3,6 +3,7 @@ coreutils
|
|||||||
dockutil
|
dockutil
|
||||||
duti
|
duti
|
||||||
fastfetch
|
fastfetch
|
||||||
|
ffmpeg
|
||||||
git
|
git
|
||||||
gnu-sed
|
gnu-sed
|
||||||
htop
|
htop
|
||||||
@@ -13,9 +14,11 @@ mtr
|
|||||||
neovim
|
neovim
|
||||||
newsboat
|
newsboat
|
||||||
parallel
|
parallel
|
||||||
|
pinentry-mac
|
||||||
ranger
|
ranger
|
||||||
ripgrep
|
ripgrep
|
||||||
rsync
|
rsync
|
||||||
|
texinfo
|
||||||
tmux
|
tmux
|
||||||
tree
|
tree
|
||||||
wget
|
wget
|
||||||
|
@@ -1,7 +1,9 @@
|
|||||||
alfred
|
|
||||||
alacritty
|
alacritty
|
||||||
|
akiflow
|
||||||
|
alfred
|
||||||
chatterino
|
chatterino
|
||||||
dbeaver-community
|
dbeaver-community
|
||||||
|
discord
|
||||||
displaylink
|
displaylink
|
||||||
docker
|
docker
|
||||||
firefox@nightly
|
firefox@nightly
|
||||||
@@ -9,32 +11,28 @@ font-hack-nerd-font
|
|||||||
gimp
|
gimp
|
||||||
google-chrome
|
google-chrome
|
||||||
hiddenbar
|
hiddenbar
|
||||||
jordanbaird-ice
|
|
||||||
karabiner-elements
|
karabiner-elements
|
||||||
keepassxc
|
keepassxc
|
||||||
macfuse
|
|
||||||
megasync
|
megasync
|
||||||
microsoft-auto-update
|
|
||||||
microsoft-teams
|
microsoft-teams
|
||||||
mongodb-compass
|
mongodb-compass
|
||||||
mpv
|
mpv
|
||||||
mysides
|
|
||||||
obsidian
|
obsidian
|
||||||
postman
|
|
||||||
platypus
|
platypus
|
||||||
|
postman
|
||||||
qbittorrent
|
qbittorrent
|
||||||
qview
|
qview
|
||||||
|
rustdesk
|
||||||
scroll-reverser
|
scroll-reverser
|
||||||
signal
|
signal
|
||||||
skype
|
|
||||||
spotify
|
spotify
|
||||||
stats
|
stats
|
||||||
telegram
|
telegram
|
||||||
the-unarchiver
|
the-unarchiver
|
||||||
transfer
|
transfer
|
||||||
twingate
|
twingate
|
||||||
|
visual-studio-code
|
||||||
vlc
|
vlc
|
||||||
winbox
|
winbox
|
||||||
wine-crossover
|
wine-crossover
|
||||||
wireshark
|
wireshark
|
||||||
zed@preview
|
|
||||||
|
1
.brew_programs_disable
Normal file
1
.brew_programs_disable
Normal file
@@ -0,0 +1 @@
|
|||||||
|
example
|
@@ -18,8 +18,26 @@ bindings = [
|
|||||||
[font]
|
[font]
|
||||||
size = 22
|
size = 22
|
||||||
|
|
||||||
|
# [font.normal]
|
||||||
|
# family = "Terminess Nerd Font"
|
||||||
|
# style = "Regular"
|
||||||
|
|
||||||
|
# # [font.bold]
|
||||||
|
# # family = "Teminess Nerd Font"
|
||||||
|
# # style = "Bold"
|
||||||
|
|
||||||
|
# [font.bold_italic]
|
||||||
|
# family = "Terminess Nerd Font"
|
||||||
|
# style = "Bold Italic"
|
||||||
|
|
||||||
|
# [font.italic]
|
||||||
|
# family = "Terminess Nerd Font"
|
||||||
|
# style = "Italic"
|
||||||
|
|
||||||
|
|
||||||
|
# Comic code
|
||||||
[font.normal]
|
[font.normal]
|
||||||
family = "Terminess Nerd Font"
|
family = "Comic Code Ligatures"
|
||||||
style = "Regular"
|
style = "Regular"
|
||||||
|
|
||||||
# [font.bold]
|
# [font.bold]
|
||||||
@@ -27,16 +45,20 @@ style = "Regular"
|
|||||||
# style = "Bold"
|
# style = "Bold"
|
||||||
|
|
||||||
[font.bold_italic]
|
[font.bold_italic]
|
||||||
family = "Terminess Nerd Font"
|
family = "Comic Code"
|
||||||
style = "Bold Italic"
|
style = "Bold Italic"
|
||||||
|
|
||||||
[font.italic]
|
[font.italic]
|
||||||
family = "Terminess Nerd Font"
|
family = "Comic Code"
|
||||||
style = "Italic"
|
style = "Italic"
|
||||||
|
|
||||||
|
[font.offset]
|
||||||
|
x = 0
|
||||||
|
y = -6
|
||||||
|
|
||||||
[font.glyph_offset]
|
[font.glyph_offset]
|
||||||
x = 0
|
x = 0
|
||||||
y = 0
|
y = -2
|
||||||
|
|
||||||
# [mouse.hints]
|
# [mouse.hints]
|
||||||
# modifiers = "Command"
|
# modifiers = "Command"
|
||||||
@@ -44,10 +66,6 @@ y = 0
|
|||||||
# [mouse.hints.launcher]
|
# [mouse.hints.launcher]
|
||||||
# program = "open"
|
# program = "open"
|
||||||
|
|
||||||
[font.offset]
|
|
||||||
x = 0
|
|
||||||
y = 0
|
|
||||||
|
|
||||||
[selection]
|
[selection]
|
||||||
save_to_clipboard = true
|
save_to_clipboard = true
|
||||||
|
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
/Users/yorune/Library/Application Support/iTerm2
|
|
@@ -371,7 +371,17 @@
|
|||||||
"is_keyboard": true,
|
"is_keyboard": true,
|
||||||
"product_id": 785,
|
"product_id": 785,
|
||||||
"vendor_id": 13364
|
"vendor_id": 13364
|
||||||
|
},
|
||||||
|
"simple_modifications": [
|
||||||
|
{
|
||||||
|
"from": { "key_code": "grave_accent_and_tilde" },
|
||||||
|
"to": [{ "key_code": "non_us_backslash" }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": { "key_code": "right_control" },
|
||||||
|
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"identifiers": {
|
"identifiers": {
|
||||||
@@ -406,14 +416,6 @@
|
|||||||
{
|
{
|
||||||
"from": { "key_code": "left_command" },
|
"from": { "key_code": "left_command" },
|
||||||
"to": [{ "key_code": "right_command" }]
|
"to": [{ "key_code": "right_command" }]
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "grave_accent_and_tilde" },
|
|
||||||
"to": [{ "key_code": "non_us_backslash" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "non_us_backslash" },
|
|
||||||
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"virtual_hid_keyboard": {
|
"virtual_hid_keyboard": {
|
||||||
|
@@ -357,8 +357,8 @@ set updatetime=250
|
|||||||
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
||||||
|
|
||||||
" CoPilot
|
" CoPilot
|
||||||
imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
|
" imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
|
||||||
let g:copilot_no_tab_map = v:true
|
" let g:copilot_no_tab_map = v:true
|
||||||
|
|
||||||
" Neoformat
|
" Neoformat
|
||||||
let g:neoformat_try_formatprg = 1
|
let g:neoformat_try_formatprg = 1
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -279,3 +279,4 @@ Cisco Packet Tracer 8.0.0
|
|||||||
.local/bin/kubectl
|
.local/bin/kubectl
|
||||||
.rustup
|
.rustup
|
||||||
.local/tss-sdk
|
.local/tss-sdk
|
||||||
|
.local/bin/tss
|
||||||
|
@@ -199,6 +199,7 @@ function install_terragrunt() {
|
|||||||
timestamp "The current version of the TSS-SDK is the same as the newest version"
|
timestamp "The current version of the TSS-SDK is the same as the newest version"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
brew install wget
|
||||||
wget https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64 -O $TERRAGRUNT
|
wget https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64 -O $TERRAGRUNT
|
||||||
chmod +x "$TERRAGRUNT"
|
chmod +x "$TERRAGRUNT"
|
||||||
fi
|
fi
|
||||||
@@ -299,6 +300,8 @@ function install_fzf() {
|
|||||||
function install_zsh_addons() {
|
function install_zsh_addons() {
|
||||||
|
|
||||||
if [ ! -d $ZSHFOLDER/aws ]; then
|
if [ ! -d $ZSHFOLDER/aws ]; then
|
||||||
|
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
|
||||||
|
|
||||||
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh \
|
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh \
|
||||||
-o "$ZSHFOLDER"/aws/aws.plugin.zsh &&
|
-o "$ZSHFOLDER"/aws/aws.plugin.zsh &&
|
||||||
timestamp "Downloaded the newest version of aws plugin for zsh"
|
timestamp "Downloaded the newest version of aws plugin for zsh"
|
||||||
@@ -307,7 +310,6 @@ function install_zsh_addons() {
|
|||||||
-o "$ZSHFOLDER"/azure-cli/az.completion &&
|
-o "$ZSHFOLDER"/azure-cli/az.completion &&
|
||||||
timestamp "Downloaded the newest version of az plugin for zsh"
|
timestamp "Downloaded the newest version of az plugin for zsh"
|
||||||
|
|
||||||
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
|
|
||||||
cd $ZSHFOLDER || err "Folder $ZSHFOLDER has been NOT found"
|
cd $ZSHFOLDER || err "Folder $ZSHFOLDER has been NOT found"
|
||||||
git clone https://github.com/popstas/zsh-command-time.git &&
|
git clone https://github.com/popstas/zsh-command-time.git &&
|
||||||
timestamp "Cloning the zsh-command-time"
|
timestamp "Cloning the zsh-command-time"
|
||||||
@@ -444,15 +446,20 @@ function install_brew_programs() {
|
|||||||
INSTALLED_PROGRAMS=$(brew list)
|
INSTALLED_PROGRAMS=$(brew list)
|
||||||
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
||||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
||||||
|
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
|
||||||
|
|
||||||
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
||||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
|
||||||
|
&& \
|
||||||
|
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||||
brew install $i --force
|
brew install $i --force
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
||||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
|
||||||
|
&& \
|
||||||
|
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||||
brew install $i --cask --force
|
brew install $i --cask --force
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
22
.local/bin/custom-iperf
Executable file
22
.local/bin/custom-iperf
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SERVER="$1"
|
||||||
|
|
||||||
|
if [ -z "$SERVER" ]; then
|
||||||
|
echo "Usage: $0 <server_ip>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Starting..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Upload test (client sends data to server)
|
||||||
|
UPLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 --json | jq '.end.sum_sent.bits_per_second / 1000000')
|
||||||
|
|
||||||
|
# Download test (client receives data from server)
|
||||||
|
DOWNLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 -R --json | jq '.end.sum_received.bits_per_second / 1000000')
|
||||||
|
|
||||||
|
# Print summary
|
||||||
|
echo "SERVER: $SERVER"
|
||||||
|
echo "UPLOAD: $(printf "%.2f" "$UPLOAD") Mbps"
|
||||||
|
echo "DOWNLOAD: $(printf "%.2f" "$DOWNLOAD") Mbps"
|
16
.local/bin/ffmpeg-resize-sub
Executable file
16
.local/bin/ffmpeg-resize-sub
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
FILE_FFMPEG="$1"
|
||||||
|
ffmpeg -i "$FILE_FFMPEG" \
|
||||||
|
-vf "scale=1920:1080" \
|
||||||
|
-c:v h264_videotoolbox \
|
||||||
|
-b:v 3000k \
|
||||||
|
-preset medium \
|
||||||
|
-movflags \
|
||||||
|
+faststart \
|
||||||
|
-c:a aac \
|
||||||
|
-b:a 192k \
|
||||||
|
-ac 2 \
|
||||||
|
-map 0:v \
|
||||||
|
-map 0:a \
|
||||||
|
-map 0:s \
|
||||||
|
-c:s copy resized.mkv
|
@@ -1,15 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
FOLDER_AUDIOBOOK="/Volumes/Music/Jellyfin/Playlist-Audiobook"
|
||||||
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
|
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
|
||||||
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
|
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
|
||||||
FOLDER_PIANO="/Volumes/Music/Jellyfin/Playlist-Piano"
|
FOLDER_PIANO="/Volumes/Music/Jellyfin/Playlist-Piano"
|
||||||
|
|
||||||
# Check if folder exists
|
# Check if folder exists
|
||||||
|
[ ! -d $FOLDER_AUDIOBOOK ] && exit 1
|
||||||
[ ! -d $FOLDER_DUB ] && exit 1
|
[ ! -d $FOLDER_DUB ] && exit 1
|
||||||
[ ! -d $FOLDER_FAV ] && exit 1
|
[ ! -d $FOLDER_FAV ] && exit 1
|
||||||
[ ! -d $FOLDER_PIANO ] && exit 1
|
[ ! -d $FOLDER_PIANO ] && exit 1
|
||||||
|
|
||||||
# Remove old files
|
# Remove old files
|
||||||
|
rm -rfv $FOLDER_AUDIOBOOK/errors.txt
|
||||||
rm -rfv $FOLDER_DUB/errors.txt
|
rm -rfv $FOLDER_DUB/errors.txt
|
||||||
rm -rfv $FOLDER_FAV/errors.txt
|
rm -rfv $FOLDER_FAV/errors.txt
|
||||||
rm -rfv $FOLDER_PIANO/errors.txt
|
rm -rfv $FOLDER_PIANO/errors.txt
|
||||||
@@ -35,6 +38,9 @@ spotdl --user-auth --keep-alive \
|
|||||||
--yt-dlp-args no-check-certificates
|
--yt-dlp-args no-check-certificates
|
||||||
|
|
||||||
# Sync to Jellyfin
|
# Sync to Jellyfin
|
||||||
|
rsync -h --progress --recursive --ignore-existing \
|
||||||
|
$FOLDER_AUDIOBOOK/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Audiobook
|
||||||
|
|
||||||
rsync -h --progress --recursive --ignore-existing \
|
rsync -h --progress --recursive --ignore-existing \
|
||||||
$FOLDER_DUB/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub
|
$FOLDER_DUB/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub
|
||||||
|
|
||||||
@@ -45,6 +51,8 @@ rsync -h --progress --recursive --ignore-existing \
|
|||||||
$FOLDER_PIANO/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Piano
|
$FOLDER_PIANO/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Piano
|
||||||
|
|
||||||
# Generate playlist
|
# Generate playlist
|
||||||
|
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Audiobook; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||||
|
|
||||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||||
|
|
||||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
/usr/local/bin/yt-dlp
|
|
1
.tilde-switch
Executable file
1
.tilde-switch
Executable file
@@ -0,0 +1 @@
|
|||||||
|
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
|
Reference in New Issue
Block a user