Skip to content

Instantly share code, notes, and snippets.

View adam-edison's full-sized avatar

Adam Edison adam-edison

  • Pittsburgh, PA
View GitHub Profile
@adam-edison
adam-edison / commands.sh
Last active March 20, 2024 21:39
Terminal command to remap MacOS keybindings with PC Keyboard
mkdir -p $HOME/Library/KeyBindings
echo '{
/* Remap Home / End keys to be correct */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
@adam-edison
adam-edison / cmd.js
Created March 22, 2019 03:49 — forked from zorrodg/LICENSE
CLI Integration Test Helper
/**
* Integration test helper
* Author: Andrés Zorro <zorrodg@gmail.com>
*/
const { existsSync } = require('fs');
const { constants } = require('os');
const spawn = require('cross-spawn');
const concat = require('concat-stream');
const PATH = process.env.PATH;
@adam-edison
adam-edison / package.json
Last active March 22, 2019 03:40
useful package.json settings for testing
{
"scripts": {
"test": "nyc mocha --recursive test",
"test-debug": "nodemon -L --ext js --inspect-brk=0.0.0.0:9229 --exec 'mocha -t 0 --recursive test'",
"test-watch": "nodemon -L --ext js --exec 'nyc --reporter=text-summary mocha --reporter min --recursive test'"
},
"nyc": {
"check-coverage": true,
"per-file": false,
"lines": 95,
@adam-edison
adam-edison / .bashrc
Last active February 19, 2019 22:32
Useful bash functions for GitLab or Git
# Persist default (id_rsa) ssh key in a service that will serve this key when asked for any ssh key
eval `ssh-agent`
ssh-add
# Persist a specific ssh key in a service that will serve this key when asked for any ssh key
# eval `ssh-agent`
# ssh-add site_rsa
# Allow npp to edit anything from git bash using npp <filename>
alias npp="/c/Program\ Files/Notepad++/notepad++.exe"
@adam-edison
adam-edison / helpful-aliases
Created August 23, 2017 03:20
Helpful aliases to leave in .bashrc
alias npp="/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe -multiInst"
@adam-edison
adam-edison / git-config
Last active September 12, 2023 19:52
git config preferences
# Configuration
## On All
git config --global user.email "your_example@example.com"
git config --global user.name "Your Name"
git config --global push.default current
git config --global core.commentchar "*" # optional
git config --global core.safecrlf false
git config --global core.excludesfile ~/.gitignore
git config --global push.autoSetupRemote true