Skip to content

Instantly share code, notes, and snippets.

View Griffingj's full-sized avatar

John Griffing Griffingj

  • New York, New York
View GitHub Profile
@Griffingj
Griffingj / javascript.json
Created April 24, 2019 20:56
Vscode Snippets
{
"Named Function": {
"prefix": "af",
"body": [
"function $1($2) {$3}"
],
"description": "Named Function"
},
"Console Log": {
"prefix": "lg",
@Griffingj
Griffingj / iTerm Binds for Subl-like Navigation
Created January 3, 2017 02:50
iTerm Keybinds for OSX Easy Navigation
command+delete Send Hex Code: 0x15 kill line backward
command+shift+delete Send Hex Code: 0x0B kill line forward
option+delete Send Hex Code: 0x17 kill word backward
option+shift+delete Send Escape Sequence: Esc+d kill word forward
command+left Send Hex Code: 0x01 move to start of line
command+right Send Hex Code: 0x05 move to end of line
option+left Send Escape Sequence: Esc+b move word backward
option+left Send Escape Sequence: Esc+f move word forward
@Griffingj
Griffingj / john-visual-studio-sublify.vssettings
Last active January 12, 2017 01:45
Keybindings and Formatter Settings for Visual Studio, that enable sublime style line/word/document navigation and TS style block formatting
<UserSettings><ApplicationIdentity version="14.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"/><ToolsOptionsCategory name="TextEditor" RegisteredName="TextEditor"><ToolsOptionsSubCategory name="AllLanguages" RegisteredName="AllLanguages" PackageName="Text Management Package"/><ToolsOptionsSubCategory name="Basic" RegisteredName="Basic" PackageName="Text Management Package"><PropertyValue name="TabSize">4</PropertyValue><PropertyValue name="ShowChanges">true</PropertyValue><PropertyValue name="AutoListMembers">true</PropertyValue><PropertyValue name="ShowPreview">true</PropertyValue><PropertyValue name="ShowMarks">true</PropertyValue><PropertyValue name="IndentStyle">2</PropertyValue><PropertyValue name="ShowCaretPosition">true</PropertyValue><PropertyValue name="HideAdvancedMembers">false</PropertyValue><PropertyValue name="ShowNavigationBar">true</PropertyValue><PropertyValue name="UseMapMode">false</PropertyValue><PropertyValue name="VirtualSpace">false</PropertyValu
@Griffingj
Griffingj / .gitconfig
Created December 26, 2016 02:39
Windows Git Config
[credential]
helper = wincred
[core]
editor = code --wait
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
@Griffingj
Griffingj / windows-keybindings.json
Created December 26, 2016 01:36
VsCode Keybindings for Windows
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+up", "command": "cursorTop" },
{ "key": "ctrl+shift+up", "command": "cursorTopSelect" },
{ "key": "ctrl+down", "command": "cursorBottom" },
{ "key": "ctrl+shift+down", "command": "cursorBottomSelect" },
{ "key": "ctrl+left", "command": "cursorHome" },
{ "key": "ctrl+shift+left", "command": "cursorHomeSelect" },
{ "key": "ctrl+right", "command": "cursorEnd" },
{ "key": "ctrl+shift+right", "command": "cursorEndSelect" },
@Griffingj
Griffingj / typescript.json
Last active December 26, 2016 01:41
VsCode TS snippets
{
"Named Function": {
"prefix": "af",
"body": [
"function $1($2) {$3}"
],
"description": "Named Function"
},
"Console Log": {
"prefix": "lg",
@Griffingj
Griffingj / VsCodeOverrides.json
Last active December 25, 2016 22:43
VsCode Overrides
// Place your settings in this file to overwrite the default settings
{
"editor.renderWhitespace": "boundary",
"editor.fontSize": 14,
"editor.tabSize": 2,
"window.zoomLevel": 2,
"search.exclude": {
"**/.git": true,
"dist/**": true,
".build/**": true,
@Griffingj
Griffingj / MacifyWindows10.txt
Last active April 12, 2017 00:03
Macify Windows 10
// Set the horiztal and vertial scrolling to inverse of Windows  
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopHScroll -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopHScroll 1 }
// Install Scoop Package Manager
set-executionpolicy unrestricted -s cu
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install curl 7zip git grep touch pshazz openssh