Skip to content

Instantly share code, notes, and snippets.

View 2ajoyce's full-sized avatar

Aaron Joyce 2ajoyce

View GitHub Profile

Dips

  • Back Dip
  • Crazy Arm Dip
  • Deep Dip (Over-the-Shoulder Deep Dip) (Step Behind Deep Dip)
  • Doug's Dip
  • Faint Dip
  • Hair Sweep
  • Leaning Dip
  • Memories Dip
  • Neck Dip
@2ajoyce
2ajoyce / makeGifs.py
Created March 28, 2018 22:15
A python script to generate gifs from a data file using gfycat
import json
import requests
import time
class Video:
"A class to store video information"
id = ''
title = ''
start = 0
end = 0
@2ajoyce
2ajoyce / PasteInGitBash.ahk
Last active October 5, 2022 09:43
Autohotkey Paste In Git Bash
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 1
I_Icon = C:\Program Files\AutoHotkey\Letter Icons\paste.ico
ICON [I_Icon] ;Changes a compiled script's icon (.exe)
if I_Icon <>
IfExist, %I_Icon%
@2ajoyce
2ajoyce / .bash_profile
Last active August 2, 2018 14:53
Bash Profile
# SSH Agent
# Note: ~/.ssh/environment should not be used, as it
# already has a different purpose in SSH.
# source : https://www.schoonology.com/technology/ssh-agent-windows/
env=~/.ssh/agent.env
# Note: Don't bother checking SSH_AGENT_PID. It's not used
# by SSH itself, and it might even be incorrect
# (for example, when using agent-forwarding over SSH).

When You Buy A Used Car

Change All Fluids

  • Flush radiator & change antifreeze
  • Change oil and oil filter
  • Change transmission fluid & filter
  • Change fluid in transfer case ( if applicable )
  • Change gear oil in front & rear differential
  • Top off brake fluid & bleed or flush if dark
  • Top off power steering fluid & flush if dirty
class Player {
constructor() {
this.health = 20;
this.healing = false;
}
playTurn(warrior) {
if (warrior.health() > 12 && !this.healing) {
this.sense(warrior);
} else if (warrior.health() < this.health) {
@2ajoyce
2ajoyce / aliases.cmd
Last active August 2, 2018 14:52
Aliases on windows cmd
@echo off
:: Save this file as %USERPROFILE%\aliases.bat
:: Run regedit and go to HKEY_CURRENT_USER\Software\Microsoft\Command Processor
:: Add String Value entry with the name AutoRun and the full path of your .bat/.cmd file.
:: Copied from: https://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt
DOSKEY ls=dir /B
DOSKEY ll=dir
@2ajoyce
2ajoyce / packages.config
Last active November 12, 2018 15:08
Installation file for chocolatey
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="sql-server-management-studio" />
<package id="autodesk-fusion360" />
<package id="autohotkey" />
<package id="spotify" />
<package id="ditto" />
<package id="dotnet4.5" />
<package id="dotnetcore-sdk" />
<package id="filezilla" />
@2ajoyce
2ajoyce / New Computer Setup.md
Last active August 2, 2018 15:17
Instructions for setting up a new laptop

Steps

  1. Make cmd aliases
  2. Make git bash aliases
    • Run certutil.exe -urlcache -split -f "https://gist.github.com/2ajoyce/9a82fb6858d262055981ebcc94d0de54/raw/" %USERPROFILE%\.bash_profile in the cmd prompt
  3. Install Chocolatey
  4. Install programs with chocolatey
  5. Run certutil.exe -urlcache -split -f "https://gist.github.com/2ajoyce/ae087a4107d8bae35b5f54c4f50e1cff/raw/" %USERPROFILE%\packages.config in the cmd prompt
@2ajoyce
2ajoyce / SetupCmdAliases.reg
Created August 2, 2018 15:14
Makes a registry key for setting up cmd aliases on a new machine
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"AutoRun"="%USERPROFILE%\\aliases.cmd"