Skip to content

Instantly share code, notes, and snippets.

Kleo Bercero kbeflo

Block or report user

Report or block kbeflo

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
@kbeflo
kbeflo / nginx.conf
Created Jun 20, 2019 — forked from spikegrobstein/nginx.conf
nginx config for proxying requests for plex over a hostname-based virtualhost.
View nginx.conf
upstream plex-upstream {
# change plex-server.example.com:32400 to the hostname:port of your plex server.
# this can be "localhost:32400", for instance, if Plex is running on the same server as nginx.
server plex-server.example.com:32400;
}
server {
listen 80;
# server names for this server.
@kbeflo
kbeflo / autossh.service
Last active Jun 24, 2019 — forked from thomasfr/autossh.service
serveo.net systemd service for autossh
View autossh.service
# serveo.net systemd service for autossh
# Modify username to your username
# Connect to ssh server
# ssh -J serveo.net username@alias
[Unit]
Description=autossh service
After=network.target
[Service]
@kbeflo
kbeflo / 000-default.conf
Created Nov 5, 2018 — forked from deardooley/000-default.conf
Sample Apache virtual host to proxy subdomain to docker container
View 000-default.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www
ServerName docker.example.com
ErrorLog logs/docker.example.com_error.log
CustomLog logs/docker.example.com_access.log combined
ProxyPreserveHost On
ProxyRequests off
<Location />
@kbeflo
kbeflo / install_go_pi.sh
Last active Mar 19, 2019 — forked from rsandrade/install_go_pi.sh
Install Go Lang 1.11 on Raspberry Pi 3
View install_go_pi.sh
wget https://dl.google.com/go/go1.11.linux-armv6l.tar.gz
sudo tar -C /usr/local -xvf go1.11.linux-armv6l.tar.gz
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@kbeflo
kbeflo / gist:aeec984687cae882f4739f1563c06c58
Created Jul 24, 2018 — forked from Manu343726/gist:ca0ceb224ea789415387
Running ARM docker image with QEMU on x86_64 Arch Linux host
View gist:aeec984687cae882f4739f1563c06c58
# Install quemu, docker, etc
yaourt -S qemu qemu-user-static binfmt-support
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository.
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b")
# Enable ARM emulation
update-binfmts --enable qemu-arm
@kbeflo
kbeflo / Pi3_as_WiFi_AP_Bridge.md
Created Apr 22, 2018 — forked from umardx/Pi3_as_WiFi_AP_Bridge.md
Using a Raspberry Pi 3 as a Wifi access point and bridge
View Pi3_as_WiFi_AP_Bridge.md

The specificity of my setup, is that the Raspberry won’t be a router but a bridge. DHCP is thus delegated to the main ADSL router and all devices connected to the AP will appear on the same network than other devices. The instructions below are based on a fresh Raspbian lite install so that it can be reproduced easily.

Install the required packages :

$ sudo apt-get install -y bridge-utils hostapd

To create a bridge, we need to enable ip_forward in the kernel, for that, edit /etc/sysctl.conf and remove comment (#) from the following line :

@kbeflo
kbeflo / wav-mp3
Created Apr 19, 2018 — forked from championofblocks/wav-mp3
Command line bash to convert all wav to mp3
View wav-mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
@kbeflo
kbeflo / format.sh
Last active Apr 8, 2019
Format usb flash drive and mount as sdcard for the WiFi Pineapple Nano
View format.sh
#!/bin/bash
#2018 - Zylla - (adde88@gmail.com)
#Format usb flash drive as sdcard for the WiFi Pineapple Nano
#Source https://forums.hak5.org/topic/39096-mana-attack-for-the-pineapple/?do=findComment&comment=303054
#You can also manually partition your usb flash drive on your computer
[[ -f /tmp/usb_format.progress ]] && {
exit 0
}
@kbeflo
kbeflo / youtube-dl-m4a
Last active Mar 10, 2018
youtube-dl-m4a alias
View youtube-dl-m4a
# Usage
# youtube-dl-m4a <video URL>
alias youtube-dl-m4a='youtube-dl -f bestaudio -f m4a'
You can’t perform that action at this time.