Skip to content

Instantly share code, notes, and snippets.

<Category name="Environment_KeyBindings" Category="{F09035F1-80D2-4312-8EC4-4D354A4BCB4C}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_KeyBindings" PackageName="Visual Studio Environment Package">
<Version>16.0.0.0</Version>
<KeyboardShortcuts>
<ScopeDefinitions>
<Scope Name="Team Explorer" ID="{7AA20502-9463-47B7-BF43-341BAF51157C}"/>
<Scope Name="VC Dialog Editor" ID="{543E0C02-8C85-4E43-933A-5EF320E3431F}"/>
<Scope Name="Find All References Tool Window" ID="{1FA1FD06-3592-4D1D-AC75-0B953320140C}"/>
<Scope Name="Test Explorer Playlist Tab" ID="{D2F6510A-150A-4F3F-9D7C-8E38622D26F7}"/>
<Scope Name="Xcode Interface Builder Editor" ID="{DE2BFA0C-4042-4482-8302-47B55670BF7C}"/>
<Scope Name="Live Property Explorer" ID="{31FC2115-5126-4A87-B2F7-77EAAB65048B}"/>
@psxvoid
psxvoid / init.vim
Created January 26, 2019 06:46 — forked from telamon/init.vim
My amazing Neovim configuration.
" Tony's Settings
" Usage:
" Download and install nvim, then install 'dein' the vim-package manager.
" During installation of dein it will output a sample configuration, take the
" two lines that `set runtimepath=PATH` and `dein#begin(PATH)` and replace the
" ones in this file online 14 and 17. Restart nvim and Happy Vimming!
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
// ==UserScript==
// @name Evernote Web HTML editor
// @namespace http://andrealazzarotto.com/
// @version 3.2.4
// @description This scripts adds a button to edit the HTML code of a note in Evernote Web
// @match https://www.evernote.com/*
// @copyright 2015, Seb Maynard, Andrea Lazzarotto
// @license Apache License, Version 2.0
// @require http://code.jquery.com/jquery-latest.min.js
// @grant GM_setValue
@psxvoid
psxvoid / tmux-cheatsheet.markdown
Created January 8, 2019 12:12 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@psxvoid
psxvoid / gulpfile.js
Created August 28, 2018 08:29 — forked from demisx/gulpfile.js
Gulp 4 gulpfile.js
// Gulp 4
var gulp = require('gulp');
var using = require('gulp-using');
var grep = require('gulp-grep');
var changed = require('gulp-changed');
var del = require('del');
var coffee = require('gulp-coffee');
var less = require('gulp-less');
var coffeelint = require('gulp-coffeelint');
var sourcemaps = require('gulp-sourcemaps');
@psxvoid
psxvoid / delete-evicted-pods-all-namespaces.sh
Created August 6, 2018 14:41
Delete evicted pods from all namespaces (also ImagePullBackOff and ErrImagePull)
#!/bin/sh
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d
# delete all evicted pods from all namespaces
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff state from all namespaces
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces
@psxvoid
psxvoid / gist:370a9da3cd105d88211dd886ad933dd4
Created March 24, 2017 15:03 — forked from LindaLawton/gist:b576d21924139902b7163d0441636a20
Calling google api's in unit tests by providing fake responses
/*
This is a quick example of how to fake out the response for calling a Google API endpoint.
I'm using the QPX Express api as an example, but I'm _assuming_ this could apply accross the board
for other Google API's.
The reason you would want to do this, is so you don't need to hit the internet to get your results
(think, coding on a plane, no internet coverage, no hurting your API allowance, etc).
The main trick here is that we need to do two things:
1. Create a fake HttpMessageHandler