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
Created Apr 12, 2019
Deploy Laravel (voyager project)
View README.md
  1. create a new folder that contains every file (except public folder) in ~

  2. upload public folder (the content of folder) to public_html/

  3. install composer inside folder : curl -s https://getcomposer.org/installer | php

  4. create a new database & user

  5. modify .env with MYSQL info

View fest.css
/* Blue Theme by AdemKouki - 2019 */
@import url('https://fonts.googleapis.com/css?family=Cairo');
.theme--day .header-bar {
background-color: #0083ff;
}
.header-avatar, .info , .menu, #share_button{
display: none;
}
View festivalBizertetheme.css
/* Blue Theme by AdemKouki - 2019 */
@import url('https://fonts.googleapis.com/css?family=Cairo');
.theme--day .header-bar {
background-color: #0083ff;
}
.header-avatar, .info , .menu, #share_button{
display: none;
}
@Ademking
Ademking / README.md
Created Mar 31, 2019
Ionic 4: change SideMenu Background color
View README.md

Use this CSS

ion-menu {
  --ion-background-color: var(--ion-color-primary);
  --ion-text-color: var(--ion-color-primary-contrast);

  ion-toolbar {
    --background: var(--ion-color-primary);
  }
@Ademking
Ademking / README.md
Created Mar 15, 2019
Compress folders (and exclude some folders) using Winrar CLI
View README.md

To compress a folder using Winrar CLI

"%ProgramFiles%\WinRAR\Rar.exe" a -x*\FOLDER_TO_EXCLUDE "RESULT_NAME.rar" .\FOLDER_TO_INCLUDE

Example :

@ECHO off
SETLOCAL
@Ademking
Ademking / README.md
Created Feb 15, 2019
How to Import Google fonts with LESS
View README.md
@Ademking
Ademking / README.md
Created Feb 6, 2019
Add mongodb driver for XAMPP - Windows
View README.md
  1. Start XAMPP apache

  2. Open localhost

  3. Find your PHP version ? Architecture ? Thread Safety ?

  4. Open PECL

  5. Select driver version - PHP version - Thread Safety ...

@Ademking
Ademking / README.md
Created Feb 3, 2019
Angular - How to change CSS project to SCSS
View README.md
  1. run

ng config schematics.@schematics/angular:component.styleext scss

  1. in angular.json, change from (at two places)

"src/styles.css"

to

@Ademking
Ademking / README.md
Created Jan 23, 2019
How to restore deleted file(s) after git push -f
You can’t perform that action at this time.