Skip to content

Instantly share code, notes, and snippets.

View ososstar's full-sized avatar
🏠
Working from home

Osama Maher ososstar

🏠
Working from home
View GitHub Profile
@ososstar
ososstar / Service KMS
Created July 19, 2023 17:13 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
function isTheseGETParametersAvailable($params)
{
//traversing through all the parameters
foreach ($params as $param) {
//if the parameter is not available
if (!isset($_GET[$param])) {
//return false
return false;
}
}
$stmt->bind_param("ss", $username, $hashedpass);
$stmt->execute();
@ososstar
ososstar / build.gradle
Last active September 21, 2018 01:41
basic gradle build
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.android.quizbasicworldgeography"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
@ososstar
ososstar / solar_system_objects.sql
Created October 31, 2017 07:45 — forked from pamelafox/solar_system_objects.sql
solar_system_objects.sql
/*
Solar system objects
Adapted from: http://en.wikipedia.org/wiki/List_of_Solar_System_objects_by_size
Collected by: https://www.khanacademy.org/profile/patrick809/programs
*/
CREATE TABLE solar_system_objects(
body TEXT
, mean_radius NUMERIC /* km */
, mean_radius_rel NUMERIC /* relative to earth */
, volume NUMERIC /* 10^9 km^3 */