Skip to content

Instantly share code, notes, and snippets.

View chkilel's full-sized avatar
🌎
... Coding awesome stuff

Adil Chehabi chkilel

🌎
... Coding awesome stuff
View GitHub Profile
Font=Powerline Consolas
ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47
Black=7,54,66
BoldBlack=0,43,54
Red=220,50,47
BoldRed=203,75,22
Green=133,153,0
BoldGreen=88,110,117
@chkilel
chkilel / keybase.md
Last active August 3, 2019 22:16
Keybase proof

Keybase proof

I hereby claim:

  • I am chkilel on github.
  • I am chehabi (https://keybase.io/chehabi) on keybase.
  • I have a public key ASBaZ3k2upADcGNx8OYde-jR1Rquhzd8FF5Zzx88B8zjfAo

To claim this, I am signing this object:

@chkilel
chkilel / gist_to_github_repo.md
Created August 3, 2019 22:48 — forked from ishu3101/gist_to_github_repo.md
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@chkilel
chkilel / .gitignore
Last active November 21, 2020 13:52
**Lando** init file to Bootstrap an "OctoberCMS" local development environment with "OFFLINE-GmbH/oc-bootstrapper"
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@chkilel
chkilel / php.ini
Created April 30, 2020 15:13 — forked from tomasfejfar/php.ini
Settings to copy to your php.ini to make debugger work. It lists many unnecessary values just in case they were overridden before.
; path to your php_xdebug extension file
; download from https://xdebug.org/wizard.php
zend_extension="c:\xampp-php7\php\ext\php_xdebug-2.4.0-7.0-vc14.dll"
; disables profiler globally
xdebug.profiler_enable = 0
; allows enabling it selectively with request parameter "XDEBUG_PROFILE"
xdebug.profiler_enable_trigger = 1
; directory to output profiler files to
xdebug.profiler_output_dir = "C:\xampp-php7\tmp"
; profiler file name (with request uri and timestamp)
{"lastUpload":"2021-06-17T13:16:02.631Z","extensionVersion":"v3.4.3"}
@chkilel
chkilel / xdebug-mac.md
Created August 12, 2021 12:05 — forked from ankurk91/xdebug-mac.md
php xDebug v3 on Ubuntu/Mac and phpStorm

🪲 Install and Configure xDebug v3 on MacOS for PhpStorm 🐘

  • Assuming that you have already installed php and apache via Homebrew

  • Install xDebug php extension

pecl channel-update pecl.php.net
pecl clear-cache

pecl install xdebug
@chkilel
chkilel / pass-slots.md
Created December 28, 2021 22:16 — forked from loilo/pass-slots.md
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@chkilel
chkilel / add-p.md
Created February 3, 2022 14:28 — forked from mattlewissf/add-p.md
Lightning Talk: Git add -p

git add -p is your friend

git add -p is basically "git add partial (or patch)"

Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.

It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:

from the command line, either use

  • git add -p