Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / jamfpro-docker-compose.yml
Created March 19, 2020 01:48 — forked from brysontyrrell/jamfpro-docker-compose.yml
A Docker Compose file for launching Jamf Pro
version: "3"
services:
mysql:
image: "mysql:5.7"
networks:
- jamfnet
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "jamfsw03"
#!/usr/bin/env bash
# SOURCE:
# https://gist.github.com/pythoninthegrass/ca8074951cf32a6a064bda7e31b03d60
# activate verbose standard output (stdout)
set -v
# activate debugging (execution shown)
set -x
@pythoninthegrass
pythoninthegrass / install_chromedriver.sh
Last active March 11, 2020 00:57 — forked from natritmeyer/install_chromedriver.sh
Install chromedriver on fedora
#!/usr/bin/env bash
logged_in_user=$(logname)
cd "/home/$logged_in_user/Downloads"
url='https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip'
curl -LJO "$url"
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
sudo chown root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
#!/usr/bin/env bash
# SOURCE: https://gist.github.com/CraigLindsey/16ee404f132dbc38f7e83c30d108400b
# activate verbose standard output (stdout)
set -v
# activate debugging (execution shown)
set -x
# logs
@pythoninthegrass
pythoninthegrass / cache_example.py
Last active October 7, 2019 19:59 — forked from treuille/cache_example.py
This demonstrates the st.cache function
#!/usr/bin/env python3
# USAGE
"""
From @treuille:
pip install --upgrade streamlit
streamlit run https://gist.githubusercontent.com/pythoninthegrass/b75d39158f42722a9c25871f8aa4fd20/raw/2019640b6a9ff5da5ab6d5b11b3345ddc764b285/cache_example.py
"""
import streamlit as st
@pythoninthegrass
pythoninthegrass / jenkins-docker-compose.yml
Last active November 29, 2026 12:15 — forked from SWBSanjeewa/jenkins-docker-compose
Run jenkins master and slave using docker compose
# MASTER PRE-REQS
# Install docker, docker-compose
# mkdir -p ~/{jenkins,jnlp_slave}
# master
# docker run -d \
# -u root \
# --name=jenkins \
# -e TZ=America/Denver \
@pythoninthegrass
pythoninthegrass / profile.ps1
Created September 6, 2019 14:17
PowerShell profile via cmder (emacs readline needed for BASH keybindings.)
# Init Script for PowerShell
# Created as part of cmder project
# !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED
# !!! Use "%CMDER_ROOT%\config\user_profile.ps1" to add your own startup commands
# Compatibility with PS major versions <= 2
if(!$PSScriptRoot) {
$PSScriptRoot = Split-Path $Script:MyInvocation.MyCommand.Path
}
@pythoninthegrass
pythoninthegrass / centos_pi.sh
Last active September 4, 2019 20:13
Bootstrap most of the Raspberry Pi CentOS setup. Add to SD card after flashing OS, then SSH into box (sshd enabled by default.)
#!/usr/bin/env bash
# TODO:
# vars (e.g., su $loggedInUser -c 'commands')
# ansible: change root password, create non-root user, bash > yaml conversion
# find headless raspberry pi
# sudo nmap -sS -p 22 192.168.8.0/24 | grep -B5 'Raspberry Pi Foundation' | awk '/192.168.8/ {print $5}'
# enable ssh
@pythoninthegrass
pythoninthegrass / README.md
Last active May 22, 2020 16:01 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

<#
.SYNOPSIS
This script will install Windows Server Update Services (WSUS) in your lab
.NOTES
You need a Windows Server 2012 R2 for this script to work.
This script is part of a series to automate your lab on www.dominikbritz.com
#>
#Requires -Version 3