Skip to content

Instantly share code, notes, and snippets.

View gbolo's full-sized avatar

George Bolo gbolo

View GitHub Profile
@ogazitt
ogazitt / auth.go
Created April 14, 2020 05:53
Auth0 PKCE flow for a CLI built in golang
package auth
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/url"
@kongkrit
kongkrit / 10-manjaro-zfs-grub.md
Last active April 8, 2024 14:56
Install Manjaro on ZFS root with systemd-boot or grub
@magisterquis
magisterquis / domainfront.go
Last active January 11, 2023 14:34
Domain fronting in Go
package main
import (
"crypto/tls"
"fmt"
"log"
"net/http"
"net/http/httputil"
)
@ahmedsajid
ahmedsajid / README.md
Last active April 16, 2020 15:37
Ansible version switcher

Ansible version switcher

Script which installs variety of Ansible versions and sets them up using virtualenv.

Loading ansible

source ./ansible_version 2.7.0

Mostly based on original script by @gbolo

@silveraid
silveraid / youtube_autodl.sh
Last active February 8, 2019 17:11
Simple tool to automate fetching videos on MacOSX from YouTube
#!/bin/bash
# Simple tool to automate fetching videos on MacOSX from YouTube
# Installing dependencies:
# pip install youtube-dl
# brew install libav
echo "Resetting clipboard ..."
echo "-" | pbcopy
@kontez
kontez / freeotp_backup.md
Created January 4, 2018 14:27 — forked from jleclanche/freeotp_backup.md
A guide to back up and recover 2FA tokens from FreeOTP (Android)

Backing up and recovering 2FA tokens from FreeOTP

Backing up FreeOTP

Using adb, create a backup of the app using the following command:

adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
@ahmedsajid
ahmedsajid / README.md
Last active March 14, 2019 01:02
Nginx Plex Config

Nginx config for Plex

Currently if Plex server is exposed on the internet and someone tries to access it, Plex forces you to login using plex id.

This nginx config tricks plex into thinking that request is coming from LAN.

Debian 9 + Dahdi 2.11 + libpri 1.6 + Wanpipe 7 + Asterisk 13

1. Installing pre-requisites

1.1. Installing dev packages

apt-get update
apt-get install -y build-essential flex bison libreadline-dev libssl-dev gettext libtiff-dev uuid-dev libjansson-dev libxml2-dev libsqlite3-dev doxygen libncurses-dev libtool automake autoconf linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common linux-kbuild-4.9 wget vim
@silveraid
silveraid / CentOS-Docker
Created October 27, 2017 12:09
Creating minimal CentOS docker image from scratch
# Create a folder for our new root structure
$ export centos_root='/centos_image/rootfs'
$ mkdir -p $centos_root
# initialize rpm database
$ rpm --root $centos_root --initdb
# download and install the centos-release package, it contains our repository sources
$ yum reinstall --downloadonly --downloaddir . centos-release
$ rpm --root $centos_root -ivh centos-release*.rpm
$ rpm --root $centos_root --import $centos_root/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# install yum without docs and install only the english language files during the process
@ravibhure
ravibhure / git_rebase.md
Last active April 3, 2024 08:38
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream