Skip to content

Instantly share code, notes, and snippets.

View kipyegonmark's full-sized avatar

Mark Koskei kipyegonmark

View GitHub Profile
@kipyegonmark
kipyegonmark / OSX.txt
Last active January 31, 2022 15:22
Useful Mac OSX scripts
# Updating from an Internal Software Update Server
# ------------------------------------------------
# Default Settings:
# blank
# Software updates are downloaded from one of the following software update
# servers hosted by Apple:
# swscan.apple.com:80
# swquery.apple.com:80
# swcdn.apple.com:80
# Suggested Settings:
@kipyegonmark
kipyegonmark / PS-trust-relationship-fix.md
Created January 31, 2016 10:37
Powershell fix for trust relationship error on Windows workstation

Reset-ComputerMachinePassword [-Credential ] [-Server ]

@kipyegonmark
kipyegonmark / gist:9af52c049ee03884d8f3
Created December 18, 2015 12:25
Mac OS copy ssh public key to remote server
cat ~/.ssh/id_rsa.pub | ssh [email protected] "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"
@kipyegonmark
kipyegonmark / gist:3c4a272790c22044f596
Created December 18, 2015 12:01
View/Hide hidden files on Mac OS
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app
defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app
@kipyegonmark
kipyegonmark / gist:846efb1fb58b2cd67956
Created April 30, 2015 09:12
wget command to scrape pdf from a website
wget -A pdf -m -p -E -k -K -np http://site/path/
-nd flag will download to a single directory
https://www.gnu.org/software/wget/manual/wget.html