Work-in-pogress
Ref: cloudflare/homebrew-cloudflare#21
# Clean up any old version of curl you may have already tried to install
brew remove -f curl
# Download the curl ruby install script provided by cloudflare
#!/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 |
Work-in-pogress
Ref: cloudflare/homebrew-cloudflare#21
# Clean up any old version of curl you may have already tried to install
brew remove -f curl
# Download the curl ruby install script provided by cloudflare
By Branden Clark - https://clark.re
#!/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 |
/** | |
* 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 = |
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:
// 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 |