openpgp4fpr:535FFD2607AFCB2C97831159CD1D679C615C17C8
This file contains 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 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 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] |
This file contains 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
#!/bin/bash -x | |
# Deploy a jekyll site to a s3 bucket with gzip compression of html/js/css files | |
# | |
# To use - place in your root directory of your jekyll | |
# site, and edit the BUCKET="<YOUR_S3_BUCKET>" variable at the top | |
# to reflect the S3 bucket you're uploading to. | |
# | |
# You will need to have jekyll, and s3cmd already setup | |
# (and it relies upon standard *nix utilities like find, |
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 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 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 graphviz import Digraph | |
edges = set() | |
dot = Digraph(graph_attr={ | |
'overlap':'false', | |
'outputorder':'edgesfirst' | |
}) | |
ioc = dot.node('OpenIOC') |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains 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
ArpEntryItem/CacheType | |
ArpEntryItem/IPv4Address | |
ArpEntryItem/Interface | |
ArpEntryItem/PhysicalAddress | |
CookieHistoryItem/BrowserName | |
CookieHistoryItem/BrowserVersion | |
CookieHistoryItem/CookieFlags | |
CookieHistoryItem/CookieName | |
CookieHistoryItem/CookiePath | |
CookieHistoryItem/CookieValue |
This file contains 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
<?xml version="1.0"?> | |
<Product xmlns="http://admin.privatehealth.gov.au/ws/Schemas" ProductID="cbccc173-486f-413d-b01f-2aa14e17da34" FundID="669a2e89-165a-4419-b1a8-f1e01db76178" ProductCode="J20/N0500S" Iteration="9" Status="Approved" StatusDate="2014-02-13T11:19:00" DateModified="2014-02-04T12:06:00" DateCreated="2014-02-04T12:06:00" PublishDate="01-Apr-14 00:00" DateApproved="2014-02-13T11:19:44"> | |
<FundCode>NIB</FundCode> | |
<TableCode>J20</TableCode> | |
<Name>Basic Saver $250 Excess</Name> | |
<ProductStatus>Open</ProductStatus> | |
<DateValidFrom>2014-04-01</DateValidFrom> | |
<DateIssued>2014-04-01</DateIssued> | |
<State>NSW</State> | |
<Category>Single</Category> |
NewerOlder