apt -y install fail2ban nano sudo vlan ifupdown2 ipvsadm ipset wget curl mtr-tiny net-tools tmux unattended-upgrades open-iscsi glances btop htop
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
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
// From Network Lag Trading Teams | |
// © bouroo | |
//@version=5 | |
strategy("SuperTrend + WaveTrend Strategy", overlay=true) | |
// SuperTrend Parameters | |
atrLength = input(10, title="ATR Length") | |
factor = input(3.0, title="Factor") |
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
#!/usr/bin/env bash | |
# find root path | |
ROOT_DEV=$(findmnt -n -o SOURCE /) | |
# rescan disk size | |
echo 1 | sudo tee /sys/block/sda/device/rescan | |
# grow partition that contains root | |
# extend partition size | |
growpart /dev/sda 3 | |
# extend physical volume | |
pvresize /dev/sda3 |
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
extern crate pcsc; | |
use std::io; | |
use std::io::prelude::*; | |
use std::fs::File; | |
use std::str; | |
use std::string::String; | |
use pcsc::{Card, Context, ShareMode, Scope}; | |
use pcsc::Error; |
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
#!/usr/bin/env bash | |
#============================================================================== | |
# title: php56.sh | |
# description: This script automatically installs PHP 5.6 on Plesk RHEL | |
# author: Kawin Viriyaprasopsook <kawin.v@kkumail.com> | |
# usage: bash php56.sh | |
# notes: need `gcc libxml2-devel` packages | |
#============================================================================== | |
dnf -y install gcc libxml2-devel |
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
#!/usr/bin/env bash | |
#============================================================================== | |
# title: gen_kustomization.sh | |
# description: This script automatically creates kustomization deployment files from kubectl | |
# author: Kawin Viriyaprasopsook <kawin.v@kkumail.com> | |
# usage: bash gen_kustomization.sh | |
# notes: need `kubectl kubectl-convert kubectl-neat` packages | |
#============================================================================== | |
mkdir -p kustomization && cd kustomization |
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
#!/usr/bin/env bash | |
#============================================================================== | |
# title: docker-nginx-http3.sh | |
# description: build nginx http3 support from https://github.com/patrikjuvonen/docker-nginx-http3 | |
# author: Kawin Viriyaprasopsook <kawin.v@kkumail.com> | |
# usage: bash docker-nginx-http3.sh | |
# notes: need `docker curl git` packages | |
#============================================================================== | |
git clone https://github.com/patrikjuvonen/docker-nginx-http3.git tmp |
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
#!/usr/bin/env bash | |
#============================================================================== | |
# title: dev_fonts.sh | |
# description: my favorite develop environment fonts | |
# author: Kawin Viriyaprasopsook <kawin.v@kkumail.com> | |
# usage: bash dev_fonts.sh | |
# notes: need `wget curl tar` packages | |
#============================================================================== | |
CURRENT_DIR=$(pwd || echo ${PWD}) |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: cloudflare | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: cloudflared-secret |
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
/** | |
* Welcome to Cloudflare Workers! This is your first worker. | |
* | |
* - Run "npm run dev" in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run "npm run deploy" to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
NewerOlder