Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/core'
tap 'homebrew/dupes'
brew 'arp-scan'
brew 'libnet'
brew 'arping'
brew 'bash-completion'
brew 'cheat'
brew 'curl', args: ['with-openssl']
@pythoninthegrass
pythoninthegrass / dscl_create_user
Created May 4, 2017 18:35
create user on mac os x with dscl command
# for pair programming setup a user on your machine
#INPUT
USERNAME="tmuxpair"
# COMPUTE
LATEST_ID=$(dscl . -list /Users UniqueID | awk '{print $2}' | sort -ug | tail -1)
USER_ID=$((LATEST_ID+1))
# CREATE with sudo
@pythoninthegrass
pythoninthegrass / dscl_create_user
Last active May 11, 2017 16:46
create user on mac os x with dscl command
#!/usr/bin/env bash
# SOURCES:
# https://gist.github.com/rubytester/7330557
# http://stackoverflow.com/a/1923893
# Exit upon failed command
# set -e
@pythoninthegrass
pythoninthegrass / cloudSettings
Last active October 24, 2021 05:46
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-24T05:46:51.840Z","extensionVersion":"v3.4.3"}
@pythoninthegrass
pythoninthegrass / driverautomationtool.ps1
Created June 26, 2017 18:15
driverautomationtool.ps1 - Modified to pass UseBasicParsing parameter. See: http://www.scconfigmgr.com/2017/03/01/driver-automation-tool/
<#
.SYNOPSIS
Driver Automation GUI Tool for Dell,HP,Lenovo,Acer and Microsoft systems
.DESCRIPTION
This script allows you to automate the process of keeping your Dell, Lenovo
and HP drives packages up to date. The script reads the Dell, Lenovo and HP
SCCM driver pack site for models you have specified and then downloads
the corresponding latest driver packs and BIOS updates(Dell only).
.NOTES
FileName: DriverDownloadTool.ps1
@pythoninthegrass
pythoninthegrass / osx_sanity_check.sh
Last active September 12, 2020 15:17
Mac Setup
#!/usr/bin/env bash
# SOURCES:
# https://gist.github.com/DylanTackoor/7a04052cfc3a726d9af6f798875189fc
# https://github.com/timsutton/osx-vm-templates/blob/ce8df8a7468faa7c5312444ece1b977c1b2f77a4/scripts/xcode-cli-tools.sh
# https://github.com/mathiasbynens/dotfiles/blob/master/.macos
# Exit upon failed command
# set -e
@pythoninthegrass
pythoninthegrass / sysctl.conf
Last active July 24, 2017 01:35
Fedora 25 on Raspberry Pi 3. Combination of swappiness, vfs cache pressure, libreswan compatible settings for VPN (ipsec), and network tuning per http://www.nateware.com/linux-network-tuning-for-2013.html
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
@pythoninthegrass
pythoninthegrass / Dockerfile
Created August 2, 2017 05:58 — forked from renzok/Dockerfile
docker: mapping host uid and gid to user inisde container
FROM debian:jessie
ENV USER=boatswain USER_ID=1000 USER_GID=1000
# now creating user
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \
@pythoninthegrass
pythoninthegrass / .gitconfig
Last active May 2, 2020 18:20 — forked from VonC/.gitconfig
My global git config
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = first last
email = address
[github]
user = username
@pythoninthegrass
pythoninthegrass / Microsoft.PowerShell_profile.ps1
Last active August 11, 2017 16:28 — forked from cloudRoutine/Microsoft.PowerShell_profile.ps1
Powershell Profile for use with Cmder
<#
# ┌ ┐
# sources
# └ ┘
https://gist.github.com/cloudRoutine/87c17655405cd8b1eac7
https://gist.github.com/furzeface (not sure where profile.ps1 URL disappeared to)
#>
# If this script is throwing an error near a Unicode symbol try resaving the file as UTF-8 with BOM
$psmodules = ";~\Documents\WindowsPowerShell\Modules"