This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Trevor Sullivan <[email protected]> | |
# Install pip3 package manager for Python 3.x | |
sudo apt install python3-pip --yes | |
# Upgrade pip3 | |
sudo -H pip3 install --upgrade pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Trevor Sullivan | |
# [email protected] | |
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"StartAt": "HelloWorld", | |
"States": { | |
"HelloWorld": { | |
"Type": "Pass", | |
"Result": "Hello World!", | |
"Next": "ITSupport" | |
}, | |
"ITSupport": { | |
"Type": "Parallel", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"Abarth", | |
"Alfa Romeo", | |
"Aston Martin", | |
"Audi", | |
"Bentley", | |
"BMW", | |
"Bugatti", | |
"Cadillac", | |
"Chevrolet", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 = @' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# 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) # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/windowsservercore | |
MAINTAINER Trevor Sullivan <[email protected]> | |
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |