Skip to content

Instantly share code, notes, and snippets.

@nwinant
nwinant / README.md
Created August 26, 2019 03:01 — forked from mapsam/README.md
Namecheap > Github pages

Namecheap > Github pages

Pointing your domains to a gh-pages branch requires three steps.

  1. Add the Github IPs as A records on Namecheap. Both Github IPs are 192.30.252.153 and 192.30.252.154.
  2. Add your Github domain as the CNAME alias on Namecheap. your_username.github.io. (mind the extra period!)
  3. Add a CNAME with your new domain name in your repository. lowercase and nothing else

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@nwinant
nwinant / README.md
Created October 24, 2018 17:59 — forked from Fredx87/README.md
Swagger UI Keycloak Logout plugin

Swagger UI Keycloak Logout plugin

This is a plugin for Swagger UI that integrates the logout process with Keycloak.

When the user clicks "Logout" the logout page of Keycloak is called and then the user session is removed from Keycloak. To use this plugin you need to include the keycloak-logout.js file in dist/index.html and place oauth2-logout.html in the dist folder.

The logout URL is taken from the authorizationUrl removing the auth string and replacing it with the logout string.

Rember to add OAuthLogoutPlugin to the plugins section of SwaggerUi configuration:

@nwinant
nwinant / .Xresources
Created February 24, 2017 06:13 — forked from liangzan/.Xresources
Xresources for configuring urxvt
! urxvt
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: yellow
URxvt*font: xft:inconsolata:size=10:antialias=true
URxvt*depth: 32
URxvt*borderless: 1
URxvt*scrollBar: false
URxvt*loginShell: true
Urxvt*secondaryScroll: true # Enable Shift-PageUp/Down in screen
#!/usr/bin/env bash
usage() {
cat << EOF
usage: $0 [options] <argv>...
Options:
-h Show help options.
-v Print version info.
EOF
#!/bin/bash
#
# Pipes ls-recent.bash (https://gist.github.com/nwinant/bbe0ef611fe08789a94b) through through tail.
# Yeah, I'm really that lazy.
if [[ "$1" == -* ]]; then
ls-recent.bash ${@:2} | tail $1
else
ls-recent.bash ${@} | tail

Keybase proof

I hereby claim:

  • I am nwinant on github.
  • I am nwinant (https://keybase.io/nwinant) on keybase.
  • I have a public key whose fingerprint is DDAD 0BE8 3AF3 4ECD 2475 DB52 0FCB 1A77 15B8 65CB

To claim this, I am signing this object:

@nwinant
nwinant / .gitignore
Last active August 29, 2015 14:16 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
public class HelloConvariance {
public static void main(String[] args) {
ConcurrentHashMap<String, String> properties = new ConcurrentHashMap<>();
Set<String> keySet = properties.keySet();
}
}
@nwinant
nwinant / launch-alt-chrome-osx
Last active August 29, 2015 14:08
Launch parallel Chrome instance w/ different profile, suppressing verbosity (OS X)
# Launch parallel Chrome instance w/ different profile, suppressing verbosity (OS X)
#
# See also:
# http://www.chromium.org/user-experience/user-data-directory
# http://peter.sh/experiments/chromium-command-line-switches/
USER_DATA_DIR=~/some-chrome-alt-profile-dir
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=${USER_DATA_DIR} > /dev/null 2>&1 &