openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -subj "/C=US/ST=Oregon/L=Portland/O=Company Name/OU=Org/CN=www.example.com" -nodesdef sha256Hash(text: String) : String = java.security.MessageDigest.getInstance("SHA-256").digest(text.getBytes()).map(0xFF & ).map { "%02x".format() }.foldLeft(""){_ + _}
def sha256Hash(text: String) : String = String.format("%064x", new java.math.BigInteger(1, java.security.MessageDigest.getInstance("SHA-256").digest(text.getBytes("UTF-8"))))verify via:
scala> sha256Hash("Rusty is a cowboy!")kubectl create secret docker-registry <YOUR REGISTRY> --docker-server=https://index.docker.io/v1/ --docker-username=<YOUR SVC USER> --docker-password=<YOUR PWD> --docker-email=<YOUR EMAIL>create a big file
ruby -e 'a=STDIN.readlines;1000000.times do;b=[];4.times do; b << a[rand(a.size)].chomp end; puts b.join(" "); end' < /usr/share/dict/words > file.txtcreate a number of 2000 line smaller files
cat file.txt| split -l 2000 -a 3
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
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: kafkatools | |
| spec: | |
| template: | |
| metadata: | |
| name: kafkatools | |
| spec: | |
| containers: |
if you get No space left on device from containers yet df indicates there is space, try
echo 3 > /proc/sys/vm/drop_caches
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
| jobs: | |
| - name: Deploy-To-NonProd | |
| disable_manual_trigger: true | |
| ... |
dockerrm
docker rm $(sudo docker ps -a -q)dockerstop
docker stop $(sudo docker ps -a -q)
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
| [ | |
| { | |
| "CAL_SID": "19701026", | |
| "CAL_DT": "1970-10-26 00:00:00", | |
| "DAY_NM": "Monday", | |
| "DAY_ABBR_NM": "MO", | |
| "DAY_IN_CAL_YR_NUM": "299", | |
| "DAY_IN_CAL_MNTH_NUM": "26", | |
| "DAY_IN_CAL_WK_NUM": "2", | |
| "DAY_CNT_NUM": "10029", |
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
| CREATE TABLE microbits.test (pkey text, ckey text, data text, PRIMARY KEY ((pkey), ckey)) WITH CLUSTERING ORDER BY (ckey DESC); |