I hereby claim:
- I am krg7880 on github.
- I am krg78 (https://keybase.io/krg78) on keybase.
- I have a public key whose fingerprint is 18A4 B01B 3324 318B 1941 2A10 E542 7DE5 9812 C1A1
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -e | |
| CONTEXT="$1" | |
| if [[ -z ${CONTEXT} ]]; then | |
| echo "Usage: $0 KUBE-CONTEXT" | |
| exit 1 | |
| fi |
| #!/usr/bin/env bash | |
| HOURS="730" # prune images older than 1 month | |
| # remove dangling images | |
| docker images --filter dangling=true -q \ | |
| | xargs docker rmi | |
| # remove images older than n hours | |
| docker image prune --force --all --filter "until=${HOURS}h" |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: ambassador-staging | |
| annotations: | |
| external-dns.alpha.kubernetes.io/hostname: '*.staging.<REDACTED>.io' | |
| service.beta.kubernetes.io/aws-load-balancer-ssl-cert: 'arn:aws:acm:us-east-1:<REDACTED>' | |
| service.beta.kubernetes.io/aws-load-balancer-ssl-ports: '*' | |
| service.beta.kubernetes.io/aws-load-balancer-backend-protocol: 'tcp' |
| const scores = [ | |
| { id: 1, newScore: 'A+', oldScore: 'F-' }, | |
| { id: 2, newScore: 'B-', oldScore: 'D+' }, | |
| { id: 3, newScore: 'A', oldScore: 'A-' }, | |
| { id: 4, newScore: 'B', oldScore: 'F' }, | |
| { id: 5, newScore: 'A-', oldScore: 'A' }, | |
| { id: 6, newScore: 'A', oldScore: 'Z' }, | |
| { id: 7, newScore: 'A-', oldScore: 'B+' }, | |
| { id: 7, newScore: 'A-', oldScore: 'F-' }, | |
| { id: 7, newScore: 'A-', oldScore: 'B-' } |
| brew install pcre | |
| ./configure --prefix=/opt/ngx_openresty --with-pcre-jit --with-ipv6 --with-cc-opt="-I/usr/local/include" --with-ld-opt="-L/usr/local/lib" |
| /** | |
| Slightly modified version | |
| of the anagram found on Stackoverflow. | |
| @see: http://stackoverflow.com/a/16577324/1707987 | |
| - Replaced str.substr with str.charAt | |
| - Cached the length of the first string | |
| - Check the cached len against match counter | |
| */ | |
| function anagram(a, b) { |
| 'use strict'; | |
| function anagram(str1, str2) { | |
| // base case | |
| if (typeof str1 === 'undefined' || typeof str2 === 'undefined') { | |
| return false; | |
| } | |
| return str1.split('').sort().join('') === str2.split('').sort().join(''); | |
| } |
| /** | |
| Quickly sorts elements using recursion | |
| Complexity: O(n^2) n-squared | |
| @param {Array} collection | |
| @return {Array} | |
| */ | |
| function quicksort(collection) { | |
| var i = 1; |
| /** | |
| Insertion Sort Algorithm | |
| I N S E R T I O N S O R T | |
| I N S E R T I O N S O R T | |
| I N S E R T I O N S O R T | |
| E I N S R T I O N S O R T | |
| E I N R S T I O N S O R T | |
| E I N R S T I O N S O R T | |
| E I I N R S T O N S O R T |