Skip to content

Instantly share code, notes, and snippets.

# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
# Written by: Senko Rasic <>
# Requires Linux, bash and inotifywait (from inotify-tools package).
# To avoid executing the command multiple times when a sequence of
rduplain /
Created Oct 8, 2012
Watch xscreensaver lock/unlock events and act on them.
# Watch xscreensaver and react to status changes.
# Replaced my previous perl-based recipe with this:
# Include somewhere in X session startup with:
# xscreensaver-watch &
channingwalton / build.sbt
Last active Dec 14, 2020
Scala 2.13 compiler flags
View build.sbt
val scalacOptions ++= Seq(
"utf-8", // Specify character encoding used by source files.
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-explaintypes", // Explain type errors in more detail.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-language:existentials", // Existential types (besides wildcard types) can be written and inferred
"-language:experimental.macros", // Allow macro definition (besides implementation and application)
"-language:higherKinds", // Allow higher-kinded types
"-language:implicitConversions", // Allow definition of implicit functions called views
poliveira89 / gist:5966434
Created Jul 10, 2013
How to use WebDav on Linux+XFCE+Thunar
View gist:5966434
haasn /
Last active Sep 17, 2021
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

brentsowers1 / AudaxHealthSoftwareEngineer.scala
Last active Sep 24, 2021
Audax Health is looking for good software engineers
View AudaxHealthSoftwareEngineer.scala
object AudaxHealthSoftwareEngineer {
val headline = """
Audax Health is hiring! Come join our incredible team of engineers in Washington, DC or San Francisco,
to help build the first truly social health platform, We've embraced Scala and the
Lift web framework for most of our software, so if you have experience in or want to learn Scala,
we're looking for you!
val requirementsDescription = """We don't have a firm list of requirements, we're just looking for
amitchhajer / Count Code lines
Created Jan 5, 2013
Count number of code lines in git repository per user
View Count Code lines
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n