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 | |
| # Constrain the allowable path in which to execute the actions. | |
| # Assumes that your projects reside in ~/Projects | |
| constrainedPath="$HOME/Projects" | |
| if [ -z $1 ] ; then | |
| exit 1 | |
| elif [[ $1 != *$constrainedPath* ]]; then | |
| echo "Invalid path. The allowable path is constrained to $constrainedPath (and subdirectories) for safety" | |
| exit 1 |
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 | |
| # ---------------------------------------------- | |
| # macOS & IDE Temizlik Scripti (Soykan Özel - Parallels Safe) | |
| # ---------------------------------------------- | |
| # Renk tanımları | |
| GREEN="\033[0;32m" | |
| YELLOW="\033[1;33m" | |
| RED="\033[0;31m" |
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
| void Main() | |
| { | |
| var plainPwd = "Soykan123!"; | |
| var hashedPwd = "md5hashed Password"; //$P$BnObdpyslb9b/H3VSK1oMT6DdjxN2s. | |
| var computed = MD5Encode(plainPwd, hashedPwd); | |
| Console.WriteLine("Plain Text Password : " + plainPwd); | |
| Console.WriteLine("md5Hashed Password : " + computed); | |
| Console.WriteLine(hashedPwd.Equals(computed) == true ? "Match -> True" : "Match -> 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
| void Main() | |
| { | |
| //Password is user entered string, setting is user_pass value in wp database of wp_users row. | |
| //crypt_private return hash of password. So, if crypt_private returned value equals setting value, password is correct. | |
| //This works if you're using php5 and newer on server with wordpress. | |
| // codes improved from https://stackoverflow.com/users/11660685/ernest-rutherford | |
| var plainPwd = "Soykan123"; | |
| var hashedPwd = "$P$BMODD3B9zAMPi8lU9FC0CD8PqSGFfd1"; | |
| var t = SignIn(plainPwd,hashedPwd); |