Skip to content

Instantly share code, notes, and snippets.

View ptxmac's full-sized avatar
🏍️

Peter Kristensen ptxmac

🏍️
View GitHub Profile
@ptxmac
ptxmac / bazel
Created February 24, 2024 16:07
bazel wrapper to automatically trigger gazelle
#!/usr/bin/env bash
# Small bazel wrapper than will trigger gazelle if bazel returns a missing dependencies error.
tempfile=$($BAZEL_REAL info command_log)
$BAZEL_REAL "$@"
res=$?
if [[ $res -gt 0 ]]; then
if grep "missing strict dependencies" $tempfile; then
echo "Bazel failed with missing strict dependencies. Running gazelle, then rerunning."

Keybase proof

I hereby claim:

  • I am ptxmac on github.
  • I am ptx (https://keybase.io/ptx) on keybase.
  • I have a public key ASBbrvJEVd0M4ye3yXHlpWkVf62oQXCtiAWQFChdK6JJrAo

To claim this, I am signing this object:

import XMonad
import XMonad.Layout.NoBorders
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers(isFullscreen,doFullFloat)
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops -- fix fullscreen
import XMonad.Util.EZConfig(additionalKeysP)
import XMonad.Util.Run(spawnPipe)
import XMonad.Hooks.ICCCMFocus
import System.IO
(require 'request)
(defun osaa-state ()
"Get the state of OSAA from spaceapi"
(interactive)
(request "http://spaceapi.osaa.dk/status/json"
:parser 'json-read
:success (function* (lambda (&key data
&allow-other-keys)