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
| #!/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
| 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
| 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
| [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
| # 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
| #------------------------------------------------------------------------------ | |
| # 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
| #!/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
| # Ignore everything | |
| * |
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
| # this is because Browser sent empty Accept-Language header | |
| 2020-09-21 22:05:10,214 ERROR SystemErrorController,http-nio-0.0.0.0-8080-exec-10:86 - Internal server error | |
| org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 2 | |
| at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:963) | |
| at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842) | |
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) | |
| at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827) | |
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) | |
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) |