Skip to content

Instantly share code, notes, and snippets.

View onchange.sh
#!/bin/bash
#
# 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 <senko.rasic@dobarkod.hr>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of
@rduplain
rduplain / xscreensaver-watch.sh
Created Oct 8, 2012
Watch xscreensaver lock/unlock events and act on them.
View xscreensaver-watch.sh
#!/bin/sh
# Watch xscreensaver and react to status changes.
#
# Replaced my previous perl-based recipe with this:
# http://semicomplete.googlecode.com/svn/tools/xscreensaver-watch.sh
#
# Include somewhere in X session startup with:
#
# xscreensaver-watch &
@channingwalton
channingwalton / build.sbt
Last active Dec 14, 2020
Scala 2.13 compiler flags
View build.sbt
val scalacOptions ++= Seq(
"-encoding",
"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
poliveira89 / gist:5966434
Created Jul 10, 2013
How to use WebDav on Linux+XFCE+Thunar
View gist:5966434
davs://poliveira@some.webserver.pt/webdav/someFolder
@haasn
haasn / about:config.md
Last active Sep 17, 2021
Firefox bullshit removal via about:config
View about:config.md

Firefox bullshit removal

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

@brentsowers1
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, Zensey.com. 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
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