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
| import javax.net.ssl.SSLParameters; | |
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.*; | |
| public class SSLPoke { | |
| public static void main(String[] args) { | |
| if (args.length != 2) { | |
| System.out.println("Usage: "+SSLPoke.class.getName()+" <host> <port>"); | |
| System.exit(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
| curl -sfG 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["=", ["node", "active"], true]' | |
| curl -sf 'http://localhost:8080/v3/facts' | |
| curl -sf 'http://localhost:8080/v3/nodes' | |
| curl -sfG 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["=", ["fact", "kernel"], "Linux"]' | |
| curl -sfG 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["=", ["fa, "operatingsystem"], "windows"]' |
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
| [root@cramp ~]# cat wtf.rb | |
| #!/usr/bin/ruby | |
| why_the_fuck_not = 'srsly' | |
| def wut(something) | |
| puts why_the_fuck_not | |
| end | |
| wut "heh" |
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
| // Before vim-javascript | |
| method(arg1, arg2, | |
| arg3); | |
| // After vim-javascript | |
| method(arg1, arg2, | |
| arg3); | |
| // After (Not sure I like this) |
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
| >> def select_big(ar) | |
| >> ar.select{|n| n > 2} | |
| >> end | |
| >> select_big([1, 2, 3]) | |
| => [3] | |
| Or you could duck punch it, and re-open Array. Not as succinct as Clojure tho, ur rite there. |
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
| FUCK YOU JOSH |