Skip to content

Instantly share code, notes, and snippets.

View cjerrington's full-sized avatar

Clayton Errington cjerrington

View GitHub Profile
@cjerrington
cjerrington / Install-NotepadPlusPlus.ps1
Last active March 15, 2024 14:29 — forked from dansmith65/Install-NotepadPlusPlus.ps1
Install latest version of Nodepad++ via PowerShell
#Requires –Version 3
# Set TLS support for Powershell and parse the JSON request
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$npp = Invoke-WebRequest -UseBasicParsing 'https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/releases/latest' | ConvertFrom-Json
# Get Hashes for Checksums
Invoke-WebRequest -UseBasicParsing $npp.assets[0].browser_download_url -OutFile $npp.assets[0].name
# Get the download URL from the JSON object per 32/64 bit
@cjerrington
cjerrington / pyscript.py
Created October 6, 2019 15:31 — forked from n8henrie/pyscript.py
Python script template
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""pyscript.py
A simple python script template.
http://ajminich.com/2013/08/01/10-things-i-wish-every-python-script-did/
"""
import argparse
@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