Skip to content

Instantly share code, notes, and snippets.

View Afnisse's full-sized avatar

Yassine Afnisse Afnisse

View GitHub Profile
KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window

Hercules - the Mainframe Emulator

Hercules is an open source software implementation of the mainframe System/370 and ESA/390 architectures, in addition to the new 64-bit z/Architecture.

Website: http://www.hercules-390.org/

My system info:

uname -a
Darwin ejlp-macbook 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
@Afnisse
Afnisse / permissions.sh
Created January 31, 2019 04:15
Permissions for Mautic
cd /var/www/mautic
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod -R g+w app/cache/
chmod -R g+w app/logs/
chmod -R g+w app/config/
chmod -R g+w media/files/
chmod -R g+w media/images/
chmod -R g+w translations/
chown -R $USER:www-data .
@Afnisse
Afnisse / professions.txt
Created October 7, 2018 18:37 — forked from mbejda/professions.txt
Compiled list of professions.
Profession
Professors
Teachers
Actors
Clergy
Musicians
Philosophers
Visual Artists
Writers
Audiologists
@Afnisse
Afnisse / tor-openvpn.sh
Created September 28, 2018 12:17 — forked from kremalicious/tor-openvpn.sh
Install and configure Tor as proxy for all OpenVPN server traffic
# what we want:
# client -> OpenVPN -> Tor -> Internet
# Install & configure OpenVPN
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04
# assumed OpenVPN configuration
# 10.8.0.1/24-Subnet
# tun0-Interface
@Afnisse
Afnisse / tmux-cheatsheet.markdown
Created November 17, 2017 23:34 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Afnisse
Afnisse / stream.php
Created October 6, 2017 14:49 — forked from srijansrivastava/stream.php
I created this small script to read a huge 3GB CSV file as a stream and insert into DB
<?php
$conn = mysqli_connect('x.x.x.x', 'username', 'password', 'db_name');
if (!$conn) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully' ;
echo "\n";