Skip to content

Instantly share code, notes, and snippets.

:octocat:
Focusing

souhaiebtar

:octocat:
Focusing
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
souhaiebtar / MySQL_5-7_macOS.md
Created May 20, 2020 — forked from operatino/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew
View MySQL_5-7_macOS.md

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, 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 https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@souhaiebtar
souhaiebtar / ReadMe.md
Created May 19, 2020
[unpack/pack an appimage] how to unpack/pack an appimage #appimage #linux
View ReadMe.md

./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 LTS.md

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)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
@souhaiebtar
souhaiebtar / ReadMe.md
Last active May 18, 2020
[run w3af on ubuntu 1804] how to install dependency used by w3af for ubuntu 1804 #w3af #ubuntu
View ReadMe.md
sudo su -
echo 'deb http://archive.ubuntu.com/ubuntu xenial main universe' >> /etc/apt/sources.list
exit
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
souhaiebtar / ReadMe.md
Last active May 14, 2020
[install jibri on ubuntu 1804] install jibri on ubuntu 1804 #jibri #jitsi
View ReadMe.md

install requirements:

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

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

@souhaiebtar
souhaiebtar / ReadMe.md
Last active May 13, 2020
[encrypt file including header] encrypt file including the header using 7zip #7zip
View ReadMe.md

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
souhaiebtar / nginx.md
Created May 13, 2020
[nginx config and default path] #nginx #ssl #letsencrypt
View nginx.md

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

@souhaiebtar
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
souhaiebtar / regex_list.md
Last active May 24, 2020
[regex_list.md] some regex to use with different software and language #regex #vscode
View regex_list.md
  • list all string that have estimate_ that is not followed by request
estimate_((?!request))
  • list all string that start log_message, even it's precedded with space character or tab character
^[\t ]*log_message
@souhaiebtar
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
livejasmin.com
bongacams.com
chaturbate.com
pornhub.com
xvideos.com
xhamster.com
xnxx.com
pornhubpremium.com
51.la
youporn.com
You can’t perform that action at this time.