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
# Fail2Ban configuration file | |
# | |
# Author: Donald Yandt | |
# Because of the --remove-rules in stop this action requires firewalld-0.3.8+ | |
[INCLUDES] | |
before = firewallcmd-common.conf | |
[Definition] |
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
@echo off | |
set ipcheck="google.com" | |
set wifi1="Leelawadee-Secure" | |
set wifi2="TP-Link_OOH" | |
echo Check Internet Connection | |
ping -n 1 %ipcheck% | find "TTL" > nul | |
if %errorlevel% == 0 goto finish |
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
Set WshShell = CreateObject("WScript.Shell") | |
WshShell.Run chr(34) & ".\failover.bat" & Chr(34), 0 | |
Set WshShell = Nothing |
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
@echo off | |
set ipcheck="google.com" | |
set lan_gateway="192.168.2.1" | |
set wlan_gateway="192.168.1.1" | |
set wifi="TP-Link_OOH" | |
echo Check Internet Connection | |
ping -n 1 %ipcheck% | find "TTL" > nul | |
if %errorlevel% == 0 goto finish |
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
param( | |
[Parameter(Mandatory=$false)] | |
[Array]$NicehashWallet = ("3L32PcgfiBEsySLrJpJWYN2thjm2NNGBt2"), | |
[Parameter(Mandatory=$false)] | |
[Array]$AhashWallet, | |
[Parameter(Mandatory=$false)] | |
[Array]$PhiPhiWallet, | |
[Parameter(Mandatory=$false)] | |
[Array]$ZpoolWallet = ("3G1RpD6mumCf2Hgo6h78WSn41ALA1432c5"), | |
[Parameter(Mandatory=$false)] |
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
# แก้ตรงบริเวณที่ใส่ตัวเลข | |
param( | |
[Parameter(Mandatory=$false)] | |
[Array]$Algo = (8,14,32,24,20,30,31,33), | |
[Parameter(Mandatory=$false)] | |
[Array]$Power = (11.5,400,32,4.2,178,5.4,5.8,150), | |
# Hashrate for Neoscrypt MH/s, Lyra2REv2 MH/s, Lyra2Z MH/s, Equihash KSol/s, Ethash MH/s, CryptoNightV7 GH/s, CryptoNightHeavy GH/s | |
# 1 แก้แรงขุด ถ้าไม่มีใส่ 0 | |
[Parameter(Mandatory=$false)] |
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
<html> | |
<head> | |
</head> | |
<body> | |
<script type='text/javascript'> | |
function t() { | |
try { |
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
// ESP8266-12E ArduCAM Mini Camera Server | |
// | |
// This program demonstrates using an ArduCAM Mini 2MP camera with an ESP8266-12E module. | |
// An OV2640 2MP ArduCAM Mini was used with this program. | |
// | |
// The program has a web interface that will allow: | |
// - storing and viewing of captured jpg files | |
// - viewing live streamed video | |
// - changing the resolution | |
// |
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
for i in $(seq -w $1 $2) | |
do | |
num=$(printf %02d $i) | |
cd /vmfs/volumes/datastore1/CentOS7-Template | |
echo "Find the latest disk image" | |
lastDisk=`ls -t *.vmdk | grep -v sesparse | head -1` | |
echo -e $lastDisk | |
cd /vmfs/volumes/datastore1 | |
mkdir -p CentOS7-$num | |
echo -e "Creating disk for CentOS7-$num" |
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
for i in $(seq -w $1 $2) | |
do | |
num=$(printf %02d $i) | |
VMID=`vim-cmd vmsvc/getallvms |grep CentOS7-$num | cut -f1 -d' '` | |
vim-cmd vmsvc/power.on $VMID | |
done |
OlderNewer