Skip to content

Instantly share code, notes, and snippets.

View koctodox's full-sized avatar
🐙
In type we trust

Kian Jalali koctodox

🐙
In type we trust
View GitHub Profile
@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active February 28, 2024 00:27
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \
@samuelorji
samuelorji / build.sbt
Created December 18, 2019 10:55
build.sbt with java options
name := "phony"
version := "0.2"
scalaVersion := "2.12.6"
organization := "com.phony"
libraryDependencies += "com.googlecode.libphonenumber" % "libphonenumber" % "8.10.23"
scalacOptions := Seq( // commands passed to the scala compiler
"-feature",
"-unchecked",
"-deprecation",
@diegopacheco
diegopacheco / jvmtop-linux-java.md
Last active August 17, 2022 12:17
How to install and use JvmTOP?
wget https://github.com/patric-r/jvmtop/releases/download/0.8.0/jvmtop-0.8.0.tar.gz
tar -xzvf jvmtop-0.8.0.tar.gz
rm -rf jvmtop-0.8.0.tar.gz
chmod +x jvmtop.sh
./jvmtop.sh

More on: https://github.com/patric-r/jvmtop

@manjuraj
manjuraj / gist:8c767ac4d6814be2813e
Last active April 16, 2019 14:07
collect vs map, filter vs flatMap
// The collect method takes a PartialFunction as argument and maps the
// values defined for this partial function over it, skipping those
// outside the definition domain.
// Given a partial function pf, the following code:
//
// val pf: PartialFunction[A, B] =
// coll.collect(pf)
//
// is roughly equivalent to