Skip to content

Instantly share code, notes, and snippets.

View ronlipke's full-sized avatar
🚀
ManagerOps

Ron Lipke ronlipke

🚀
ManagerOps
View GitHub Profile
@ronlipke
ronlipke / gist:483de18a412756ed12042a61f9dc81bb
Created December 10, 2019 06:08
Hyper key config for karabiner
{
"rules": [
{
"manipulators": [
{
"description": "Change caps_lock to command+control+option+shift or escape if alone.",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
@ronlipke
ronlipke / migraine_dates.json
Last active November 5, 2018 00:27
Parse list of dates for largest number of days between two consecutive dates
[
"1/9/2016",
"1/10/2016",
"1/12/2016",
"1/14/2016",
"1/15/2016",
"1/16/2016",
"1/26/2016",
"1/27/2016",
"2/2/2016",
#!/usr/local/bin/python2.7
import requests
import urllib3
# for bad/untrusted/self-signed certs (gross)
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
url = 'https://some.url.com'
basicAuth = ('USERNAME', 'PASSWORD')
package main
import (
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
)
#!/bin/bash
# Assumes you already have the dmg downloaded in ~/Downloads
case "$1" in
old)
echo "Installing 0.15.16-1"
CHEFDK_VERSION="0.15.16-1"
;;
new)

Keybase proof

I hereby claim:

  • I am ronlipke on github.
  • I am rlipke (https://keybase.io/rlipke) on keybase.
  • I have a public key whose fingerprint is 62F8 C307 6349 60D5 D29D E297 63AC FA56 14B0 27D8

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ronlipke on github.
  • I am rlipke (https://keybase.io/rlipke) on keybase.
  • I have a public key whose fingerprint is 4C00 93C3 1562 8EEC 0ECD 66A6 3D4B 07AC 971B 5853

To claim this, I am signing this object:

@ronlipke
ronlipke / .bash_profile
Created November 2, 2016 04:45 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@ronlipke
ronlipke / parse-tcpdump-udp-port-53.php
Created August 10, 2016 20:20 — forked from jtai/parse-tcpdump-udp-port-53.php
Quick and dirty script to parse output of /usr/sbin/tcpdump -vvv -s 0 -l port 53
<?php
// quick and dirty argument parsing
foreach ($argv as $arg) {
if ($arg == '-f') {
define('FOLLOW', true);
}
if ($arg == '-h') {
define('HISTOGRAM', true);
}
@ronlipke
ronlipke / psc.sh
Last active August 29, 2015 14:06
#!/usr/bin/env bash
CMD="ps axo pid,ppid,user,command"
PROCESS=$1
if [[ -z $PROCESS ]]; then
$CMD
else
$CMD | grep $PROCESS | grep -v "grep $PROCESS" | grep -v "bin/psc"
fi