Skip to content

Instantly share code, notes, and snippets.

View scottshane's full-sized avatar

Scott Hoffman scottshane

View GitHub Profile
@scottshane
scottshane / kill_by_port.sh
Last active August 18, 2020 02:43
kill process by port number
killport () {
kill -HUP $(lsof -i :$1 | grep -v grep | tail -1 | awk '{print $2}')
echo Killed process on port $1
lsof -i :$1
}
syntax on
call plug#begin()
" CSS --
Plug 'groenewege/vim-less'
" Plug 'skammer/vim-css-color'
Plug 'hail2u/vim-css3-syntax'
"Javascript
" Plug 'othree/javascript-libraries-syntax.vim'
" --Plug 'pangloss/vim-javascript'

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
type NestedKeyOf<ObjectType extends object> =
{[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object
? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}`
: `${Key}`
}[keyof ObjectType & (string | number)];
@scottshane
scottshane / auto-increment-npm
Created March 28, 2023 16:21 — forked from LukePammant/auto-increment-npm
Auto-increment NPM package in Azure Pipelines and publish to Azure Artifacts
trigger:
branches:
include:
- develop
- master
paths:
include:
- ./
resources:
@scottshane
scottshane / auto-increment-npm
Created March 28, 2023 16:21 — forked from LukePammant/auto-increment-npm
Auto-increment NPM package in Azure Pipelines and publish to Azure Artifacts
trigger:
branches:
include:
- develop
- master
paths:
include:
- ./
resources:
@scottshane
scottshane / lockview.py
Created July 30, 2023 16:10 — forked from Fweeb/lockview.py
Blender add-on for exposing the 3D View's rotation locking feature
# ***** BEGIN GPL LICENSE BLOCK *****
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of