openpgp4fpr:535FFD2607AFCB2C97831159CD1D679C615C17C8
This file contains hidden or 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
| **Chapter 1** | |
| **The Anomaly at Farside** | |
| The silence of Farside Station was not a natural occurrence, but a meticulously | |
| engineered state. It was an absolute, profound quiet that existed nowhere on | |
| the turbulent sphere of Earth. Three thousand kilometers of dense lunar rock | |
| served as the ultimate shield, blocking the ceaseless electromagnetic chatter | |
| of human civilization—the broadcasts, the communications relays, the very hum | |
| of the planetary power grid. Here, on the far side of the Moon, the Universe |
This file contains hidden or 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
| (ns datomic-traverser | |
| (:require [clojure.set :as set] | |
| [datomic.api :as d] | |
| [loom.graph :as graph] | |
| [loom.alg :as alg])) | |
| ;; An implementation of Loom graph backed by a Datomic db, where nodes are | |
| ;; Datomic entities and edges are determined by datoms of attribute type ref, | |
| ;; filtered with forward-attr-blacklist and backward-attr-whitelist. | |
| ;; node-subset, when present, will restrict the nodes and edges to those |
This file contains hidden or 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
| (ns psithur.data-studio.cloud-run.start | |
| (:require | |
| [clojure.stacktrace :as st] | |
| [clojure.string] | |
| [jsonista.core :as jsonista] | |
| [taoensso.telemere :as tele] | |
| [taoensso.telemere.utils :as utils])) | |
| ; Make sure interop is working | |
| (assert |
This file contains hidden or 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
| { config, pkgs, lib, ... }: | |
| let | |
| # bash script to let dbus know about important env variables and | |
| # propagate them to relevent services run at the end of sway config | |
| # see | |
| # https://github.com/emersion/xdg-desktop-portal-wlr/wiki/"It-doesn't-work"-Troubleshooting-Checklist | |
| # note: this is pretty much the same as /etc/sway/config.d/nixos.conf but also restarts | |
| # some user services to make sure they have the correct environment variables | |
| dbus-sway-environment = pkgs.writeTextFile { |
This file contains hidden or 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
| #!/usr/bin/env bb | |
| ;; usage: | |
| ;; $ find-var.clj babashka.main/main src:test | |
| ;; example output: | |
| ;; src/babashka/main.clj:672:32 | |
| ;; src/babashka/main.clj:673:22 | |
| ;; src/babashka/main.clj:676:28 | |
| ;; test/babashka/test_utils.clj:31:59 |
This file contains hidden or 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
| from pySMART import Device, DeviceList | |
| import subprocess, datetime, time, logging, sys | |
| #below this triggers an alert and fans spin up | |
| MIN_FAN = 10 | |
| MAX_FAN = 64 | |
| IPMI_SLEEP_DELAY = 2 | |
| SYS_FAN_THRESH = [55, 50, 45, 00] | |
| SYS_FAN_SPEEDS = [64, 48, 30, MIN_FAN] |
I hereby claim:
- I am xlfe on github.
- I am xlfe (https://keybase.io/xlfe) on keybase.
- I have a public key whose fingerprint is 535F FD26 07AF CB2C 9783 1159 CD1D 679C 615C 17C8
To claim this, I am signing this object:
This file contains hidden or 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 sys, os, json | |
| import datetime | |
| sys.path.append(os.path.expanduser('~/google-cloud-sdk/platform/google_appengine/')) | |
| from google.appengine.api.files import records | |
| from google.appengine.datastore import entity_pb | |
| from google.appengine.api import datastore | |
| def myconverter(o): | |
| if isinstance(o, datetime.datetime): |
This file contains hidden or 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
| # coding: utf-8 | |
| # #CVE and CWE formatting to TSV | |
| # In[217]: | |
| from jsonpath_ng import jsonpath, parse | |
| import csv |
NewerOlder