Skip to content

Instantly share code, notes, and snippets.

@looper25
looper25 / foo.sh
Last active January 30, 2019 01:39 — forked from bookshelfdave/foo.sh
jqplay local
docker run -p 6655:80 jingweno/jqplay
@looper25
looper25 / livirt
Created January 20, 2019 13:40 — forked from sandlbn/livirt
How to compile libvirt on ubuntu
sudo apt-get install git build-essential xsltproc libxml-xpath-perl libyajl-dev libdevmapper-dev libpciaccess-dev libnl-dev systemtap-sdt-dev uuid-dev libtool autoconf pkg-config libxml2 libxml2-utils autopoint python-dev libnuma-dev gettext
git clone https://github.com/K1773R/numad.git
cd numad
make
sudo make install
cd ..; cd libvirt
git clone git://libvirt.org/libvirt.git
./autogen.sh
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-qemu=yes --with-dtrace --with-numad --with-storage-rbd --disable-nls
@looper25
looper25 / ngrok-selfhosting-setup.md
Created June 1, 2018 19:45 — forked from lyoshenka/ngrok-selfhosting-setup.md
How to setup Ngrok with a self-signed SSL cert

Intro

The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.

DNS

Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.

Different Operating Systems

@looper25
looper25 / syncrepos.sh
Created October 13, 2015 14:44 — forked from brianredbeard/syncrepos.sh
Reposync - A better tool than mrepo. Use this to sync down all channels a RHEL system is subscribed to and turn them into locally exposed yum repositories.
#!/bin/bash
# This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools
# Brian "Red Beard" Harrington <[email protected]>
# To satisfy the pre-reqs for this script install the following two rpms:
# yum-utils
# createrepo
download_dir="/var/www/html/RHN"
/usr/bin/reposync --gpgcheck -m --download-metadata -l -p ${download_dir}/ >> /var/log/reposync.log 2>&1