Skip to content

Instantly share code, notes, and snippets.

Avatar

Silvan Mosberger Infinisil

View GitHub Profile
View what.sh
#!/usr/bin/env bash
# This works:
while read input; do
echo "$input"
done <<< "foo
bar"
# This exits after the first entry!
View gist:1a57845ee3ea213eec5c9f3ee5874847
#!/usr/bin/env bash
# This works:
while read input; do
echo "$input"
done <<< "foo
bar"
# This exits after the first entry!
View rfc64_notes_1.txt
Domen
do we want to have a poll?
or rather a survey?
is weight of all people the same?
should the poll require some investment (given that contributing to docs isn't trivial)
View main.cr
print "Hello there\n"
sleep 1.seconds
print "test\n"
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;
});
});
};
}
You can’t perform that action at this time.