- Create users
sudo useradd --no-create-home --shell /sbin/nologin prometheus
- Create config dirs
sudo mkdir /etc/prometheus sudo mkdir /var/lib/prometheus sudo chown prometheus:prometheus /etc/prometheus
๐
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
| #include <stdio.h> | |
| #include "mart.h" | |
| int main() { | |
| // ์ฌ๋ณด ๋งํธ๊ฐ์ | |
| // ์ฐ์ ์ฌ๊ณ | |
| Good target_good = GOODTYPE_MILK; | |
| int quantity = 1; | |
Unable to negotiate with ?????? port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
.ssh/config
Host *
HostKeyAlgorithms +ssh-rsa
Important: Rollback after you do this. or use -o "HostKeyAlgorithms +ssh-rsa" flag.
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 | |
| TARGET_DEVICE="/dev/ttyUSB0" | |
| BYPASS=1 | |
| if [ "$1" == "disable" ]; then | |
| BYPASS=0 | |
| fi | |
| TARGET_SCRIPT="at^nvwrex=50364,0,4,01 00 00 00" |
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 | |
| [[ -z $TARGET_IP ]] && TARGET_IP="192.168.8.1" | |
| curl -X POST http://$TARGET_IP/CGI \ | |
| -H "Content-Type: application/xml" \ | |
| -d '<?xml version="1.0" encoding="UTF-8" ?> | |
| <api version="1.0"> | |
| <header> | |
| <function>switchMode</function> | |
| </header> |
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 | |
| TARGET_CERT="/etc/ssl/certs/ssl-cert-snakeoil.pem" | |
| TARGET_KEY="/etc/ssl/private/ssl-cert-snakeoil.key" | |
| DHPARAM="/etc/ssl/certs/dhparam.pem" | |
| C="KR" | |
| ST="Seoul" | |
| L="Yeongdeungpo-gu" | |
| O="Alex4386 Inc." |
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
| module.exports = { | |
| apps: [ | |
| { | |
| name: 'Xen Orchestra', | |
| cwd: './packages/xo-server/', | |
| script: 'yarn', | |
| args: ['start'], | |
| env: { | |
| // You should configure it here. | |
| NODE_ENV: 'production', |
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
| module.exports = { | |
| apps : [{ | |
| name: "code-server", | |
| interpreter: "/bin/bash", | |
| cmd: "code-server serve-local --disable-telemetry --without-connection-token" | |
| }] | |
| } |
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 | |
| sudo snap install core | |
| sudo snap refresh core | |
| sudo snap install --classic certbot | |
| sudo snap set certbot trust-plugin-with-root=ok | |
| sudo snap install certbot-dns-cloudflare | |
| sudo snap connect certbot:plugin certbot-dns-cloudflare |
