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 /
Created May 20, 2020 — forked from operatino/
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
souhaiebtar /
Created May 19, 2020
[unpack/pack an appimage] how to unpack/pack an appimage #appimage #linux

./Cacher-2.25.7.AppImage --appimage-extract normally there should be a squashfs-root folder cd squashfs-root/usr/share/icons/hicolor/512x512/apps/

./your.AppImage --appimage-extract However, mount does

mkdir /tmp/mountpoint

View Mounting VirtualBox shared folders on Ubuntu Server 16.04

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)


  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
souhaiebtar /
Last active May 18, 2020
[run w3af on ubuntu 1804] how to install dependency used by w3af for ubuntu 1804 #w3af #ubuntu
sudo su -
echo 'deb xenial main universe' >> /etc/apt/sources.list
sudo chown -R `whoami`:`whoami` /usr/local/lib /usr/local/bin

sudo apt-get update

sudo apt-get -y install git python-pip npm libxml2-dev libxslt-dev python-dev python-gtk2-dev python-webkit libffi-dev graphviz libsqlite3-dev libxslt1-dev libyaml-dev libssl1.0-dev python-gtksourceview2 python-gtk2 libxml2-dev python-lxml
souhaiebtar /
Last active May 14, 2020
[install jibri on ubuntu 1804] install jibri on ubuntu 1804 #jibri #jitsi

install requirements:

sudo apt-get install -y linux-image-extra-virtual

run: echo "snd-aloop" >> /etc/modules modprobe snd-aloop

souhaiebtar /
Last active May 13, 2020
[encrypt file including header] encrypt file including the header using 7zip #7zip

for mac you only need to use brew install p7zip 7z a -mhe=on -ppassword "../cv.7z"

same command on windows need to install 7z command line 7z.exe a -mhe=on -pPassword "..\sot.7z"

on ubuntu install p7zip (recommanded p7zip-full & p7zip-rar)

souhaiebtar /
Created May 13, 2020
[nginx config and default path] #nginx #ssl #letsencrypt

nginx default config file path /etc/nginx/nginx.conf

souhaiebtar / .vimrc
Created May 9, 2020
[change between tab and space as indent] config for vim #vim #vimrc
View .vimrc
set tabstop=2 " Size of a hard tabstop (ts).
set shiftwidth=2 " Size of an indentation (sw).
set expandtab " Always uses spaces instead of tab characters (et).
set softtabstop=0 " Number of spaces a <Tab> counts for. When 0, featuer is off (sts).
set autoindent " Copy indent from current line when starting a new line.
set smarttab " Inserts blanks on a <Tab> key (as per sw, ts and sts).
set number " show number
souhaiebtar /
Last active May 24, 2020
[] some regex to use with different software and language #regex #vscode
  • list all string that have estimate_ that is not followed by request
  • list all string that start log_message, even it's precedded with space character or tab character
^[\t ]*log_message
souhaiebtar / pi_blocklist_porn_top1m.list
Last active Mar 28, 2020
[pihole porn blocklist] list of the first 1m porn site visited (data from alexa) to be blocked #pihole #linux
View pi_blocklist_porn_top1m.list
You can’t perform that action at this time.