Skip to content

Instantly share code, notes, and snippets.

View zerosign's full-sized avatar
🏠
Working from home

zerosign zerosign

🏠
Working from home
View GitHub Profile
#![feature(const_generics, const_fn)]
/// Local Variables:
/// rmsbolt-command: "rustc -C opt-level=3"
/// rmsbolt-disassemble: nil
/// End:
use std::{fmt, marker::PhantomData, ops};
pub trait AsIndex {
const SIZE: usize;
com/android/tools/r8/BackportedMethodList
com/android/tools/r8/D8CommandParser
com/android/tools/r8/D8
com/android/tools/r8/DexRoundTrip
com/android/tools/r8/DexSegments
com/android/tools/r8/ExtractMarker
com/android/tools/r8/GenerateMainDexList
com/android/tools/r8/Disassemble
com/android/tools/r8/JarDiff
object IndonesianTaxes {
import scala.math.BigDecimal
object PTKP {
trait Type {
val TK0 : BigDecimal
val TK1 : BigDecimal
val TK2 : BigDecimal
val TK3 : BigDecimal
val K0 : BigDecimal

To be able to use most up to date dotty-language-server by yourself.

project dotty-language-server
compile
package
publishLocal
@zerosign
zerosign / Count.java
Last active April 27, 2020 06:18
typesafe compile time manual dotty builder pattern example
public interface Count {
}
// dotc codegen
import java.io.Serializable;
import scala.Function1;
import scala.runtime.BoxesRunTime;
import scala.runtime.ModuleSerializationProxy;
public final class A$ implements Function1, Serializable, scala.deriving.Mirror.Product {
public static final A$ MODULE$;
https://en.wikipedia.org/wiki/Seven_basic_tools_of_quality
https://en.wikipedia.org/wiki/Five_whys
presentations:
- define actors (stackholders) & resource definitions
- define problem space
- breakdown the problem space to specific topics
- drill down the metrics for each specific topics (in high level)
- track the progress to the solution
diff.query
diff.rule
dsl.rule
the dsls are mostly focuses in generating rules in prometheus this will generate
yaml output
dsl.query
@zerosign
zerosign / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
Created February 15, 2020 06:29 — forked from Brainiarc7/ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware

Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:

Considerations to take when live streaming:

The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:

  1. Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.

  2. Set up the encoders as shown:

use hello_world::{sample_client::SampleClient, SeqNum, User};
use futures::{
future::{join_all, FutureExt},
stream::{FuturesUnordered, StreamExt},
};
use tokio::{
prelude::*,
runtime::{Builder, Handle, Runtime},
sync::Mutex,