These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
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
<?php | |
/** | |
* git clone https://github.com/bllohar/php-jwt-class-with-RSA-support.git | |
*/ | |
include 'php-jwt-class-with-RSA-support/src/JWToken.php'; | |
/** | |
* usage : | |
* php generate-jwt.php payload-in-base64 path/to/public-key | |
*/ |
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 | |
# This is a skeleton of a bash daemon. To use for yourself, just set the | |
# daemonName variable and then enter in the commands to run in the doCommands | |
# function. Modify the variables just below to fit your preference. | |
daemonName="DAEMON-NAME" | |
pidDir="." | |
pidFile="$pidDir/$daemonName.pid" |
I hereby claim:
- I am netcode on github.
- I am eslam (https://keybase.io/eslam) on keybase.
- I have a public key whose fingerprint is 00D5 F81B 42FE 2925 6F1D FE3F 0F73 384C B18D B3AF
To claim this, I am signing this object:
#Drop all collections in MongoDB
go to mongo commandline and run the following two commands
use dbName
var x=db.getCollectionNames();for(var i in x){ db[x[i]].drop(); }
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
<?php | |
function fnEncrypt($sValue, $sSecretKey) | |
{ | |
return rtrim( | |
base64_encode( | |
mcrypt_encrypt( | |
MCRYPT_RIJNDAEL_256, | |
$sSecretKey, $sValue, | |
MCRYPT_MODE_ECB, | |
mcrypt_create_iv( |
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 | |
NOWX="$(date +'%m-%d-%y.%I-%M-%S')" | |
FILE="mywebsite.$NOWX.tar.gz" | |
echo "Starting Backup" | |
echo "==========================" | |
tar -zcvf backups/$FILE mywebsite/ | |
echo "==========================" | |
echo "Done backup" |
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
#add this line in crontab -e with root privilages | |
@reboot /var/www/fixmongo.sh |