Skip to content

Instantly share code, notes, and snippets.

View soykanozcelik's full-sized avatar
🎯
Focusing

Soykan OZCELIK soykanozcelik

🎯
Focusing
View GitHub Profile
@soykanozcelik
soykanozcelik / RemoveBinAndObjFolders.sh
Created July 8, 2026 20:56
Remove Bin and Obj Folder
#!/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
@soykanozcelik
soykanozcelik / macOSCacheCleaner.sh
Last active July 8, 2026 10:36
macOS Cache Cleaner
#!/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"
@soykanozcelik
soykanozcelik / PlainTextPasswordVsMd5HashedPasswordComparingWithSymbols.cs
Created September 6, 2022 14:38
PlainText Password Vs Md5Hashed Password Comparing With Symbols
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");
@soykanozcelik
soykanozcelik / PlainTextPasswordVsMd5HashedPasswordComparing.cs
Last active September 6, 2022 07:06
Plain Text Password Vs Md5 Hashed Password Comparing
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);