Skip to content

Instantly share code, notes, and snippets.

View Sadicko's full-sized avatar
🎯
Focusing

SADICK ODAI Sadicko

🎯
Focusing
View GitHub Profile
@Sadicko
Sadicko / gist:369fe1d0c380aad49d3d1cbd03248e86
Created April 28, 2023 13:36 — forked from mohamednasser90/gist:c2844a98d5fe615459f15d76a4142a73
Microsoft office professional Plus 2016 product key
Microsoft office professional Plus 2016 product key
Mysoftwarekeys.com | Mysoftwarekeys.com | Mysoftwarekeys.com
NBCRJ-YJ94Q-T73WV-9PR4F-9W3VC
KNJPJ-YBFTR-42K6M-Y6FMX-BKM3P
QQ34F-N3THK-CWTFJ-HD66X-8QK7C
@Sadicko
Sadicko / how-to-set-phpmyadmin-password-on-xampp.md
Created October 25, 2022 12:36 — forked from lamngockhuong/how-to-set-phpmyadmin-password-on-xampp.md
[How to set phpmyadmin password on xampp] #phpmyadmin #xampp
  1. Goto "phpmyadmin" folder, find and open "config.inc.php" file
  2. Find the line: $cfg [‘Servers’] [$a] [‘auth_type’] = ‘config’; in “config.inc.php” file.
  3. Change the word $cfg [‘Servers’] [$a] [‘auth_type’] = ‘config’; to $cfg [‘Servers’] [$a] [‘auth_type’] = ‘cookie’; in “config.inc.php” file and Save the changes.
  4. Now open browser and type “localhost/phpmyadmin”. Enter username is “root“. password is null means empty. you don’t type anything leave blank and press GO button.
  5. Now you can see “change password” link. please click that link.
  6. Set your phpMyAdmin password and retype again and press GO button.

@Sadicko
Sadicko / gist:85e8732d61bf0097cef8b2be13ce572d
Last active May 27, 2021 11:42 — forked from PhilKershaw/gist:1389041
Simple code for executing commands on a remote Linux server via SSH in PHP
<?php
/**
* Simple code for executing commands on a remote Linux server via SSH in PHP
*
* @author Phil Kershaw (In collaboration with Philip Mott)
*
* Note: ssh2_connect requires libssh2-php which is a non-standard PHP lib.
* Debian: apt-get install libssh2-php
* Redhat: yum install libssh2-php ???? I've no idea for redhat, sorry.
*/
@Sadicko
Sadicko / index.html
Created March 1, 2021 16:09 — forked from arkamedus/index.html
Google maps search nearest location
<!doctype html>
<html lang="">
<head>
<style>
#map {
position:absolute;
height: 50%;
width: 100%;
}
@Sadicko
Sadicko / phonenumber_match.php
Created August 20, 2020 11:22 — forked from maaddae/phonenumbers.php
Trying out the preg_match php function to match Ghana numbers.
<?php
// Regex quick reference
/*******************************************************************************
[abc] A single character: a, b or c
[^abc] Any single character but a, b, or c
[a-z] Any single character in the range a-z
[a-zA-Z] Any single character in the range a-z or A-Z
^ Start of line
<!-- Modify this according to your requirement -->
<h3>
Redirecting to duckdev.com after <span id="countdown">10</span> seconds
</h3>
<!-- JavaScript part -->
<script type="text/javascript">
// Total seconds to wait
var seconds = 10;
@Sadicko
Sadicko / steps-to-follow.text
Last active March 26, 2020 11:04
Sending Emails using Laravel event and listeners
Step 1. Creating event and listener
There are two ways to creating event and listeners
First way:
1. Open "App\Providers\EventServiceProvider.php"
2. Inside the "protected $listen" array, add the following. Change the event name and listener to your deside name.
'App\Events\EmployerWelcomeMail' => [
'App\Listeners\SendEmployerWelcomeMail',
],
@Sadicko
Sadicko / EventServiceProvider.php
Last active February 24, 2020 15:01
Sending a welcome message after user verify his email using markdown in laravel
<!--App/Providers/EventServiceProvider.php -->
<?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
@Sadicko
Sadicko / momo-requesttopay.php
Last active October 28, 2019 15:40
Request to pay
require_once 'HTTP/Request2.php';
$request = new \Http_Request2('https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay');
$url = $request->getUrl();
$token = Collections::token(); //these is just a function that generate the token, it works fine
$profileKey = Details::profileKey(); //these is just a function that get the apiu key, it works fine
$x_reference = Gen_uuid::uuid(); //these is just a function that generate the uuid, it works fine
@Sadicko
Sadicko / account.php
Created September 29, 2019 07:47
validating user signup
<?php
//including the header
include 'header.php'
?>
<?php
//checking if all fields in the signup are empty
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if (strpos($url, 'error=empty') !== false) {
echo "Fill out all fields";