Skip to content

Instantly share code, notes, and snippets.

View solrevdev's full-sized avatar
💭
🤓

John Smith solrevdev

💭
🤓
View GitHub Profile
@solrevdev
solrevdev / init.vim
Created January 3, 2019 12:27
init.vim - neovim macos dotnetcore friendly
call plug#begin()
Plug 'roxma/nvim-completion-manager'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
call plug#end()
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
@solrevdev
solrevdev / restart.cmd
Last active January 10, 2019 15:35
shutdown all programs and restart after 60 seconds with a message
shutdown –m \\pc232 –r –f –c “The computer will restart, please save all work.” –t 60
shutdown -m \\pc232 -r -f -c "John is trying to restart PC232" -t 60
@solrevdev
solrevdev / update-dotnet-tools.sh
Created February 21, 2019 11:56
updates all installed global dotnet tools
set -e # stops the execution of a script if a command or pipeline has an error
set -x # executed commands are printed to the terminal
# for each tool in the list ignoring first 2 rows which are table headers run dotnet tool update
for package in $(dotnet tool list -g | awk 'NR > 2 { print $1 }')
do
dotnet tool update -g "$package"
done
@solrevdev
solrevdev / update-dotnet-tools.ps1
Last active February 21, 2019 18:25
updates all installed global dotnet tools
# for each tool in the list ignoring first 2 rows which are table headers run dotnet tool update
$tools = dotnet tool list -g | select-object -skip 2
foreach ($row in $tools)
{
$cols = $row.Split(" ")
$tool = $cols[0]
dotnet tool update -g $tool
}
@solrevdev
solrevdev / extensions.json
Last active March 28, 2019 10:03
my installed vscode extensions
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"EditorConfig.EditorConfig",
"fabiospampinato.vscode-todo-plus",
"k--kato.docomment",
"kenhowardpdx.vscode-gist",
"konstantin.wrapSelection",
@solrevdev
solrevdev / .hyper.js
Created March 30, 2019 09:00
hyper settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@solrevdev
solrevdev / install-source-code-pro.sh
Created April 3, 2019 17:29
install 'source code pro' font on ubuntu
#!/usr/bin/env bash
# Run the following to install 'Source Code Pro' font on ubuntu
# touch install-source-code-pro.sh
# chmod +x install-source-code-pro.sh
# ./install-source-code-pro.sh
cd Downloads
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
@solrevdev
solrevdev / .editorconfig
Last active July 22, 2019 09:32
Editorconfig in a project
# EditorConfig is awesome:
http://EditorConfig.org
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
@solrevdev
solrevdev / eslint_prettier_airbnb.md
Created July 21, 2019 08:47 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@solrevdev
solrevdev / cobalt2.json
Created July 22, 2019 08:48
csharp-friendly version of wes bos cobalt2 vscode theme
// save to /Users/solrevdev/.vscode-insiders/extensions/wesbos.theme-cobalt2-2.1.6/theme/cobalt2.json
{
"$schema": "vscode://schemas/color-theme",
"name": "Cobalt",
"type": "dark",
"colors": {
// activityBar
"activityBar.background": "#122738",
"activityBar.border": "#0d3a58",
"activityBar.dropBackground": "#0d3a58",