Skip to content

Instantly share code, notes, and snippets.



Block or report user

Report or block souhaiebtar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
souhaiebtar /
Last active Sep 6, 2017
make portainer accessible using domain(in our case
├── portainer
│   └── docker-compose.yml
└── reverseProxy
    ├── docker-compose.yml
    └── vhost.d
souhaiebtar /
Last active Sep 24, 2017
install zprezto on ubuntu
sudo apt-get -y install git zsh
git clone --recursive "${ZDOTDIR:-$HOME}/.zprezto"
ln -s ~/.zprezto/runcoms/zlogin ~/.zlogin
ln -s ~/.zprezto/runcoms/zlogout ~/.zlogout
ln -s ~/.zprezto/runcoms/zpreztorc ~/.zpreztorc
View gist:be76884c517084f005ef1e8ba7cda44e
sudo add-apt-repository "deb [arch=amd64] \
$(lsb_release -cs) \
26 stable"
sudo apt-get update
sudo usermod -aG docker ${USER}
View .zpreztorc
# Sets Prezto options.
# Authors:
# Sorin Ionescu <>
# General
souhaiebtar / .vimrc
Last active Sep 25, 2017
my vim config file
View .vimrc
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
call plug#begin('~/.vim/plugged')
" Plugins go here
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'vim-syntastic/syntastic'
Plug 'nanotech/jellybeans.vim'
Plug 'Lokaltog/vim-powerline'
souhaiebtar / .zshrc
Last active Sep 25, 2017
my zshrc file with prezto sourcing and powerlevel9 config
View .zshrc
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
#will show the context in the tab title
case $TERM in
souhaiebtar /
Created Oct 25, 2017
install zsh git, than install zprezto and configure it, and change them to powerlevel9k, done on ubuntu
#!/usr/bin/env bash
#sudo sh $(whoami)
apt-get -y install git zsh
wget -O /usr/local/share/fonts/sourcecodepro.ttf
fc-cache -f -v
echo "Current user: $(whoami)"
souhaiebtar / applescript: fix tap to click on osx sierra
Last active Mar 25, 2018
System Preferences > Trackpad > Point & Click > "Tap to Click" is disabled even if the checkbox corresponding to it is checked, to fix it i created an apple script that enable it and if it's already enabled it than it unchecked and checked it again
View applescript: fix tap to click on osx sierra
tell application "System Preferences"
set current pane to pane ""
end tell
tell application "System Events"
tell process "System Preferences"
repeat until exists tab group 1 of window "Trackpad"
end repeat
View html: Image Optimization
<source media="(max-width: 799px)" srcset="dog-300w.jpg">
<source media="(min-width: 800px)" srcset="dog-800w.jpg">
<img src="dog-800w.jpg" alt="A very cute dog">
souhaiebtar / i2cdisplay_ wemos.ino
Created Jul 11, 2018
#arduino #esp8266 #wemosd1
View i2cdisplay_ wemos.ino
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Address,EN,RW , RS, D4,D5,D6,D7,BackLight,BL_Polarity
//LiquidCrystal_I2C lcd1(0x26, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
LiquidCrystal_I2C lcd2(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
void setup()
You can’t perform that action at this time.