Skip to content

Instantly share code, notes, and snippets.


Marllus Lustosa marlluslustosa

View GitHub Profile
marlluslustosa / .bash_profile
Created Jul 11, 2020 — forked from jonsuh/.bash_profile
Bash echo in color
View .bash_profile
# ----------------------------------
# Colors
# ----------------------------------
marlluslustosa / cloud_init.yaml
Created Jul 10, 2020 — forked from HighwayofLife/cloud_init.yaml
Install Docker via Cloud Init on Ubuntu VM
View cloud_init.yaml
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
# Enable ipv4 forwarding, required on CIS hardened machines
View Google Colab SSH
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc
! unzip -qq -n
#Setup sshd
marlluslustosa /
Created Dec 16, 2019 — forked from lene/
Using tor as SOCKS proxy with SOCAT
socat TCP-LISTEN:<localport> SOCKS4A:localhost:<host>:<remoteport>,socksport=9050
# for example, to ssh into via tor, do:
$ socat TCP-LISTEN:22222,socksport=9050 &
$ ssh localhost -p 22222

Keybase proof

I hereby claim:

  • I am marlluslustosa on github.
  • I am mlustosa ( on keybase.
  • I have a public key whose fingerprint is 2C59 28C8 4B1B E8FC D68B 8C46 BF23 47A4 E389 C83D

To claim this, I am signing this object:

marlluslustosa / h264-fedora-27-firefox59+
Last active May 4, 2018
Enable H.264 in Firefox on Fedora 25
View h264-fedora-27-firefox59+
# Enable H.264 in Firefox 59+ on Fedora 27
- Enable RPMFusion repositories following [these instructions](
- Run these commands:
su -c 'dnf install$(rpm -E %fedora).noarch.rpm$(rpm -E %fedora).noarch.rpm'
sudo dnf install ffmpeg-libs
sudo dnf install gstreamer1-libav gstreamer1-vaapi gstreamer1-plugins-{good,good-extras,ugly} -y
sudo dnf config-manager --set-enabled fedora-cisco-openh264
sudo dnf install gstreamer1-plugin-openh264 mozilla-openh264
View nginxdefault.conf
upstream tunnel {
upstream tunnel2 {
server {
listen 443;
marlluslustosa / SSS reverse "caseiro" (aka
Last active May 5, 2018 — forked from gdamjan/
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all.The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.
View SSS reverse "caseiro" (aka
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
You can’t perform that action at this time.