Skip to content

Instantly share code, notes, and snippets.

View ornicar's full-sized avatar
💭
⏚⏚⏚⏚

Thibault Duplessis ornicar

💭
⏚⏚⏚⏚
View GitHub Profile
❯ flutter devices
3 connected devices:
POCO F2 Pro (mobile) • 7f52bfb9 • android-arm64 • Android 12 (API 31)
Linux (desktop) • linux • linux-x64 • Arch Linux 5.19.11-arch1-1
Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.110
❯ flutter run -d 7f52bfb9
Running "flutter pub get" in mobile...
Resolving dependencies... (6.7s)
_fe_analyzer_shared 52.0.0 (57.0.0 available)
@ornicar
ornicar / java.flags.txt
Created December 6, 2022 10:36
java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal
/opt/jabba/jdk/openjdk@1.17/bin/java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal
[Global flags]
int ActiveProcessorCount = -1 {product} {default}
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} {default}
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} {default}
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} {default}
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} {default}
uintx AdaptiveSizePolicyOutputInterval = 0 {product} {default}
uintx AdaptiveSizePolicyWeight = 10
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:00 +0000] "GET /api/user/frodulec HTTP/1.1" 200 461 "-" "python-requests/2.28.1"
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:00 +0000] "GET /api/user/drnykterstein HTTP/1.1" 200 467 "-" "python-requests/2.28.1"
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:01 +0000] "GET /api/user/twarug HTTP/1.1" 200 503 "-" "python-requests/2.28.1"
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:01 +0000] "GET /api/user/ericrosen HTTP/1.1" 200 885 "-" "python-requests/2.28.1"
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:01 +0000] "GET /api/user/anishgiri HTTP/1.1" 200 800 "-" "python-requests/2.28.1"
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:02 +0000] "GET /api/user/rebeccaharris HTTP/1.1" 200 634 "-" "python-requests/2.28.1"
lichess.api.log.10.gz:78.11.190.4 - - [21/Jan/2023:08:57:06 +0000] "GET /api/users/status?ids=nihalsarin2004%2Cchessmaster2006%2Cdominikderboss%2Cpenguingim1%2Cblazinq%2Cragehunter%2Cfro
Game BSON fields: https://github.com/lichess-org/lila/blob/3a5c50a342c996a9880ec8ea7e37f5d645be5a5e/modules/game/src/main/Game.scala#L757-L799
Game.Player BSON fields: https://github.com/lichess-org/lila/blob/3a5c50a342c996a9880ec8ea7e37f5d645be5a5e/modules/game/src/main/Player.scala#L150-L161
must not be grouped:
- clock history (for lazy unpacking)
- status `s`
may be grouped together but not with other fields (used by LightGame)
- winnerColor `w`
600 25
601 1
602 1
603 2
604 2
605 2
606 2
607 2
608 2
609 2
## Metals Info
- Metals Server version: 0.11.9
- Build server currently being used is sbt v1.8.0.
- Metals Java: 17.0.5 from N/A located at /usr/lib/jvm/java-17-openjdk
These are the installed build targets for this workspace. One build target corresponds to one classpath. For example, normally one sbt project maps to two build targets: main and test.
## Build Targets
### scalachess
[Trace - 03:00:07 PM] Received notification 'textDocument/didSave'
Params: {
"textDocument": {
"uri": "file:///home/thib/scalachess/src/main/scala/format/UciDump.scala"
},
"text": "package chess\n [...]"
}
[Trace - 03:00:07 PM] Sending notification 'window/logMessage'
[info] Application quote not yet started
[info] Application common not yet started
[info] Application db not yet started
[info] Application hub not yet started
[info] Application search not yet started
[info] Application i18n not yet started
[info] Application socket not yet started
[info] Application rating not yet started
[info] Application user not yet started
[info] Application coordinate not yet started
@ornicar
ornicar / threads.txt
Created December 13, 2022 11:35
lila thread names list
"AsyncHttpClient-3-1" #61 prio=5 os_prio=0 cpu=24638.10ms elapsed=125688.97s tid=0x00007fadebd6bf20 nid=0x2bb6ee runnable [0x00007fab6dfe6000]
"AsyncHttpClient-3-10" #232 prio=5 os_prio=0 cpu=24634.77ms elapsed=125685.93s tid=0x00007fa970008690 nid=0x2bb7d0 runnable [0x00007fa7d85f4000]
"AsyncHttpClient-3-100" #938 prio=5 os_prio=0 cpu=22996.20ms elapsed=125652.10s tid=0x00007faa30028a50 nid=0x2bbb85 runnable [0x00007fa0642c8000]
"AsyncHttpClient-3-101" #939 prio=5 os_prio=0 cpu=21160.48ms elapsed=125652.07s tid=0x00007fab0804c090 nid=0x2bbb86 runnable [0x00007fa0641c7000]
"AsyncHttpClient-3-102" #940 prio=5 os_prio=0 cpu=22432.04ms elapsed=125652.07s tid=0x00007fab0804ee70 nid=0x2bbb87 runnable [0x00007fa0640c6000]
"AsyncHttpClient-3-103" #941 prio=5 os_prio=0 cpu=27280.17ms elapsed=125652.06s tid=0x00007fa94c00e190 nid=0x2bbb88 runnable [0x00007fa063fc5000]
"AsyncHttpClient-3-104" #946 prio=5 os_prio=0 cpu=29288.34ms elapsed=125649.52s tid=0x00007faa6402fa70 nid=0x2bbba3 runnable [0x00007fa05fdbf000]
@ornicar
ornicar / fr-FR.scala
Created December 12, 2022 13:58
/home/thib/lila/modules/i18n/target/scala-3.2.1/src_managed/main/fr-FR.scala
package lila.i18n
import I18nQuantity.*
// format: OFF
private object `fr-FR` {
def load: java.util.HashMap[MessageKey, Translation] =
val m = new java.util.HashMap[MessageKey, Translation](2352)
m.put("playWithAFriend",new Simple("""Jouer avec un(e) ami(e)"""))