Skip to content

Instantly share code, notes, and snippets.

View clementi's full-sized avatar
🎵
NP: Farrenc: Symphony No. 3 in G Minor, O… (10:07/10:33)

Jeff Pratt clementi

🎵
NP: Farrenc: Symphony No. 3 in G Minor, O… (10:07/10:33)
View GitHub Profile
@clementi
clementi / tothedeath
Last active January 30, 2024 16:14
Run a shell command repeatedly until it fails
#! /usr/bin/env python3
import subprocess
from sys import argv
def main():
if len(argv) < 2:
print('Usage: {} <shell command>'.format(argv[0]))
exit(1)
@clementi
clementi / dns.md
Last active May 24, 2023 15:27
Public DNS Servers
@clementi
clementi / feedburner-pinger.rkt
Last active January 13, 2023 22:13
Ping FeedBurner with FeedBurner-Pinger
#lang racket
(require net/http-client)
(require net/uri-codec)
(require json)
(define (ping url)
(define-values (status headers port)
(http-sendrecv "feedburner-pinger.herokuapp.com"
"/"
@clementi
clementi / scala-libraries-and-tools.md
Last active October 28, 2022 22:42
Scala Libraries and Tools

Scala Libraries and Tools

A curated List of useful or interesting libraries and tools for Scala programming. See also the Scala Toolbox.

Libraries

Name Description URL
Akka HTTP The Akka HTTP modules implement a full server- and client-side HTTP stack on top of akka-actor and akka-stream. https://doc.akka.io/docs/akka-http/current
Akka Stream The purpose is to offer an intuitive and safe way to formulate stream processing setups such that we can then execute them efficiently and with bounded resource usage—no more OutOfMemoryErrors. https://doc.akka.io/docs/akka/current/stream
@clementi
clementi / java-libraries.md
Last active August 31, 2022 23:04
Java Libraries

Java Libraries

A curated List of useful or interesting libraries for Java programming.

Name Description URL
Akka Akka is a toolkit for building highly concurrent, distributed, and resilient message-driven applications for Java and Scala. https://akka.io
Akka HTTP The Akka HTTP modules implement a full server- and client-side HTTP stack on top of akka-actor and akka-stream. https://doc.akka.io/docs/akka-http/current
Akka Stream The purpose is to offer an intuitive and safe way to formulate stream processing setups such that we can then execute them efficiently and with bounded resource usage—no more OutOfMemoryErrors. https://doc.akka.io/docs/akka/current/stream
Alpakka The Alpakka project is an open source initiative to implement stream-aware and reactive integration pipelines for Java and Scala. https://doc.akka.io/docs/alpakka/current
@clementi
clementi / g8-templates.md
Last active March 15, 2022 22:42
Useful Giter8 Templates

Useful Giter8 Templates

Name Description
akka/akka-quickstart-scala.g8 A minimal seed template for an Akka with Scala build
clementi/cats-effect-seed.g8 Scala SBT project with Cats and Cats-Effect
devinsideyou/scala3-seed.g8 A Giter8 template for a fully configured Scala3 SBT single but multibuild ready project. It is configured in a slightly opinionated but mostly dependency free fashion.
http4s/http4s.g8 Scala SBT project with http4s
scala/scala-seed.g8 Barebones Scala SBT project
scala/scala3-cross.g8 Scala 3 and Scala 2 cross-compiled sbt template
@clementi
clementi / init.vim
Created February 19, 2022 18:52
Neovim init.vim for compatibility with Vim
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vim/vimrc
@clementi
clementi / kleene2.hs
Last active December 18, 2021 18:12
Kleene (3-valued) logic in Haskell
data Expr = T
| F
| U
| Not Expr
| And Expr Expr
| Or Expr Expr
| Impl Expr Expr
| Equiv Expr Expr
deriving Show
@clementi
clementi / lspath.groovy
Last active July 13, 2021 21:39
List the contents of the PATH environment variable in Groovy.
System.getenv("PATH")
.split(File.pathSeparator)
.each { println it }
@clementi
clementi / sbt-plugins.md
Last active May 25, 2021 20:36
sbt plugins