Skip to content

Instantly share code, notes, and snippets.

Silvan Mosberger Infinisil

Block or report user

Report or block Infinisil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:34b88add870d2ea7e65ed836acbef437
[ 0.836971] hub 1-0:1.0: USB hub found
[ 0.837004] hub 1-0:1.0: 2 ports detected
[ 0.863257] scsi host2: Virtio SCSI HBA
[ 0.864233] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 0.888481] random: fast init done
[ 0.897795] sd 2:0:0:0: Power-on or device reset occurred
[ 0.897872] sd 2:0:0:0: [sda] 251658240 512-byte logical blocks: (129 GB/120 GiB)
[ 0.897880] sd 2:0:0:0: [sda] Write Protect is off
[ 0.897881] sd 2:0:0:0: [sda] Mode Sense: 63 00 00 08
[ 0.897894] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
View gist:dfb82cf44f5850d69e9ad9f10cb313b0
[ 0.836861] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.836862] usb usb1: Product: UHCI Host Controller
[ 0.836862] usb usb1: Manufacturer: Linux 4.19.87 uhci_hcd
[ 0.836863] usb usb1: SerialNumber: 0000:00:01.2
[ 0.836971] hub 1-0:1.0: USB hub found
[ 0.837004] hub 1-0:1.0: 2 ports detected
[ 0.863257] scsi host2: Virtio SCSI HBA
[ 0.864233] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 0.888481] random: fast init done
[ 0.897795] sd 2:0:0:0: Power-on or device reset occurred
View default.nix
with import <nixpkgs> {};
with lib;
let
toHex = elemAt (stringToCharacters "0123456789abcdef");
base64Mapping = let
charList = upperChars ++ lowerChars ++ genList toString 10 ++ [ "+" "/" ];
in
View gist:61e5c74fef27f9d8ddd983304c628d68
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>emailsrvr.com</org_name>
<email>dmarc_reports@emailsrvr.com</email>
<extra_contact_info>http://emailsrvr.com</extra_contact_info>
<report_id>XXXXXXXXXXXXXXX</report_id>
<date_range>
<begin>1568678400</begin>
<end>1568764800</end>
View dmesg
[ 6970.324986] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 6970.325399] ata2.00: supports DRM functions and may not be fully accessible
[ 6970.330883] ata2.00: disabling queued TRIM support
[ 6970.336773] ata2.00: supports DRM functions and may not be fully accessible
[ 6970.342249] ata2.00: disabling queued TRIM support
[ 6970.347862] ata2.00: configured for UDMA/33
[ 6970.347881] sd 1:0:0:0: [sdb] tag#15 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6970.347884] sd 1:0:0:0: [sdb] tag#15 Sense Key : Illegal Request [current]
[ 6970.347886] sd 1:0:0:0: [sdb] tag#15 Add. Sense: Unaligned write command
[ 6970.347889] sd 1:0:0:0: [sdb] tag#15 CDB: Read(10) 28 00 0a 20 08 20 00 00 e0 00
View overlay.nix
self: super: {
haskell = super.haskell // {
packageOverrides = super.lib.composeExtensions super.haskell.packageOverrides
(hself: hsuper: {
mkDerivation = args: hsuper.mkDerivation (args // {
doCheck = false;
});
});
};
}
View default.nix
with import <nixpkgs/lib>;
let
printf' =
result: # String
format: # [ Char ]
builtins.trace "printf' \"${result}\" \"${builtins.toJSON format}\"" (
if length format == 0 then result else
if head format == "%" then
View rts
#!/usr/bin/env bash
# Get from https://dev.twitch.tv/docs/api/#step-1-setup
clientId=
headers=$(mktemp)
get() {
if rg 'ratelimit-remaining: 0' "$headers" >/dev/null; then
echo "API limit reached, waiting for 3 seconds.." >&2
View rts
#!/usr/bin/env bash
# Get from https://dev.twitch.tv/docs/api/#step-1-setup
clientId=
headers=$(mktemp)
get() {
if rg 'ratelimit-remaining: 0' "$headers" >/dev/null; then
echo "API limit reached, waiting for 3 seconds.." >&2
View default.nix
{ lib, config, pkgs, ... }: {
imports = [
./hardware-configuration.nix
../../../external/nixpkgs/nixos/modules/profiles/all-hardware.nix
];
hardware.enableAllFirmware = true;
nixpkgs.config.allowUnfree = true;
You can’t perform that action at this time.