Skip to content

Instantly share code, notes, and snippets.

View scattershot-code's full-sized avatar
🦉
I may be slow to respond. In general.

Duncan scattershot-code

🦉
I may be slow to respond. In general.
View GitHub Profile
@scattershot-code
scattershot-code / usb.txt
Created July 25, 2020 09:55
Command line USB format OSX
diskutil list
// finds out the location of your USB
diskutil eraseDisk JHFS+ BackupMaster disk2
// Here the command diskutil eraseDisk does the erasing, format is expressed as JHFS+ which is the Mac OS Extended (Journaled) and disk is named BackupMaster and the actual target disk is defined by its identifier disk2.
@scattershot-code
scattershot-code / pyinstall.txt
Last active July 16, 2020 13:14
making .py files executable on OsX
pip install pyinstaller
python3.7 -O -m PyInstaller -F --windowed hangman-osx-0-1.py
ffi: https://pyinstaller.readthedocs.io/en/stable/usage.html
@scattershot-code
scattershot-code / gist:1853eec089163d501c228cf80e4978f4
Created February 10, 2020 12:47
Fixing wildcard subdomain in channel for WordPress Multisite
When you manually create a subdomain using Cpanel, it creates a new document root at the same level as your public_html folder.
Since WordPress Multisite needs to have all subdomains use the same document root, you have to change the Document Root for your subdomain to "public_html" without the quotation marks.
So if your multisite network is installed at mydomain.tld, and you manually add subdomain mysub.mydomain.tld via Cpanel, you have to then change the Document Root setting for mysub.mydomain.tld from "/mysub.mydomain.tld" to "public_html".
@scattershot-code
scattershot-code / remote.md
Created September 30, 2019 09:07 — forked from Arkham/remote.md
Remote, office not required

Remote, Office Not Required

The Time is Right for Remote Work

Why work doesn't happen at work

The office during the day has become the last place people want to be when then really want to get work done.

Offices have become interruption factories: it's just one interruption after

@scattershot-code
scattershot-code / drupal.txt
Created July 29, 2019 11:15
Temporary Drupal demo application (macOS)
mkdir drupal
cd drupal
curl -sSL https://www.drupal.org/download-latest/tar.gz | tar -xz --strip-components=1
php core/scripts/drupal quick-start demo_umami
@scattershot-code
scattershot-code / Contours for Maperitive
Created August 3, 2017 16:52
put in cache/rasters/etc...
http://www.filewatcher.com/m/N47E008.hgt.zip.1471733-0.html
@scattershot-code
scattershot-code / Perfect-Linux-Laptop-Setup.bash
Last active November 18, 2015 11:56
Notes and code for what my laptop needs
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Upgrade from last release
sudo do-release-upgrade
#install elementary tweaks
sudo apt-add-repository ppa:mpstark/elementary-tweaks-daily
sudo apt-get update
sudo apt-get install elementary-tweaks
@scattershot-code
scattershot-code / perfectelementary.bash
Created October 25, 2015 22:03
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'