- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ nano ~/.zshrc
- Add
path=('/path/to/depot_tools' $path)
// Simple proxy/forwarding server for when you don't want to have to add CORS during development. | |
// Usage: node proxy.js | |
// Open browser and navigate to http://localhost:9100/[url] | |
// Example: http://localhost:9100/http://www.google.com | |
// This is *NOT* for anything outside local development. It has zero error handling among other glaring problems. | |
// This started as code I grabbed from this SO question: http://stackoverflow.com/a/13472952/670023 |
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq rules with ipset for gfwlist | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
import urllib2 | |
import re |
(For Linux users, make sure you have oathtool and openconnect, then start from Step 6. If you don't have a token secret key, have a friend generate one for you on OSX via steps 3-5)
Get homebrew and install oath-toolkit, openconnect, and tuntap.
And follow the additional tuntap installation instructions!
After the tuntap module is installed, reboot or use kextload to activate it.
By Branden Clark - https://clark.re
/** | |
* Example keymap for usage in xterm.js | |
* Original issue: https://github.com/sourcelair/xterm.js/issues/487 | |
*/ | |
// We export this as default, since the only thing we care about | |
// is the contents of the keymap. No classes, methods or anything | |
// else is expected. | |
export default let keyMap = |
#!/bin/sh | |
# sudo sh -c "$(curl -fsSL https://gist.githubusercontent.com/alanhg/6a299b815f4dd3d242abc16b8be6b861/raw/dbe1497208f1d968ed8b67cad09c596e35c5be9c/install-package-lrzsz.sh)" | |
YUM_CMD=$(which yum) | |
APT_GET_CMD=$(which apt-get) | |
APT_CMD=$(which apt) | |
PACKAGE=lrzsz | |
if [ ! -z $YUM_CMD ]; then | |
yum install -y $PACKAGE |
I have been researching Spring Boot and Spring Cloud, there are lots of goodies here but as with all technology there are gotchas.
Feign Client does not support PATCH out of the box! ಠ_ಠ ... ಠ~ಠ ... ⊙︿⊙
You might see an error like this if you try to use RequestMethod.PATCH
in your @FeignClient interface:
java.net.ProtocolException: Invalid HTTP method: PATCH
I am using the current versions: