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 | |
# sudo crontab -e | |
# @reboot /home/dizcza/Programs/checkwifi.sh | |
# sudo update-rc.d cron defaults | |
/bin/sleep 30 | |
while true; do | |
/usr/bin/wget -T5 -q --spider google.com |
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 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
PHP_BUILD_BIN_PATH=/opt/php-7.1/bin | |
PHP_BUILD_PATH=/opt/php-7.1 | |
apt install -y autoconf | |
apt-get install pkg-config libmagickwand-dev -y |
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
// sample of using POCO's Thread | |
#include "Poco/Runnable.h" | |
#include "Poco/Thread.h" | |
#include <iostream> | |
using namespace std; | |
class Worker:public Poco::Runnable{ | |
public: |