Skip to content

Instantly share code, notes, and snippets.

View jhegge's full-sized avatar

Johnathan Hegge jhegge

  • ForgeRock
  • Austin, TX
View GitHub Profile
@jhegge
jhegge / # newt - 2016-06-16_09-35-41.txt
Created June 16, 2016 17:14
newt on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for newt on Mac OS X 10.11.5
Build date: 2016-06-16 09:35:41
@jhegge
jhegge / gist:ae9ad4097dbebf5fd41b888c460ed539
Created May 10, 2016 20:27
fix Ubuntu desktop sharing encryption
jhegge@jhegge-u16-zotac:~/Downloads$ gsettings get org.gnome.Vino require-encryption
true
jhegge@jhegge-u16-zotac:~/Downloads$ gsettings set org.gnome.Vino require-encryption false
jhegge@jhegge-u16-zotac:~/Downloads$ gsettings get org.gnome.Vino require-encryption
false
#!/bin/sh
UDEV_NET=/etc/udev/rules.d/70-persistent-net.rules
UDEV_GEN=/etc/udev/rules.d/75-persistent-net-generator.rules
# fix udev interface rename, may recur with VM config changes
if [ -f $UDEV_NET ]; then
rm $UDEV_NET
fi
touch $UDEV_GEN
@jhegge
jhegge / rpm-license-scrape.sh
Last active December 26, 2015 13:09
rpm license scraper
#!/usr/bin/env bash
rpm -qa --queryformat="%-35{NAME} %{LICENSE}\n"
@jhegge
jhegge / py27-venv-centos6.sh
Last active December 24, 2015 22:18
Python 2.7 venv on CentOS 6.4
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
tar xf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure --prefix=/usr/local
make && make altinstall
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
python2.7 ez_setup.py
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python2.7 get-pip.py
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs