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
| sudo -H pip install mitmproxy --update |
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
| while line = gets | |
| if line =~ /.*externalId\=(.*)\, id=(.*)/ | |
| puts "update fnmig.cormig set currentdocumentid='#{$2}', status='manual-delete' where externalid='#{$1}';" | |
| end | |
| end |
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/ruby | |
| #$ time java -Xms2000m -Xmx2000m -jar jruby-complete-1.7.24.jar diff.complex.rb 1_to_40000000.csv 1_to_3000000.x.csv | |
| #000000000000000000000000000000000000000011111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111111110000000000000000000000000000000000000000111111111111111111111111111111000000000000000000000000000000000000000011111111111111111111111111111100000000000000000000#000000000000000000001111111111111111111111111111110000000000000000000000000000000000000000111111111111111111111111111111000000000000000000000000000000000000000011111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111111110000000000000000000000000000000000000000#1111111111111111111111111111110000000000000000000000000000000000000000111111111111111111111111111111 | |
| #s0.length = 40000000 | |
| #s1.length = 3000001 | |
| #s1 in s0 = 3000000 | |
| #s1 NOT in s0 = 1 | |
| #1111111111111111111111111111112222222222222222222222222222223333333333333333333333333333334444444444444 |
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
| # Client (Cygwin) | |
| lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg | |
| install apt-cyg /bin | |
| apt-cyg install httptunnel | |
| htc -P $CORP_HTTP_PROXY_HOST:$CORP_HTTP_PROXY_PORT -F 8888 $HTS_SERVER_HOST:80 | |
| ssh -p 8888 $USER@localhost |
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
| require 'nokogiri' | |
| def open_pom | |
| File.open("pom.xml") { |f| Nokogiri::XML(f) } | |
| end | |
| def save_pom(pom) | |
| File.open('pom.xml','w') {|f| pom.write_xml_to f} | |
| end |
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
| require 'nokogiri' | |
| def open_pom | |
| File.open("pom.xml") { |f| Nokogiri::XML(f) } | |
| end | |
| def save_pom(pom) | |
| File.open('pom.xml','w') {|f| pom.write_xml_to f} | |
| end |
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
| docker run -d --name artifactory-oss -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:4.16.0 | |
| curl -uadmin:password -T target/backup-0.0.2.jar "http://localhost:8081/artifactory/libs-release-local/ch/furthermore/backup/0.0.2/backup-0.0.2.jar" | |
| curl -uadmin:password -T pom.xml "http://localhost:8081/artifactory/libs-release-local/ch/furthermore/backup/0.0.2/backup-0.0.2.pom" |
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
| require 'nokogiri' | |
| require 'net/http' | |
| ARTIFACTORY_URL = "http://localhost:8081/artifactory/libs-release-local" | |
| ARTIFACTORY_USER = "admin" | |
| ARTIFACTORY_PASS = "password" | |
| TARGET_FOLDER = "target" | |
| def open_pom |
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
| #!/bin/bash | |
| # Pre cond: | |
| # | |
| # EC2 IAM role with this IAM policy: | |
| # { | |
| # "Version": "2012-10-17", | |
| # "Statement": [ | |
| # { | |
| # "Effect": "Allow", |
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
| https://<host>/<path>?i=<ipaddr>&l=<username>&p=<pass>&h=<domain> |