This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $ivy.{ | |
`dev.zio::zio:1.0.17`, | |
`dev.zio::zio-test:1.0.17`, | |
`dev.zio::zio-interop-cats:13.0.0.1`, | |
`org.tpolecat::doobie-core:1.0.0-RC1`, | |
`org.tpolecat::doobie-postgres:1.0.0-RC1`, | |
`org.typelevel::cats-core:2.8.0` | |
} | |
import cats.syntax.all._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nsenter -n -t 2132 tcpdump -i eth0 -s 0 -A port 8000 -w capture.tcpdump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cats.effect.ExitCode | |
import monix.eval.{Task, TaskApp} | |
import monix.execution.Scheduler | |
import monix.execution.misc.Local | |
import cats.implicits._ | |
import monix.execution.schedulers.TracingScheduler | |
import java.util.concurrent.{CompletableFuture, TimeUnit} | |
import scala.compat.java8.FutureConverters.toScala | |
object TaskLocalApp extends TaskApp { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package commons | |
import scala.concurrent.ExecutionContext | |
import akka.actor.ActorSystem | |
case class Contexts(val actorSystem: ActorSystem) { | |
import Contexts._ | |
implicit val defaultCtx = DefaultExeCtx(play.api.libs.concurrent.Execution.defaultContext) | |
implicit val ctrlsCtx = CtrlExeCtx(defaultCtx.underlying) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function WebSocketTest() | |
{ | |
if ("WebSocket" in window) | |
{ | |
alert("WebSocket is supported by your Browser!"); | |
// Let us open a web socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Xft? | |
use_xft yes | |
xftfont DejaVu Sans:size=8 | |
xftalpha 0.8 | |
text_buffer_size 2048 | |
# Update interval in seconds | |
update_interval 1 | |
# This is the number of times Conky will update before quitting. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#shell -${SHELL} | |
defscrollback 2024 | |
startup_message off | |
#caption always "%{= kc}%H (system load: %l)%3n %t%? @%u%?%? %n(%t) %-21=%{= .m}%D %d.%m.%Y %0c" | |
hardstatus on | |
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=%D %M %d %c" | |
#hardstatus string '%{= kc}(system load: %l) %-Lw%{= KW}%50>%n%f %t%{= kK}%+Lw%< %{=kc}%-= %-21=%{= .m}%D %d.%m.%Y %0c' | |
hardstatus string '%{= kG}(Load: %l) %-Lw%{=b .W}%50>%n%f* %t%{-}%+Lw%< %{=kG}%-= %-21=%{= .G}%D %Y.%m.%d %0c' | |
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a " |
NewerOlder