Thread pools on the JVM should usually be divided into the following three categories:
- CPU-bound
- Blocking IO
- Non-blocking IO polling
Each of these categories has a different optimal configuration and usage pattern.
# Image neeeds to have ssh-client | |
image: docker:git | |
services: | |
- docker:dind | |
stages: | |
- staging | |
before_script: | |
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY |
import fansi.Str | |
import org.slf4j.LoggerFactory | |
import scala.util.Try | |
import scala.util.control.NonFatal | |
object TablePrinter { | |
val logger = LoggerFactory.getLogger(TablePrinter.getClass) |
brew options ffmpeg | |
brew install ffmpeg \ | |
--with-chromaprint \ | |
--with-fdk-aac \ | |
--with-fontconfig \ | |
--with-freetype \ | |
--with-frei0r \ | |
--with-game-music-emu \ | |
--with-libass \ |
<!-- all you need to know about log levels src: https://i.stack.imgur.com/Z5mag.png --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<logger name="com.datastax.driver.core.QueryLogger.SLOW" level="DEBUG" /> | |
<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern> %d{yyyy-MM-dd HH:mm:ss.SSS} [%level] %msg %n</pattern> | |
</encoder> | |
</appender> |
Ctrl + Alt + Space
This can be used to retreive files/binaries/information from docker containers.
#!/bin/bash
set -Eeuo pipefail
mkdir ./binary || true
# build most recent docker image
tmux, like other great software, is deceptive. On the one hand, it's fairly easy to get set up and start using right away. On the other hand, it's difficult to take advantage of tmux's adanced features without spending some quality alone time with the manual. But the problem with manuals is that they aren't geared toward beginners. They are geared toward helping seasoned developers and computer enthusiasts quickly obtain the
val scalacOptions = Seq( | |
"-encoding", | |
"utf-8", // Specify character encoding used by source files. | |
"-Ybackend-parallelism", // | |
"8", | |
"-explaintypes", // Explain type errors in more detail. | |
"-feature", // Emit warning and location for usages of features that should be imported explicitly. | |
"-unchecked", // Enable additional warnings where generated code depends on assumptions. | |
"-Xcheckinit", // Wrap field accessors to throw an exception on uninitialized access. | |
// "-Ymacro-annotations", // Enable support for macro annotations, formerly in macro paradise. |
require 'json' | |
require 'pry' | |
require 'uri' | |
require 'net/http' | |
class FocusMateNumSessions | |
# Step 1. Create a file somewhere in your filesystem. | |
# Call it fm_token_file.txt. Insert the path to the file into the line below | |
# Make sure to look at the reference .txt file and just paste | |
# that over. |