https://hub.github.com/hub.1.html
git config --global --add hub.host MY.GIT.ORG
@RunWith(SpringRunner.class) | |
@SpringBootTest | |
public class HystrixProxyServiceTests { | |
@MockBean | |
private MyRepo myRepo; | |
@Autowired | |
private MyService myService; |
public static class DebugHandlerInterceptorAdapter extends HandlerInterceptorAdapter { | |
@Override | |
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { | |
try { | |
String responseText = IOUtils.toString(request.getReader()); | |
System.out.println("response is:" + responseText); | |
} catch (IOException e) { | |
e.printStackTrace(); |
https://hub.github.com/hub.1.html
git config --global --add hub.host MY.GIT.ORG
# generate private key | |
openssl genrsa -out private.pem 2048 | |
# extatract public key from it | |
openssl rsa -in private.pem -pubout > public.pem |
ln -s /usr/local/opt/readline/lib/libreadline.8.0.dylib /usr/local/opt/readline/lib/libreadline.7.dylib
/** | |
* Inspired by XRegExp via 2ality | |
* http://www.2ality.com/2012/12/template-strings-xregexp.html | |
* http://xregexp.com/ | |
*/ | |
import test from 'ava'; | |
export function rx(flags) { | |
const trailingComments = /\s+#.*$/gm; |
query myPullRequests { | |
search(query: "org:mingliangguo type:pr state:open author:mingliangguo", type: ISSUE, first: 100) { | |
issueCount | |
pageInfo { | |
endCursor | |
hasNextPage | |
} | |
edges { | |
cursor | |
node { |
# libssl-dev and pkg-config are required in order to build websocat | |
# | |
apt-get update && apt-get install -y curl build-essential libssl-dev pkg-config | |
curl https://sh.rustup.rs -sSf | sh | |
export PATH=$HOME/.cargo/bin:$PATH | |
cargo install --features=ssl websocat |
However, I found https://superuser.com/questions/249050/chrome-keyboard-shortcut-to-pause-script-execution which helped me:
In the console:, Run:
window.addEventListener('keydown', function(e) {
if (e.keyCode == 123) debugger; // 123 is the key code of F12
});