This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kamon.netty | |
import java.lang | |
import io.netty.bootstrap.Bootstrap | |
import io.netty.channel._ | |
import io.netty.channel.nio.NioEventLoopGroup | |
import io.netty.channel.socket.SocketChannel | |
import io.netty.channel.socket.nio.NioSocketChannel | |
import io.netty.handler.codec.http.{HttpContent, LastHttpContent, _} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "toy-load-balancer" | |
version = "0.1.0" | |
authors = ["Cristian Spinetta <[email protected]>"] | |
[dependencies] | |
log = "0.3" | |
#env_logger="0.4.3" | |
pretty_env_logger = "0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First enable JQuery on the page | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// Then, (After Jquery is in page) select your default option | |
var selectValue = '100%'; | |
$('body > div > div > form > div > div:nth-child(6) > table') | |
.find('select > option') | |
.filter(function () { return $(this).html() == selectValue; }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# USAGE: ./decompile-java-classes.sh -d {cfr jar} -i {input directory} -n {fiel name pattern} -o {output directory} | |
# Output directory and file name is optional | |
# File name accepts wildcard such as '*' | |
OUTPUTDIR="/tmp/decompiled-classes/" | |
FILE_NAME="*" |
NewerOlder