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: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;
View gist:c32ce43c2c4d09205003cdce0b268d23
Ip:
Forwarding: 1
22745 total packets received
0 forwarded
0 incoming packets discarded
15821 incoming packets delivered
317451 requests sent out
164575 dropped because of missing route
Icmp:
1697 ICMP messages received
View ipaddr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 2c:56:dc:3b:19:f8 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.36/24 brd 192.168.178.255 scope global noprefixroute eno1
valid_lft forever preferred_lft forever
View ip.nix
lib: rec {
parseIp = str: map lib.toInt (builtins.match "([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.([0-9]+)" str);
prettyIp = lib.concatMapStringsSep "." toString;
cidrToMask =
let
# Generate a partial mask for an integer from 0 to 7
# part 1 = 128
# part 7 = 254
part = n:
You can’t perform that action at this time.