Skip to content

Instantly share code, notes, and snippets.

View cjerrington's full-sized avatar

Clayton Errington cjerrington

View GitHub Profile
@cjerrington
cjerrington / pyscript.py
Created October 6, 2019 15:23 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python
"""A simple python script template.
"""
from __future__ import print_function
import os
import sys
import argparse
@cjerrington
cjerrington / bash_profile
Last active April 7, 2017 16:13
My bash profile on MacOS
#add some color
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Clear the screen
alias clr=clear
alias cls=clear
alias backup=$HOME/Documents/Utils/backup.sh
@echo off
xcopy C:\folder\to\copy D:\Backup\ /D /E /C /H /R /Y /K
rem /D Copies files changed on or after the specified date.
rem /E Copies any subfolder, even if it is empty.
rem /C Continues copying even if errors occur.
rem /H Copies hidden and system files.
rem /R Overwrites read-only files.
rem /Y Overwrites existing files without prompting you.
rem /K Copies attributes. Typical xcopy commands reset read-only attributes.
@cjerrington
cjerrington / WindowsUpdate.au3
Created August 8, 2016 15:04
Windows Update across OS releases
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Clayton Errington
Script Function:
Run windows update across Windows 7, Windows 8, and Windows 10
#ce ----------------------------------------------------------------------------
@cjerrington
cjerrington / copyright.php
Last active August 29, 2015 14:16
Copyright code in PHP