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
<script> | |
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { | |
window.location = "CHANGE THIS TO MOBILE SITE"; | |
} | |
</script> | |
<script>// <![CDATA[ | |
if (screen.width <= 800) { | |
document.location = "CHANGE THIS TO MOBILE SITE"; | |
} |
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
SQL ERROR [ mysql4 ] | |
Table 'jda_phpbb.MCHAT_CONFIG_TABLE' doesn't exist [1146] | |
SQL | |
SELECT * FROM MCHAT_CONFIG_TABLE | |
BACKTRACE |
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
@echo off | |
:loop | |
start ucs.exe ... | |
timeout /t 43200 >null | |
taskkill /f /im ucs.exe >nul | |
goto loop |
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
@echo off | |
tasklist /FI "IMAGENAME eq ucs.exe" | findstr "ucs.exe" >nul | |
if %ERRORLEVEL% == 1 goto runcode1 | |
goto runcode2 | |
:runcode1 | |
start /min ucs.exe ... | |
timeout /t 14400 | |
taskkill /f /im ucs.exe | |
timeout /t 1 |
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
#!/bin/sh | |
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT --to-source 192.168.X.X |
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
client | |
dev tun | |
proto udp | |
remote <YOUR PUBLIC IP ADDRESS HERE> 1194 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
mute-replay-warnings | |
ns-cert-type server |
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
#!/bin/bash | |
web_service='nginx' | |
config_file="/opt/letsencrypt/settings.ini" | |
le_path='/opt/letsencrypt' | |
exp_limit=30; | |
if [ ! -f $config_file ]; then | |
echo "[ERROR] config file does not exist: $config_file" |
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
local 192.168.2.0 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS | |
dev tun | |
proto udp #Some people prefer to use tcp. Don't change it if you don't know. | |
port 1194 | |
ca /etc/openvpn/easy-rsa/keys/ca.crt | |
cert /etc/openvpn/easy-rsa/keys/Pi.crt # SWAP WITH YOUR CRT NAME | |
key /etc/openvpn/easy-rsa/keys/Pi.key # SWAP WITH YOUR KEY NAME | |
dh /etc/openvpn/easy-rsa/keys/dh2048.pem | |
server 10.8.0.0 255.255.255.0 | |
# server and remote endpoints |
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
#cloud-config | |
package_update: true | |
packages: | |
- bind9 | |
manage-resolv-conf: true | |
resolv_conf: | |
nameservers: | |
- '127.0.0.1' | |
- '138.197.25.214' | |
- '185.121.177.177' |
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
================================================================== | |
https://keybase.io/jonaharagon | |
-------------------------------------------------------------------- | |
I hereby claim: | |
* I am an admin of https://triplebit.net | |
* I am jonaharagon (https://keybase.io/jonaharagon) on keybase. | |
* I have a public key ASCGcCNXNSy0Aoxd_aEmexnTpNnMWfnKVmjeadFr5anplwo |
OlderNewer