Skip to content

Instantly share code, notes, and snippets.

View Ademking's full-sized avatar
🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
View GitHub Profile
@Ademking
Ademking / README.md
Created May 13, 2020 07:14
Extract uncompiled, uncompressed SPA code from Webpack source maps.
@Ademking
Ademking / NOTE.md
Last active December 25, 2021 05:25
❤️ Laravel : laravel Socialite : https problem - working with localhost
@Ademking
Ademking / README.md
Last active November 19, 2021 14:08
Laravel - How to fix date problem with SQL Server
// path: serverSide\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\SqlServerGrammar.php

public function getDateFormat()
    {
        return 'Y-d-m H:i:s.v'; // use y-d-m or y-m-d
    }
@Ademking
Ademking / README.md
Last active October 13, 2021 07:52
SQL
internal
(66, 68, 69, 70, 71, 72, 73, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 102, 1099, 1101, 1106, 1111, 1112, 1114, 1115, 1119, 1121, 1122, 1123, 1124, 1125)

internal_ext_control
(1109, 1127, 1128, 1129, 1135, 1136, 1137)

inopinee
(77, 91, 92, 94, 95, 96, 1100, 1102, 1103, 1104, 1105, 1107, 1110, 1113, 1116, 1117, 1118, 1120, 1126)
@Ademking
Ademking / get_fb_id.js
Created September 5, 2021 18:15
Get facebook user id from url
let url = "https://www.facebook.com/AdemKouki.Officiel/"
fetch(`https://whopostedwhat.com/resolve.php?request=resolve&username=${url}`)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Site meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>SmartPhone Store</title>
<!-- CSS -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>SmartPhone Store</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600" rel="stylesheet" type="text/css">
@Ademking
Ademking / go_installer.sh
Last active May 4, 2021 02:57
Installer for VPS ( Go + Git + Curl + Other tools )
#!/bin/bash
export GOFILE="go1.16.3.linux-amd64.tar.gz"
cd ~
wget "https://golang.org/dl/$GOFILE"
sudo tar -C /usr/local -xzf "$GOFILE"
rm "$GOFILE"
echo '#go configuration' >> ~/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
@Ademking
Ademking / README.md
Created March 24, 2021 01:00
How to fix VirtualBox Error: Kernel driver not installed (rc=-1908) Ubuntu

To fix VirtualBox Error: Kernel driver not installed (rc=-1908), run:

sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
@Ademking
Ademking / README.md
Created March 8, 2021 11:07
Generate Jmeter HTML report from JMX file
jmeter -n -t /home/pc/path_to_jmx/file.jmx -l /home/pc/where_to_save_csv_log/file.csv -e -o /home/pc/where_to_save_html_report/