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 / 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 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 {
listen 80;
# server names for this server.
kbeflo / autossh.service
Last active Jun 24, 2019 — forked from thomasfr/autossh.service systemd service for autossh
View autossh.service
# systemd service for autossh
# Modify username to your username
# Connect to ssh server
# ssh -J username@alias
Description=autossh service
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>
DocumentRoot /var/www
ErrorLog logs/docker.example.com_error.log
CustomLog logs/docker.example.com_access.log combined
ProxyPreserveHost On
ProxyRequests off
<Location />
kbeflo /
Last active Mar 19, 2019 — forked from rsandrade/
Install Go Lang 1.11 on Raspberry Pi 3
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
source ~/.bashrc
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 /
Created Apr 22, 2018 — forked from umardx/
Using a Raspberry Pi 3 as a Wifi access point and bridge

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 / 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 /
Last active Nov 29, 2019
Format usb flash drive and mount as sdcard for the WiFi Pineapple Nano
#2018 - Zylla - (
#Format usb flash drive as sdcard for the WiFi Pineapple Nano
#You can also manually partition your usb flash drive on your computer
[[ -f /tmp/usb_format.progress ]] && {
exit 0
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.