Skip to content

Instantly share code, notes, and snippets.

View NickCrew's full-sized avatar

Nick Ferguson NickCrew

View GitHub Profile
@NickCrew
NickCrew / keybindings.json
Created February 14, 2019 17:03
vscode keybindings (windows)
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "f6",
"command": "workbench.action.navigateEditorGroups"
},
{
"key": "ctrl+alt+f",
"command": "actions.find"
},
@NickCrew
NickCrew / CapLockAsCtrlEsc.ahk
Created November 25, 2019 14:36
AutoHotKey: Caps Lock as Ctrl+Escape
SetCapsLockState, AlwaysOff
*Capslock::Send,{control down}
*Capslock up::
if (A_PriorHotkey = "*Capslock")
{
send,{Control Up}{Escape}
Return
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "clang++ build and debug active file",
"type": "cppdbg",
"request": "launch",
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-g",
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks",
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell Launch Script",
"type": "PowerShell",
"request": "launch",
@NickCrew
NickCrew / _vsvimrc
Last active October 22, 2020 01:19
vsvimrc
" Settings
set backspace=2
set clipboard=unnamed " Use system clipboard
set autoindent
set tabstop=4
set shiftwidth=4
set expandtab
set incsearch
set showcmd
set hlsearch
@NickCrew
NickCrew / settings.json
Last active October 22, 2020 01:19
Windows Terminal Settings
// This file was initially generated by Windows Terminal Preview 1.2.2022.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@NickCrew
NickCrew / 40-wifi.yaml
Created January 18, 2021 20:42
Netplan config for wifi
network:
version: 2
wifis:
wlan0:
optional: true
access-points:
"piggah2":
password: "passwordhere"
dhcp4: true
@NickCrew
NickCrew / profile.ps1
Created March 9, 2021 22:28
PowerShell Profile (CurrentUserAllHosts)
# #####################################################
#
# Name: profile.ps1
# Profile: CurrentUserAllHosts
# PSVersion: 7
#
# Profile Load Order:
# - AllUsersAllHosts
# - AllUsersCurrentHost
# - CurrentUserAllHosts