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
| cd\Program Files\Microsoft Office\Office16 | |
| cd\Program Files (x86)\Microsoft Office\Office16 | |
| cscript OSPP.VBS /sethst:kms.digiboy.ir | |
| cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
| slmgr.vbs /ckms |
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
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'name'; | |
| $dbuser = 'user'; | |
| $dbpass = 'pass'; | |
| $dbhost = 'host'; | |
| $link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <settings> | |
| <servers><server url="http://speedtest.pronea.no/speedtest/upload.php" lat="69.6828" lon="18.9428" name="Tromso" country="Norway" countrycode="NO" sponsor="Pronea AS" sponsorurl="http://www.pronea.no/" id="1327" gid="0" url2="http://speedtest.pronea.no/speedtest/upload.php" bigsamples="1" /> | |
| <server url="http://speedtest.mmsn.ru/speedtest/upload.php" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="JSC M2C" sponsorurl="http://www.mmsn.ru" id="1521" gid="0" url2="http://speedtest.mmsn.ru/speedtest/upload.php" bigsamples="1" /> | |
| <server url="http://st1.teletoria.ru/speedtest/upload.php" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="ISP Teletoria" sponsorurl="http://www.teletoria.ru" id="2342" gid="0" url2="http://st1.teletoria.ru/speedtest/upload.php" bigsamples="1" /> | |
| <server url="http://speedtest.oltv.ru/speedtest/upload.php" lat="68.1500" lon="33.2833" nam |
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 | |
| # This script is based on https://unix.stackexchange.com/revisions/480191/9 . | |
| # The following changes proved to be necessary to make it work on CentOS 7: | |
| # * removed disk info (model, size) - not very useful, might not work in many cases. | |
| # * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base) | |
| # * escaping exclamation mark in sed command | |
| # * the ".fiomark.txt" is not auto-removed | |
| LOOPS=5 #How many times to run each test |
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/sh | |
| # ---- website-checker.sh ---- | |
| # Pings a list of websites using cURL to see if they are up and | |
| # there are no errors. If there are problems, we send an email using mailx | |
| # to let ourselves know about the problem. | |
| ################################################################################ | |
| # Recipient of the errors email | |
| admin_email=youremail@host.com |
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
| # Browser caching of static assets. | |
| location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$ { | |
| expires 7d; | |
| add_header Cache-Control "public, no-transform"; | |
| } | |
| # Media: images, icons, video, audio send expires headers | |
| location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$ { | |
| expires 1M; | |
| access_log off; |
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 | |
| # | |
| # This sets up Let's Encrypt SSL certificates and automatic renewal | |
| # using certbot: https://certbot.eff.org | |
| # | |
| # - Run this script as root. | |
| # - A webserver must be up and running. | |
| # | |
| # Certificate files are placed into subdirectories under | |
| # /etc/letsencrypt/live/*. |
To generate a self-signed cert, do the following:
openssl req -config 12factor.req -new -nodes -x509 -newkey rsa:2048 -sha256 -keyout 12factor.key -out 12factor.cert -days 3650
Where 12factor.req is:
[ req ]
default_bits = 2048
default_keyfile = 12factor.key
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
| ## prepare root password for apt (PSA: sudo the shit out of these or it will fail) ## | |
| #####sudo echo "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | sudo debconf-set-selections | |
| #####sudo echo "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | sudo debconf-set-selections | |
| #####sudo echo "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)" | sudo debconf-set-selections | |
| # echo "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | debconf-set-selections | |
| # echo "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | debconf-set-selections | |
| # sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | |
| # sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | |
| # sudo |
NewerOlder