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
@chkilel
chkilel / meta-tags.md
Created October 15, 2023 09:30 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@chkilel
chkilel / fish_install.md
Created August 15, 2022 15:59 — forked from gagarine/fish_install.md
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1)

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager.

You can also download the fish app from their website. I do recomand using brew because update are easier.

Install Fish

// Concat two arrays of objects and keep unique values
// Values from arr1 will be kept if exist in arr2, comparison made on `key`
// object {key: 1, label: '..', ....}
const unique = [...arr1, ...arr2].filter(
(item, index, self) => self.findIndex((t) => t.key === item.key) === index
)
@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
@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 / 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
{"lastUpload":"2021-06-17T13:16:02.631Z","extensionVersion":"v3.4.3"}
@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)
@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 / 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