Skip to content

Instantly share code, notes, and snippets.

🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
Block or report user

Report or block Ademking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ademking
Ademking / README.md
Created May 28, 2019
Laravel How to use Auto Increment with MongoDB (jenssegers)
View README.md
  1. In your model, add these methods :
    public function nextid()
    {
        // ref is the counter - change it to whatever you want to increment
        $this->ref = self::getID();
    }

    public static function bootUseAutoIncrementID()
@Ademking
Ademking / readme.md
Last active Nov 5, 2019
💚 Android : How to record events and play them using ADB SHELL
View readme.md

1) Know the event name of touchpad :

Run :

adb shell getevent -pl

Search for : "ABS_MT_TRACKING_ID" - example :

@Ademking
Ademking / app.js
Created Nov 4, 2019
Remove duplicates from Array
View app.js
// Helper function - remove duplicates from Array
function uniq(a) {
var seen = {};
return a.filter(function(item) {
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
});
}
@Ademking
Ademking / README.md
Last active Oct 23, 2019
Windows 10 - Remove Garbage apps
View README.md

(UPDATE): Remove Bloatware using "Windows10Debloater" [with GUI]

  1. Run Powershell (as admin)

  2. Copy/paste

 iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat')) 
@Ademking
Ademking / readme.md
Last active Sep 22, 2019
💚 Android : Send SMS through ADB
View readme.md

(Android 5)

Run :

adb shell service call isms 9 s16 "com.android.mms" s16 "123456789" s16 "null" s16 "MESSAGEBODY" s16 "null" s16 "null"

The method is :

View README.md
function create_UUID() {
		var dt = new Date().getTime();
		var uuid = 'xxyxxxxxxyxxxxxyxxxx'.replace(/[xy]/g, function(c) {
			var r = (dt + Math.random() * 16) % 16 | 0;
			dt = Math.floor(dt / 16);
			return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
		});
		return uuid;
	}
@Ademking
Ademking / README.md
Last active Aug 30, 2019
Facebook api links
View README.md
1: Count the number of sent messages
https://graph.facebook.com/me/threads?limit=50&access_token=xxxxxxxxxxx

2: Delete the message
https://graph.facebook.com/id_tu_api_dem_tin_nhan?access_token=&method=delete

3: Get ds all your friends
https://graph.facebook.com/fql?q=SELECT+uid,+name,+friend_count,+subscriber_count+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())++ORDER+BY+rand()+LIMIT+5000&access_token=
@Ademking
Ademking / README.md
Created Jul 26, 2019
Flutter: upgrade the version code for play store (Fix)
View README.md
@Ademking
Ademking / nlp.js
Created Jul 16, 2019
NLP.js for browser
View nlp.js
This file has been truncated, but you can view the full file.
@Ademking
Ademking / fest.css
Created Jul 7, 2019
ChatTheme - Red Version (No avatar)
View fest.css
/* Red Theme by AdemKouki - 2019 */
@import url('https://fonts.googleapis.com/css?family=Cairo');
.theme--day .header-bar {
background-color: #c70404;
}
.header-avatar, .info , .menu, #share_button{
display: none;
}
You can’t perform that action at this time.