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
| task gitCleanLocal{ | |
| doLast{ | |
| def local="git branch".execute() | |
| def remote = "git branch -r".execute() | |
| def remoteBranches=remote.text | |
| local.in.splitEachLine(" "){ | |
| line -> | |
| if(line[2]!= null && !remoteBranches.contains(line[2])){ | |
| ("git branch -d "+line[2]).execute() | |
| println "deleted:"+line[2] |
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
| { | |
| "settings": { | |
| "number_of_shards": 1, | |
| "analysis": { | |
| "filter": { | |
| "autocomplete_filter": { | |
| "type": "edge_ngram", | |
| "min_gram": 1, | |
| "max_gram": 20 | |
| } |
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
| SET SERVEROUTPUT ON; | |
| DECLARE | |
| cursor c1 is | |
| select * from all_mviews where OWNER=<OWNER NAME>; | |
| BEGIN | |
| FOR mview in c1 | |
| LOOP | |
| DBMS_SNAPSHOT.REFRESH(mview.mview_name,'C'); | |
| DBMS_OUTPUT.PUT_LINE(mview.mview_name || ' refreshed.'); |
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
| keytool -import -alias kb -keystore "c:\Program Files\Java\jdk1.7.0_02\jre\lib\security\cacerts" -file c:\certificate.cer |
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
| String uri = "http://api.easysocket.io"; | |
| //Do not forget to assign your private key | |
| String privateKey=""; | |
| String parameters ="privateKey="+privateKey+"data=Hello World!"; | |
| var req = WebRequest.Create(uri); | |
| req.ContentType = "application/x-www-form-urlencoded"; | |
| req.Method = "POST"; | |
| var bytes = Encoding.ASCII.GetBytes(parameters); | |
| req.ContentLength = bytes.Length; |
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
| <?php | |
| $url = 'http://api.easysocket.io'; | |
| //Do not forget to assign your private key | |
| $privateKey=""; | |
| $fields = array( | |
| 'text' => urlencode($_POST["Hello World!"]), | |
| 'privateKey'=>$privateKey | |
| ); |
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
| try { | |
| String url = "http://api.easysocket.io"; | |
| URL obj = new URL(url); | |
| HttpURLConnection con = (HttpURLConnection) obj.openConnection(); | |
| //Please do not forget to assign your private key | |
| String privateKey=""; | |
| String message="Hello World!"; | |
| //add reuqest header | |
| con.setRequestMethod("POST"); | |
| con.setRequestProperty("Accept-Language", "en-US,en;q=0.5"); |
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
| var fs = require('fs'), | |
| http = require('http'), | |
| path = require('path'), | |
| failoverProxy = require('failover-proxy'); | |
| var filePath = path.join(__dirname, 'fillerama.txt'); | |
| var badHost = { | |
| host: '127.0.0.1', | |
| port: 7777 |
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
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }).listen(8888, '127.0.0.1'); | |
| console.log('Server running at http://127.0.0.1:8888/'); |
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
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }).listen(7777, '127.0.0.1'); | |
| console.log('Server running at http://127.0.0.1:7777/'); |
NewerOlder