Skip to content

Instantly share code, notes, and snippets.

@lgirault
lgirault / tmux-cheatsheet.markdown
Created December 22, 2016 23:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
package p
import cats.Functor
case class Const[A, R](value: A)
object Const {
implicit def constFunctor[X]: Functor[Const[X, ?]] =
new Functor[Const[X, ?]] {
package p
import scalafix.util.SemanticdbIndex
import scala.meta._
class ResourceExtractorDbIndex(index: SemanticdbIndex) extends SemanticdbIndex {
private[this] var cache: Map[Symbol, Option[Defn]] = Map.empty
def document(s: Symbol): Option[Document] =
error: stack overflow (possible infinite recursion)
Command exited with non-zero status 1
Command being timed: "nix-instantiate default.nix -A mediarithmics-api.business-analytics"
User time (seconds): 1.13
System time (seconds): 0.23
Percent of CPU this job got: 98%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:01.38
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
{ callPackage, stdenv, makeWrapper, jdk, scala, sbt, writeText,
our-sbt-plugins }:
with stdenv.lib;
rec {
prepareSbtProject = args@{
repo, name, src,
groupId,
buildInputs ? [],
DEBUG] Target alias resources has already been registered. Overwriting!
DEBUG] using engine_version: f2d5ed1a811da574148593f5ce3b93e21c242bc0 built at repo_version: release_1.11.0rc1-5-ga43a47c
DEBUG] loading native engine python module from: /tmp/tmpHXmCbd
DEBUG] ProjectTree ignore_patterns: ['.*/', '/dist/']
DEBUG] Initializing ShardedLmdb at root "/home/lorilan/.cache/pants/lmdb_store/files"
DEBUG] starting background reactor
DEBUG] Making ShardedLmdb content database for "/home/lorilan/.cache/pants/lmdb_store/files/0"
DEBUG] Making ShardedLmdb lease database for "/home/lorilan/.cache/pants/lmdb_store/files/0"
DEBUG] Making ShardedLmdb content database for "/home/lorilan/.cache/pants/lmdb_store/files/1"
DEBUG] Making ShardedLmdb lease database for "/home/lorilan/.cache/pants/lmdb_store/files/1"
@lgirault
lgirault / ResourceExtractorDbIndex.scala
Created March 15, 2019 11:05
ResourceExtractorDbIndex update
package com.mediarithmics.schemaextractor
import org.scalameta.FileLine
import scalafix.internal.patch.CrashingSemanticdbIndex
import scalafix.internal.reflect.ClasspathOps
import scalafix.internal.v0.{LegacyInMemorySemanticdbIndex, LegacySemanticdbIndex}
import scalafix.util.SemanticdbIndex
import scalafix.v0.{Database, Denotation, Document, ResolvedName, Symbol}
import scala.meta.inputs.Position
@lgirault
lgirault / Dockerfile
Last active November 30, 2022 22:28
zero2prod on arm
FROM rust:latest as chef
WORKDIR /app
RUN apt update && apt upgrade -y
RUN apt install -y g++-arm-linux-gnueabihf libc6-dev-armhf-cross
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN cargo install cargo-chef