rsync
rsync **source/** **destination
Discover gists
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 | |
# Check the number of arguments | |
if [ "$#" -ne 4 ]; then | |
echo "Usage: ./nxc-auto.sh [IP] [USER] [PASSWD] [DOMAIN]" | |
exit 1 | |
fi | |
IP=$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
#single video | |
youtube-dl --cookies youtube.com_cookies.txt "URL" | |
#playlist | |
youtube-dl --yes-playlist --cookies youtube.com_cookies.txt "URL" | |
You can use: --playlist-start, --playlist-end, --playlist-reverse or --playlist-items to achieve this goal. | |
#Note: cookie should be in Netscape format |
Tips for writing macros in SWI Prolog. This should eventually be expanded into a full blog post:
For each module that defines a macro, define a predicate like:
wants_my_fancy_macro :-
prolog_load_context(module, Module),
Module \== my_module, % don't expand macros in our own code
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
// In TS, interfaces are "open" and can be extended | |
interface Date { | |
/** | |
* Give a more precise return type to the method `toISOString()`: | |
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString | |
*/ | |
toISOString(): TDateISO; | |
} | |
type TYear = `${number}${number}${number}${number}`; |
Arduino 3.x is not officially suported by PlatformIO - see platformio/platform-espressif32#1225
Due to the lack of further development of the Espressif 32 Arduino Core for PlatformIO, the pioarduino fork was created.
platform-espressif32 | Arduino Core | based on ESP-IDF | platformio.ini |
---|
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
# mihomo (Clash Meta) 懒人配置 | |
# 版本 V1.15-241205 | |
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33 | |
# https://obdo.cc/meta | |
# 作者: 笨蛋ovo (bdovo.cc) | |
# Telegram: https://t.me/baka_not_baka | |
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel | |
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta | |
# 转载请保留此注释 | |
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解 |
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 -x #echo on | |
remote_url=$(git config --get remote.origin.url) | |
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do | |
branch_name=$(echo $branch| cut -d'/' -f 3) | |
git clone -b $branch_name $remote_url $branch_name | |
done |
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
# The magic bytes for PNG | |
echo '89 50 4E 47 0D 0A 1A 0A' | xxd -p -r >> reverse.php.png | |
cat reverse.php >> reverse.php.png |
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
Mission Critical- системы, работающие в режиме «боевого дежурства». К таким системам относятся: остро критические с точки зрения государственного управления или внешних факторов – например экологии, приложения, а также технологические приложения, работающие в режиме реального времени. Выход из строя этих систем влечет за собой невосполнимые потери для управления, в т.ч. угрозу жизни и здоровью персонала и населения. Рекомендованное время восстановления подобных систем после отказа менее 10 минут. Для таких систем должны использоваться специализированные серверные платформы и инфраструктурные уровни с полным многократным резервированием всех компонентов, в том числе с использованием резервных удаленных ЦОД; | |
Business Critical– системы, критические для управления, с режимом работы 24х7х365. Выход из строя этих систем влечет за собой значительные бизнес потери для органов государственной власти. Рекомендованное время восстановления подобных систем после отказа менее 2 часов. Для таких систем должны испол |
NewerOlder