Skip to content

Instantly share code, notes, and snippets.

View phillipsj's full-sized avatar

Jamie Phillips phillipsj

View GitHub Profile
@phillipsj
phillipsj / lucky-install.sh
Last active March 2, 2019 19:24
Install Lucky Framework, assumes Crystal is already installed.
#! /bin/bash
# Setup Node Deps
sudo snap install node --channel=11/stable --classic -y
# Configure node to use home directory for npm modules
wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/master/npm-g-nosudo.sh | sh
# Install Yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
@phillipsj
phillipsj / configure-system.sh
Last active April 19, 2019 01:42
Tired of provisioning a system from scratch so I decided to make a script.
#! /bin/sh
# Prereqs
sudo add-apt-repository universe
sudo apt-get install -y apt-transport-https lsb-release software-properties-common dirmngr gnupg-agent ca-certificates curl
# Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
@phillipsj
phillipsj / node.json
Created August 6, 2019 23:14
Packer Troubleshooting
{
"variables": {
"client_id": "{{env `TF_VAR_clientid`}}",
"client_secret": "{{env `TF_VAR_clientsecret`}}",
"tenant_id": "{{env `TF_VAR_tenant_id`}}",
"subscription_id": "{{env `TF_VAR_subscription_id`}}"
},
"builders": [{
"type": "azure-arm",
@phillipsj
phillipsj / install.sh
Created August 17, 2019 17:39
Configrue Hyper-V enhanced session support for Pop!_OS
#!/bin/bash
#
# This script is for Pop!_OS 19.04 to download and install XRDP+XORGXRDP via
# source.
#
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run with root privileges' >&2
exit 1
#!/bin/bash
#
# This script is for Linux Mint XFCE to download and install XRDP+XORGXRDP via
# source.
#
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run with root privileges' >&2
exit 1
#! /usr/bin/env sh
# Install Snaps
sudo snap install hugo
sudo snap install kate
sudo snap install node --classic
sudo snap install postman
sudo snap install powershell --classic
sudo snap install storage-explorer
sudo snap install gitkraken
@phillipsj
phillipsj / sqlalchemy.sh
Last active August 20, 2020 12:51
Install SQLAlchemy
$ pip install --user sqlalchemy
Collecting sqlalchemy
Downloading SQLAlchemy-1.3.17-cp38-cp38-win_amd64.whl (1.2 MB)
|████████████████████████████████| 1.2 MB 1.3 MB/s
Installing collected packages: sqlalchemy
Successfully installed sqlalchemy-1.3.17
@phillipsj
phillipsj / pyodbc.sh
Created August 20, 2020 12:53
Install PyODBC
$ pip install --user pyodbc
Collecting pyodbc
Downloading pyodbc-4.0.30-cp38-cp38-win_amd64.whl (68 kB)
|████████████████████████████████| 68 kB 834 kB/s
Installing collected packages: pyodbc
Successfully installed pyodbc-4.0.30
@phillipsj
phillipsj / firstrepl.sh
Created August 20, 2020 12:54
First Python REPL
$ python
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
mssql+pyodbc://user:password@host:port/databasename?driver=ODBC+Driver+17+for+SQL+Server