Skip to content

Instantly share code, notes, and snippets.

View arbaouimehdi's full-sized avatar
🎯
focusing

Arbaoui Mehdi arbaouimehdi

🎯
focusing
View GitHub Profile
{
"vars": {},
"css": [
"tables.less",
"forms.less",
"buttons.less",
"button-groups.less",
"input-groups.less",
"navs.less",
"navbar.less",
@arbaouimehdi
arbaouimehdi / php7.1.upgrade
Created April 15, 2017 04:04 — forked from andreas22/php7.1.upgrade
Upgrade to php 7.1 in Ubuntu
accepted
There is no official PHP 7.1 in the Ubuntu 16.04 repos.
If you want PHP 7.1, there is a version available in ppa:ondrej/php
You can install it like this:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
@arbaouimehdi
arbaouimehdi / secret_controller.rb
Created June 4, 2017 18:52 — forked from jwo/secret_controller.rb
Devise testing controllers - minitest / rails4
class SecretController < ApplicationController
before_filter :authenticate_user!
def show
end
end
@arbaouimehdi
arbaouimehdi / users.yml
Created June 4, 2017 18:59 — forked from henrydjacob/users.yml
devise fixtures users.yml
user1:
email: user1@mysite.com
encrypted_password: <%= User.new.send(:password_digest, "user123") %>
confirmed_at: <%= Time.now %>
// http://wordpress.stackexchange.com/questions/145984/change-an-li-class-name-in-a-wordpress-custom-menu-walker
<?php
class Main_Walker_Nav_Menu extends Walker_Nav_Menu {
function start_lvl( &$output, $depth = 0, $args = [] ) {
$indent = str_repeat( "\t", $depth );
switch ( $depth ) {
case 0:
$class = 'menu__list-sub';
@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;
@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 / 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 / .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 / 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.