Skip to content

Instantly share code, notes, and snippets.

View realmiketalbot's full-sized avatar

Mike Talbot realmiketalbot

  • Emmons & Olivier Resources, Inc.
  • Fort Collins, CO
  • 08:29 (UTC -07:00)
View GitHub Profile
@realmiketalbot
realmiketalbot / install_tmux_non_root.sh
Created August 8, 2024 20:23
Install tmux and dependencies from source on a Linux system with no root access
#!/bin/bash
# Set the installation directory
INSTALL_DIR=$HOME/.local
# Install libevent from source
mkdir -p ~/libevent-src
cd ~/libevent-src
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar -xvf libevent-2.1.12-stable.tar.gz

Keybase proof

I hereby claim:

  • I am realmiketalbot on github.
  • I am realmiketalbot (https://keybase.io/realmiketalbot) on keybase.
  • I have a public key ASAkIqd7T-Zgj7HcfyvOnQ7NUIMpo4pn1ZHnPma2c34LBwo

To claim this, I am signing this object:

invisible(lapply(paste0('package:', names(sessionInfo()$otherPkgs)), detach, character.only=TRUE, unload=TRUE))
@realmiketalbot
realmiketalbot / gist:f9a6eb947be2c78f76375c5f143377fb
Created September 30, 2020 04:30
Initialize ppp for Dell SonicWALL NetExtender client
#!/bin/sh
# Dell SonicWALL NetExtender client initialization
# You should place the netExtender excutable under:
# /usr/sbin/netExtender
rm -f /etc/ppp/sslvpn.pid
rm -f /etc/ppp/sslvpn.pid2
rm -f /etc/ppp/sslvpn.clientip
rm -f /etc/ppp/ip-down.d/sslvpnroutecleanup
@realmiketalbot
realmiketalbot / nginx-unificontroller.conf
Created May 13, 2020 03:23 — forked from vidia/nginx-unificontroller.conf
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
@realmiketalbot
realmiketalbot / geoserver.conf
Created May 12, 2020 19:37
Configuration of geoserver.conf for https reverse proxy using nginx on Ubuntu 18.04
server {
listen 80;
listen [::]:80;
if ($scheme != "https"){
return 301 https://$host$request_uri;
}
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;

Keybase proof

I hereby claim:

  • I am realmiketalbot on github.
  • I am mtalbot (https://keybase.io/mtalbot) on keybase.
  • I have a public key ASBsLA3gPqc7R9NaAUqTAVjaUyc8Ca54GcNZXrVa8FcIqAo

To claim this, I am signing this object: