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 / 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:
@arbaouimehdi
arbaouimehdi / backup-github.sh
Created November 4, 2017 14:30 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@arbaouimehdi
arbaouimehdi / wordpress.nginx
Created October 27, 2017 11:13 — forked from LeCoupa/wordpress.nginx
WordPress - Nginx Configuration File (with SSL)
##
# @server studio
# @host hackisition.com
# @desc nginx host rules
# @author Julien Le Coupanec <julien@gentlenode.com>
##
# HTTP Server
server {
listen 80;