| Perf name | Time |
|---|---|
| multicore.perf | 9.234 seconds |
| onecore.perf | 6.385 seconds |
| -A16M_-qb0.multicore.perf | 7.451 seconds |
| -A16M_-qb0.onecore.perf | 6.033 seconds |
| -A16M_-qg.multicore.perf | 7.431 seconds |
| -A16M_-qg.onecore.perf | 6.151 seconds |
| -A32M_-qb0.multicore.perf | 7.169 seconds |
| -A32M_-qb0.onecore.perf | 6.106 seconds |
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 | |
| # # create auth first | |
| # | |
| # mkdir auth | |
| # docker run \ | |
| # --entrypoint htpasswd \ | |
| # registry:2 -Bbn testuser testpassword > auth/htpasswd | |
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
| ################### | |
| # aliases | |
| alias ls='ls --color -lahG' | |
| # grep with color | |
| alias grep='grep --color=auto' | |
| # my ip | |
| alias realip='curl curlmyip.com' | |
| # git | |
| alias gdevpull='git checkout develop && git pull' | |
| alias gdelorphans='git branch -vv | grep '"': gone]'"' | awk '"'"'{print $1}'"'"' | xargs -n 1 git branch -d' |
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 | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| echo $DIR |
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 docker run \ | |
| -it \ | |
| --rm \ | |
| -p 443:443 \ | |
| -p 80:80 \ | |
| --name certbot \ | |
| -v "/etc/letsencrypt:/etc/letsencrypt" \ | |
| -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ | |
| certbot/certbot certonly --rsa-key-size 4096 |
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
| (function(){ | |
| let names = | |
| Array.prototype | |
| .map.call($('.ig-positions [data-automation="instrumentName"]'), x => x) | |
| .map(x => x.textContent.replace(/\sExpand/,'').trim()); | |
| let sizes = | |
| Array.prototype | |
| .map.call($('.ig-positions [data-automation="dealSize"]'), x => x) |
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
| -- file Spec.hs | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Control.Concurrent (threadDelay) | |
| import Control.Exception (evaluate) | |
| import qualified Data.ByteString.UTF8 as UTF8 | |
| import Data.List as List | |
| import Database.Redis (ConnectInfo, Connection, | |
| PortID (PortNumber), checkedConnect, | |
| connectHost, connectPort, |
For reference, my CPU:
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 2
Core(s) per socket: 8
Say we have three containers.
- A: a back-end API
- B: an nginx "router"
- C: a Chrome browser
when I launch the services, I want A to launch first, B afterwards, because it routes requests to A, and then C at the end, so it can make requests to B.
So right now, everytime I run the CI I get random results.
Some time, B complains that A is not there. Meaning that the host name A doesn't resolve to anything. So it's not able to route any request.
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 -it --rm -p 443:443 -p 80:80 --name certbot \ | |
| -v "/etc/letsencrypt:/etc/letsencrypt" \ | |
| -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ | |
| quay.io/letsencrypt/letsencrypt:latest renew --rsa-key-size 4096 |