Skip to content

Instantly share code, notes, and snippets.

View AlexHunterCodes's full-sized avatar

Alex Hunter AlexHunterCodes

View GitHub Profile
@AlexHunterCodes
AlexHunterCodes / remoteContainers-c-drive.log
Created July 30, 2022 16:21
Unable to create devcontainer from local workspace on drives other than C:\
[2022-07-30T16:09:51.486Z] Remote-Containers 0.241.3 in VS Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a).
[2022-07-30T16:09:51.486Z] Start: Resolving Remote
[2022-07-30T16:09:51.499Z] Setting up container for folder or workspace: c:\Users\andre\src\microsoft\vscode-dev-containers
[2022-07-30T16:09:51.504Z] Start: Check Docker is running
[2022-07-30T16:09:51.504Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2022-07-30T16:09:51.882Z] Stop (378 ms): Run: docker version --format {{.Server.APIVersion}}
[2022-07-30T16:09:51.882Z] Server API version: 1.41
[2022-07-30T16:09:51.883Z] Stop (379 ms): Check Docker is running
[2022-07-30T16:09:51.883Z] Start: Run: docker volume ls -q
[2022-07-30T16:09:52.278Z] Stop (395 ms): Run: docker volume ls -q
# Function to Get Custom Directory path
Function Get-CustomDirectory
{
[CmdletBinding()]
[Alias("CDir")]
[OutputType([String])]
Param
(
[Parameter(ValueFromPipeline=$true,Position=0)]
$Path = $PWD.Path
@AlexHunterCodes
AlexHunterCodes / dscovr-epic-desktop
Created February 4, 2016 15:25 — forked from cjdaniel/dscovr-epic-desktop
This is an OS X command-line script that downloads the latest DSCOVR:EPIC <http://epic.gsfc.nasa.gov/> image and sets it as your desktop picture. Prerequisites: requires installing Homebrew <http://brew.sh/> and then the jshon tool (`brew install jshon`). Then you can run the command manually, or add it to your crontab.
#!/usr/bin/env bash
download_directory="$HOME/Pictures/Wallpapers/epic-earth";
apiurl="http://epic.gsfc.nasa.gov/api/images.php";
curl -s "$apiurl" | jshon -a -e image -u | while read image; do
destfile="$download_directory/$image.jpg";
mkdir -p "$download_directory";
if [[ -n "$image" && ! -f "$destfile" ]]; then
echo "New 🌍 ! $image.jpg";
curl -so "$destfile" "http://epic.gsfc.nasa.gov/epic-archive/jpg/$image.jpg";
ln -sf "$destfile" "$download_directory/latest.jpg";
@AlexHunterCodes
AlexHunterCodes / dundeemakerspace-linux-setup.sh
Last active November 10, 2015 00:21 — forked from grantcodes/dundeemakerspace-linux-setup.sh
The setup script for Dundee MakerSpace standard Lubuntu install
#! /bin/bash
# Add PPAs {
#
# chrome
#
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@AlexHunterCodes
AlexHunterCodes / keybase.md
Created September 19, 2015 15:05
Keybase.io Verification

Keybase proof

I hereby claim:

  • I am andrewalexmac on github.
  • I am andrewalexmac (https://keybase.io/andrewalexmac) on keybase.
  • I have a public key whose fingerprint is CE88 56AB 6A9E A845 3EE5 F2F5 FBB1 0260 2048 1D41

To claim this, I am signing this object:

@AlexHunterCodes
AlexHunterCodes / unity.gitignore
Created January 25, 2014 20:36
Unity 4.x .gitignore
### https://raw.github.com/github/gitignore/master/Global/Windows.gitignore
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares