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 | |
| #set user or user list!!! | |
| USERS="delfer user2 user3" | |
| mkdir ~/.ssh || true | |
| for USER in $USERS; do | |
| URL=https://github.com/${USER}.keys | |
| STORE=~/.ssh/authorized_keys |
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
| #------------------------------------------------------------------------------ | |
| # CUSTOMIZED OPTIONS | |
| #------------------------------------------------------------------------------ | |
| # Add settings for extensions here | |
| wal_level = minimal | |
| max_wal_senders = 0 | |
| fsync = off | |
| synchronous_commit = off | |
| full_page_writes = off |
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
| # Configure a default setup of Home Assistant (frontend, api, etc) | |
| default_config: | |
| # Uncomment this if you are using SSL/TLS, running in Docker container, etc. | |
| # http: | |
| # base_url: example.duckdns.org:8123 | |
| # Text to speech | |
| tts: |
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=Docker mtu fix | |
| After=network.target docker.service | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/sbin/iptables -I DOCKER-USER -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu | |
| [Install] | |
| WantedBy=multi-user.target |
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
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: drone-agent | |
| spec: | |
| replicas: 8 | |
| strategy: | |
| type: RollingUpdate | |
| template: | |
| metadata: |
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
| cd /tmp | |
| java -Xmx5g -jar /opt/sonatype/nexus/lib/support/nexus-orient-console.jar | |
| CONNECT PLOCAL:/nexus-data/db/component admin admin | |
| REBUILD INDEX * | |
| REPAIR DATABASE --fix-graph | |
| REPAIR DATABASE --fix-links | |
| REPAIR DATABASE --fix-ridbags | |
| REPAIR DATABASE --fix-bonsai | |
| DISCONNECT |
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 | |
| API=https://api.telegram.org/botXXX/sendMessage | |
| CHAT=YYYY | |
| function send { | |
| curl -s -X POST $API -d chat_id="$CHAT" -d text="$1" | |
| } | |
| OK_MARK=$(echo -e '\u2705') |
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
| #host | |
| docker run -ti --rm --privileged -v /dev:/dev -v $(pwd):/ws base/archlinux bash | |
| #in C | |
| cd /ws/ | |
| dd if=/dev/zero of=disk.img bs=1024k seek=4096 count=0 | |
| echo 'start=2048, type=83' | sfdisk disk.img | |
| DISK=$(losetup -f --show -P disk.img) | |
| DEVICE=${DISK}p1 | |
| mkfs.ext4 $DEVICE |
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
| #dig form bind-utils | |
| while read DNS; do | |
| echo $DNS | |
| dig @$DNS getbootstrap.com | grep "Query time:" | |
| done <dns.list |
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
| ipset create rkn hash:ip || ipset flush rkn | |
| ipset create rkn2 hash:ip || ipset flush rkn2 | |
| wget http://api.antizapret.info/all.php\?type\=csv -O - | cut -d';' -f4 | sed -e "s#,#\n#g" | sort | uniq | grep -v '/' > /tmp/IPlist | |
| while read IP; do ipset add rkn $IP || ipset add rkn2 $IP ; done </tmp/IPlist | |
| rm -f /tmp/IPlist |