Skip to content

Instantly share code, notes, and snippets.

View arbaouimehdi's full-sized avatar
🎯
focusing

Arbaoui Mehdi arbaouimehdi

🎯
focusing
View GitHub Profile
@arbaouimehdi
arbaouimehdi / multiple_ssh_setting.md
Last active June 21, 2019 23:41 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@arbaouimehdi
arbaouimehdi / gatsby-config.js
Last active June 17, 2019 14:50
Gatsby Source Wordpress Config
// In your gatsby-config.js
module.exports = {
plugins: [
/*
* Gatsby's data processing layer begins with “source”
* plugins. Here the site sources its data from Wordpress.
*/
{
resolve: "gatsby-source-wordpress",
options: {
@arbaouimehdi
arbaouimehdi / count-cars.php
Created October 9, 2018 15:04
Blind SQL Injection - Inference Technique
<?php
$user = 'root';
$password = 'root';
$db = 'SQL-Injection';
$host = 'localhost';
$port = 3306;
$link = mysql_connect(
"$host:$port",
@arbaouimehdi
arbaouimehdi / user-cars.php
Last active October 8, 2018 17:47
SQL Injection Example
<?php
$user = 'root';
$password = 'root';
$db = 'SQL-Injection';
$host = 'localhost';
$port = 3306;
$link = mysql_connect(
"$host:$port",
@arbaouimehdi
arbaouimehdi / types.graphql
Created September 26, 2018 11:32
Graphcool types
# The following types define the data model of the example service
# based on which the GraphQL API is generated
type User @model {
id: ID! @isUnique
name: String
dateOfBirth: DateTime
# Uncomment below - you can declare relations between models like this

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@arbaouimehdi
arbaouimehdi / gist:f8cc9402e89bdb91d242eac21d517198
Created July 6, 2018 21:18 — forked from olivierlacan/gist:4062929
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@arbaouimehdi
arbaouimehdi / .eslintrc.js
Created June 30, 2018 20:06 — forked from adrianhall/.eslintrc.js
A sample .eslintrc file
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true
@arbaouimehdi
arbaouimehdi / breadcrumbs-functions.php
Created December 26, 2017 12:33 — forked from tinotriste/breadcrumbs-functions.php
Wordpress: Breadcrumbs function
<?php
/*=============================================
= BREADCRUMBS =
=============================================*/
// to include in functions.php
function the_breadcrumb() {
$sep = ' > ';
@arbaouimehdi
arbaouimehdi / php.ini
Last active March 16, 2020 18:47
php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: