Skip to content

Instantly share code, notes, and snippets.

Avatar

Justin VanWinkle justin-vanwinkle

View GitHub Profile
@justin-vanwinkle
justin-vanwinkle / spacemacs-keybindings
Created Sep 1, 2020 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
View spacemacs-keybindings
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@justin-vanwinkle
justin-vanwinkle / selenium-grid-node.sh
Created Dec 17, 2019
starts a selenium grid node
View selenium-grid-node.sh
#!/bin/bash
hubhost=$0
docker run -d -e HUB_HOST=$hubhost -e HUB_PORT=4444 -e START_XVFB=false -e NODE_MAX_INSTANCES=2 -e NODE_MAX_SESSION=2 -v /dev/shm:/dev/shm selenium/node-chrome
@justin-vanwinkle
justin-vanwinkle / gnome-settings.sh
Created Sep 18, 2019
My preferred settings for Gnome
View gnome-settings.sh
#!/bin/bash
# alt-tab only switches items in the current workspace
gsettings set org.gnome.shell.app-switcher current-workspace-only true
View PowershellProfile
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
Import-Module -Name posh-git
Import-Module Get-ChildItemColor
Start-SshAgent
View load-test.yaml
config:
payload:
path: "./z9.csv"
fields:
- zip4
- zip
defaults:
headers:
x-my-service-auth: 'sample header'
environments:
View PowerDMS_Interview.cs
using System.Collections.Generic;
using System.Linq;
namespace PowerDMS.Main
{
public class Interview
{
/// <summary>
/// Compares two strings for an anagram
/// </summary>
@justin-vanwinkle
justin-vanwinkle / news-feed.opml
Last active Oct 26, 2017
My news sources packed into an OPML. RSS readers use this format to pull from each individual source contained within.
View news-feed.opml
<opml version="1.0">
<head>
<title>Justin VanWinkle Essential News</title>
</head>
<body>
<outline text="Hacker News" title="Hacker News" type="rss" xmlUrl="http://news.ycombinator.com/rss" htmlUrl="https://news.ycombinator.com/"/>
<outline text="Medium - Editor' Picks" title="Medium - Editor' Picks" type="rss" xmlUrl="https://medium.com/feed/frontpage-picks" htmlUrl="https://medium.com/editors-picks"/>
<outline text="Medium - Entrepreneurship" title="Medium - Entrepreneurship" type="rss" xmlUrl="https://medium.com/feed/topic/entrepreneurship" htmlUrl="https://medium.com/topic/entrepreneurship"/>
<outline text="Medium - Business" title="Medium - Business" type="rss" xmlUrl="https://medium.com/feed/topic/entrepreneurship" htmlUrl="https://medium.com/topic/entrepreneurship"/>
<outline text="Designer News" title="Designer News" type="rss" xmlUrl="https://www.designernews.co/?format=rss" htmlUrl="https://www.designernews.co"/>
@justin-vanwinkle
justin-vanwinkle / README.md
Last active Jan 20, 2019
Ergodox Configuration
View README.md

Flash using dfu-util -D <.dfu.bin>

@justin-vanwinkle
justin-vanwinkle / TDD.md
Last active Jul 14, 2017
Best viewed in raw since gist only supports 3 levels of nesting
View TDD.md

Test-Driven Development -- by Craig Oliver (https://github.com/PurpleGuitar)

  1. What is it?
  • A software development approach that emphasizes short, rapid cycles where tests are written before implementation.
  1. How is it done?
  • Start with requirements
  • For each requirement, write one or more test cases that will demonstrate correct behavior when they pass
    • (At this point, all new test cases probably fail, or even don't compile. That's OK. in fact, that's part of the point.)
  • Write code until all tests pass, both new tests and existing regression tests.
  • Refactor code as needed, making sure all tests still pass.
You can’t perform that action at this time.