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
| #!/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
| 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
| 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
| keytool -import -trustcacerts -alias mitmproxy -file ~/.mitmproxy/mitmproxy-ca-cert.cer -keystore mitmproxy.jks |
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
| java -Dhtttps.proxyHost=localhost -Dhttps.proxyPort=8080 -Dhtttp.proxyHost=localhost -Dhttp.proxyPort=8080 -Djavax.net.ssl.trustStore=mitmproxy.jks -Djavax.net.ssl.trustStorePassword=FIXME ... |
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
| java -jar jruby-complete-9.0.5.0.jar -S irb |
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 ch.up4sure.ng; | |
| import java.lang.reflect.Method; | |
| import java.text.DateFormatSymbols; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import java.util.TimeZone; | |
| import org.aspectj.lang.ProceedingJoinPoint; |
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
| aws ec2 describe-instances --output text --query "Reservations[*].Instances[*].{InstanceId:InstanceId, State: State.Name, DNS: PublicDnsName}" |
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
| aws ec2 run-instances --image-id ami-687b4f2d --key-name chrigimacbook --security-groups HTTP_SSH --user-data `curl -s https://gist.github.com/chtz/7301111/raw/a66eba513f67e24d3e45415ddaebca34ff9e86c6/jboss_dev_env_cloudinit.sh | base64` --instance-type m1.small --iam-instance-profile Arn=arn:aws:iam::261512354225:instance-profile/adminRole --count 1 |