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
# -a archive, -v verbose, -h human-units, -W whole file (less cpu for delta algo), --no-compress because there's bandwith, --no-inc-recursive more ram but does a good estimate | |
rsync -avhW --no-compress --info=progress2 --no-inc-recursive <src> <dst> |
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/bash | |
# Sets KDE plasma 6 Inhibited (do not disturb) state by command | |
toogle() { | |
qdbus-qt6 org.kde.kglobalaccel /component/plasmashell invokeShortcut "toggle do not disturb" | |
} | |
on_off() { | |
current_state=$(qdbus-qt6 org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.Inhibited) |
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/env bash | |
# template source: https://news.ycombinator.com/item?id=33352967 | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ -n "${TRACE-}" ]]; then | |
set -o xtrace | |
fi |
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
import logging | |
from typing import Any, Optional, Union | |
from uuid import uuid4 | |
from starlette.requests import HTTPConnection, Request | |
from starlette.responses import Response | |
from starlette.types import Message | |
from starlette_context import context | |
from starlette_context.plugins import Plugin |
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
function exportSpreadsheet() { | |
//All requests must include id in the path and a format parameter | |
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export | |
//FORMATS WITH NO ADDITIONAL OPTIONS | |
//format=xlsx //excel | |
//format=ods //Open Document Spreadsheet | |
//format=zip //html zipped | |
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
git clone https://github.com/ahmetb/kubectx.git | |
cd kubectx | |
#COMPDIR=$(pkg-config --variable=completionsdir bash-completion) | |
COMPDIR=$HOME/.zinit/completions | |
ln -s $(pwd)/completion/kubectx.zsh $COMPDIR/_kubectx.zsh | |
ln -s $(pwd)/completion/kubens.zsh $COMPDIR/_kubens.zsh | |
cd cmd/kubect | |
go build |
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
*/CachedData | |
*/CacheStorage | |
*/.cargo | |
*/.ccache | |
*/.[Cc]ache | |
*/[Cc]ache | |
*/.conda | |
*/.config/BraveSoftware/Brave-Browser-Beta | |
*/.config/BraveSoftware/Brave-Browser-Nightly | |
*/.config/Code/logs |
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
./i2pd --log stdout \ | |
--loglevel info \ | |
--port 20750 \ | |
--host $(curl -s https://api.ipify.org) \ | |
--nat 0 \ | |
--floodfill \ | |
--bandwidth X \ | |
--limits.openfiles 8192 \ | |
--limits.transittunnels 2500 \ | |
--limits.ntcpsoft 192 \ |
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
### Added by Zinit's installer | |
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then | |
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" | |
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \ | |
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160}▓▒░ The clone has failed.%f%b" | |
fi |
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
[Unit] | |
Description=mtproxy | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=simple | |
ExecStart=/opt/mtg run -v -w 128KB -r 128KB --prefer-ip ipv6 --cloak-port 993 -b 0.0.0.0:443 ee5c557d37ddde51c21d4577a29b88bbcc6d747072782e6e6f772e696d | |
AmbientCapabilities=CAP_NET_BIND_SERVICE | |
Restart=never |
NewerOlder