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
<<< Welcome to NixOS 19.09pre-git (x86_64) - ttyS1 >>> | |
jupiter-stage login: [ OK ] Stopped target Timers. | |
Stopping Hardware RNG Entropy Gatherer Daemon... | |
[ Stopping Serial Getty on ttyS1... | |
Stopping Getty on tty1... | |
[ OK ] Stopped target Containers. | |
[ OK ] Stopped S.M.A.R.T. Daemon. | |
[ OK ] Stopped Hardware RNG Entropy Gatherer Daemon. |
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
var https = require('https'); | |
var util = require('util'); | |
function postToSlack(postData) { | |
var options = { | |
method: 'POST', | |
hostname: 'hooks.slack.com', | |
port: 443, | |
path: process.env.SLACK_WEBHOOK | |
}; |
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
with import <nixpkgs> {}; | |
with emacsPackagesNg; | |
melpaBuild { | |
pname = "nix-mode"; | |
version = "1.4.0"; | |
recipe = writeText "recipe" '' | |
(nix-mode | |
:repo "nixos/nix-mode" :fetcher github | |
:files ("nix*.el")) | |
''; |
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 bash | |
if swaymsg -t get_outputs | grep 36H03689019; then | |
echo home dock | |
swaymsg 'output "Unknown 0x00000000" enable position 0 0 mode 2560x1440@59.951Hz bg ~/wp/"001 - Aalborg.jpg" stretch, output "Unknown BenQ GW2765 36H03689019" enable position 2560 0 mode 2560x1440@59.951Hz bg ~/wp/"002 - Alkali.jpg" stretch, output eDP-1 disable' | |
~/dotfiles/bin/setdpi.sh 109 | |
systemctl --user restart waybar | |
elif swaymsg -t get_outputs | grep GH85D7CK1CXL; then | |
echo work dock | |
BG='bg /home/yorick/work/share/"01. General/06. Branding/Logo/New Logo & Stationary 2019/logo"/logo-01.png fit '#fdf6e3'' | |
swaymsg 'output eDP-1 enable position 0 1440 scale 2, output DP-3 enable position 0 0 '$BG', output DP-4 enable position 2560 0 '$BG |
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
# get the all-cabal-files .git directory | |
let | |
url = "https://github.com/commercialhaskell/all-cabal-files"; | |
displayrev = "e1017e420cf649cb6850d0b499cae591d888a9dd"; # rev of the 'display' branch commit | |
# 1vnc..x4 = echo -n ${url} | nix-hash --flat --base32 --type sha256 | |
path = "${builtins.getEnv "HOME"}/.cache/nix/gitv2/1vncd1k9gq9imn78zxzp0kf2bphlyph471vsr2wk3sk65xi9w1x4"; | |
in | |
builtins.deepSeq (builtins.deepSeq | |
(builtins.fetchGit { inherit url; rev = displayrev; ref = "display"; }) # first: make display branch checkout work | |
(builtins.fetchGit { inherit url; rev = displayrev; ref = "hackage"; }) # then fetch hackage branch |
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, lib, pkgs, ... }: | |
let | |
cfg = config.services.acme-sh; | |
dnstype = lib.types.enum [ "dns_aws" "dns_dnsimple" ]; | |
submod = with lib; { | |
domains = mkOption { | |
type = types.coercedTo (types.listOf types.string) | |
(f: lib.genAttrs f (x: cfg.dns)) (types.attrsOf dnstype); | |
default = { "${cfg.mainDomain}" = cfg.dns; }; |
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
const r2 = require('r2') | |
const $ = require('cheerio') | |
const unzipper = require('unzipper') | |
const fs = require('fs') | |
const BASE = "http://packs.download.atmel.com/" | |
const preamble = ` | |
from collections import namedtuple, defaultdict | |
__all__ = ["devices", "devices_by_signature"] |
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
$ binwalk as-installer-7.0.1931-full.exe | |
DECIMAL HEXADECIMAL DESCRIPTION | |
-------------------------------------------------------------------------------- | |
0 0x0 Microsoft executable, portable (PE) | |
1311671 0x1403B7 XML document, version: "1.0" | |
1328640 0x144600 Microsoft Cabinet archive data, 1184073 bytes, 44 files | |
2512849 0x2657D1 Certificate in DER format (x509 v3), header length: 4, sequence length: 1006 | |
2513859 0x265BC3 Certificate in DER format (x509 v3), header length: 4, sequence length: 1187 | |
2515050 0x26606A Certificate in DER format (x509 v3), header length: 4, sequence length: 1221 |
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
{ stdenv, | |
lib, | |
fetchFromGitHub, | |
rustPlatform, | |
cmake, | |
makeWrapper, | |
ncurses, | |
expat, | |
pkgconfig, | |
freetype, |
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
(setq wl-copy-process nil) | |
(defun wl-copy (text) | |
(setq wl-copy-process (make-process :name "wl-copy" | |
:buffer nil | |
:command '("wl-copy" "-f" "-n") | |
:connection-type 'pipe)) | |
(process-send-string wl-copy-process text) | |
(process-send-eof wl-copy-process)) | |
(defun wl-paste () | |
(if (and wl-copy-process (process-live-p wl-copy-process)) |