Skip to content

Instantly share code, notes, and snippets.

🍺
🥓

Trevor Sullivan pcgeek86

🍺
🥓
Block or report user

Report or block pcgeek86

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pcgeek86
pcgeek86 / gist:3842663d784f97c767d6ce57c1b2e41e
Last active Apr 28, 2019
WIP: Install Ultimaker Cura on ChromeOS v71 with Crostini (Linux apps) container support
View gist:3842663d784f97c767d6ce57c1b2e41e
# Trevor Sullivan
# trevor@trevorsullivan.net
# I want to install Ultimaker Cura on ChromeOS, under the Crostini container environment.
# Cura is distributed officially as the Linux AppImage format, not a Debian package.
# Crostini doesn't support AppImage as of December 2018, due to dependency on FUSE, which isn't supported.
# Crostini is compatible with Debian packages.
# There is an Ubuntu Personal Package Archive (PPA) with Debian packages for Cura.
# However, Crostini starts as a Debian Stretch environment.
# The Cura package is only available for Debian Buster.
@pcgeek86
pcgeek86 / install_go_pi.sh
Last active Feb 27, 2020 — forked from random-robbie/install_go_pi.sh
Install Go Lang on Raspberry Pi
View install_go_pi.sh
cd $HOME
FileName='go1.13.4.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@pcgeek86
pcgeek86 / AWSStepFunctions-UserOnboarding.json
Created Oct 17, 2018
Very basic AWS Step Functions example for user on-boarding workflow
View AWSStepFunctions-UserOnboarding.json
{
"StartAt": "HelloWorld",
"States": {
"HelloWorld": {
"Type": "Pass",
"Result": "Hello World!",
"Next": "ITSupport"
},
"ITSupport": {
"Type": "Parallel",
@pcgeek86
pcgeek86 / Car Manufacturers.json
Last active Dec 31, 2019
Plain-text list of major car manufacturers
View Car Manufacturers.json
[
"Abarth",
"Alfa Romeo",
"Aston Martin",
"Audi",
"Bentley",
"BMW",
"Bugatti",
"Cadillac",
"Chevrolet",
@pcgeek86
pcgeek86 / Update-AWSPowerShell-Module.ps1
Created Dec 21, 2017
Blog: Creates a launchd job that updates the AWS PowerShell .NET Core module on a daily basis.
View Update-AWSPowerShell-Module.ps1
<#
.Description
This PowerShell script will create and register a new launchd job that keeps the AWSPowerShell.NetCore module
up-to-date on your MacOS system.
If you receive an error upon registration, it's probably just because the service doesn't already exist.
This script tries to unload and reload the service, whether or not it exists, hence the error on initial run.
#>
$PListFile = @'
View PowerShell-AD-SCCM-Workstation-Cleanup-Script-Version-3.0.ps1
###############################################################################
# Author: Trevor Sullivan
#
# Date: October 28, 2009
#
# Lessons learned:
#
# 1. ADSI property names are lower case using DirectorySearcher or DirectoryEntry
# 2. Must explicitly cast 64-bit integers from AD
# 3. The Excel API is terrible (already knew that) #
@pcgeek86
pcgeek86 / Dockerfile
Created Oct 27, 2017
Install Python 3.6 and Boto3 package on Windows Server container
View Dockerfile
FROM microsoft/windowsservercore
MAINTAINER Trevor Sullivan <tsulli@amazon.com>
SHELL ["powershell", "-Command"]
ENV PYTHON_DOWNLOAD https://www.python.org/ftp/python/3.6.3/python-3.6.3-amd64.exe
ENV PYTHON_FILE python-3.6.3-amd64.exe
COPY Install-Boto3.py c:/Amazon/
@pcgeek86
pcgeek86 / existing code to git repo
Created Mar 23, 2017 — forked from zenideas/existing code to git repo
Adding existing source to remote git repo
View existing code to git repo
If you've got local source code you want to add to a new remote new git repository without 'cloning' the remote first, do the following (I often do this - you create your remote empty repository in bitbucket/github, then push up your source)
1. Create the remote repository, and get the URL such as git://github.com/youruser/somename.git
2. If your local GIT repo is already set up, skips steps 2 and 3
3. Locally, at the root directory of your source, git init
4. Locally, add and commit what you want in your initial repo (for everything,
git add .
@pcgeek86
pcgeek86 / ClusterHQ-FlockerHub-Demo.sh
Last active Nov 28, 2016
This Bash script is a simple end-to-end example of ClusterHQ Fli + FlockerHub.
View ClusterHQ-FlockerHub-Demo.sh
#!/bin/bash
### Visit http://ui.dev.voluminous.io/user-tokens to get a user token
### NOTE: This file should contain a function definition called 'fli'
source ~/.bash-fli
set -e
shopt -s expand_aliases
View gist:4a1b74f37eaecac58cf777820f0177c9
function Prompt {
<#
.Notes
Author: Trevor Sullivan
Website: https://trevorsullivan.net
Twitter: https://twitter.com/pcgeek86
#>
$ATAT = @'
____==========_______
_--____ | | "" " "| \
You can’t perform that action at this time.