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
for a in $(ls) | |
pushd "./$a"; echo $a | |
ls -a .git > /dev/null 2>&1 && git remote -v | |
popd | |
end |
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
echo "" >> ~/.config/fish/config.fish | |
echo "set -U -x -a fish_user_paths \$HOME/.cargo/bin" >> ~/.config/fish/config.fish | |
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher | |
fisher install kidonng/zoxide.fish | |
fisher install jethrokuan/fzf | |
fisher install decors/fish-colored-man | |
fisher install ankitsumitg/docker-fish-completions | |
fisher install xs23933/export.fish | |
fisher install danhper/fish-ssh-agent | |
fisher install evanlucas/fish-kubectl-completions |
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/setxkbmap -option grp:alt_shift_toggle -layout us,ru |
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
%any %any : RSA vpnHostKey.pem |
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 | |
echo -n "Всего лицензий: " && \ | |
rg "Количество пользователей:\s.*$" /var/1C/licenses/*.lic | rg -o "\b\\d{1,3}\b" | awk '{s+=$1} END {print s}' | |
echo -n "Всего сеансов: " && \ | |
/opt/1cv8/x86_64/current/rac session --cluster=$(/opt/1cv8/x86_64/current/rac cluster list localhost | rg -e "^cluster\s*:" -m 1 | rg -e "[[:xdigit:]-]{36}" -o) list| rg -c "^session\s" |
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
F11::{ | |
send "^{CtrlBreak}" | |
} |
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
vim.api.nvim_create_user_command( | |
'Encode', | |
function(input) | |
vim.api.nvim_command('%!openssl enc -e -aes-256-cbc -a -salt -pbkdf2 -k ' .. input.args) | |
end, | |
{desc = 'Encode buffer with password', nargs = 1} | |
) | |
vim.api.nvim_create_user_command( | |
'Decode', |
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
https://d.1c.link/1C-Link-CA.crt | |
certutil -addstore "Root" 1C-Link-CA.crt |
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 | |
export HOST=example.com | |
export PORTNUMBER=443 | |
export SERVERNAME=example.com | |
echo -n | openssl s_client -connect $HOST:$PORTNUMBER -servername $SERVERNAME | openssl x509 > $SERVERNAME.cer |
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
ip2int = lambda ip: int("".join(map(lambda x: f"{int(x):08b}", ip.split("."))), 2) | |
int2ip = lambda x: ".".join(str(int(f"{x:032b}"[i:i+8], 2)) for i in range(0,25,8)) | |
print(x := ip2int("127.0.0.1"), int2ip(x)) |
NewerOlder