Skip to content

Instantly share code, notes, and snippets.

View godeater's full-sized avatar

Bryan Childs godeater

View GitHub Profile
@godeater
godeater / day4.ps1
Created December 4, 2023 09:45
A note quite working Day 4 part 1 for 2023 advent of code in Powershell. Passes the sample data, but not the real input - comes out too high.
param(
[Parameter(Mandatory=$false)]
[bool]$sample = $false
)
Import-Module $PSScriptRoot/../_lib/aoc.psm1
$input_file = @(
"Card 1: 41 48 83 86 17 | 83 86 6 31 17 9 48 53",
"Card 2: 13 32 20 16 61 | 61 30 68 82 17 32 24 19",
"Card 3: 1 21 53 59 44 | 69 82 63 72 16 21 14 1",
This file has been truncated, but you can view the full file.
2019-10-17 15:37:05 - [sway/main.c:152] Linux aphrodite 5.3.6-arch1-1-ARCH #1 SMP PREEMPT Fri Oct 11 18:28:05 UTC 2019 x86_64 GNU/Linux
2019-10-17 15:37:05 - [sway/main.c:168] Contents of /etc/os-release:
2019-10-17 15:37:05 - [sway/main.c:152] NAME="Arch Linux"
2019-10-17 15:37:05 - [sway/main.c:152] PRETTY_NAME="Arch Linux"
2019-10-17 15:37:05 - [sway/main.c:152] ID=arch
2019-10-17 15:37:05 - [sway/main.c:152] BUILD_ID=rolling
2019-10-17 15:37:05 - [sway/main.c:152] ANSI_COLOR="0;36"
2019-10-17 15:37:05 - [sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2019-10-17 15:37:05 - [sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2019-10-17 15:37:05 - [sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
2017-03-09 07:45:19.052 ./rw_password 2017-03-09 07:45:19.052 hash 2017-03-09 07:45:19.053 -password=one 2017-03-09 07:45:19.053
2017-03-09 07:45:19.054 cli_dcl_parse()
2017-03-09 07:45:19.054 after cleanup()
2017-03-09 07:45:19.055 in stristr()
2017-03-09 07:45:19.055 stristr() - sStringToBeSearched [hash -password=one ], sSubstringToSearchFor [-center_pa]
2017-03-09 07:45:19.056 stristr() - sSubstringToSearchFor was not found
2017-03-09 07:45:19.056 in stristr()
2017-03-09 07:45:19.057 stristr() - sStringToBeSearched [hash -password=one ], sSubstringToSearchFor [-center_run_as_p]
2017-03-09 07:45:19.057 stristr() - sSubstringToSearchFor was not found
2017-03-09 07:45:19.058 in stristr()

Keybase proof

I hereby claim:

  • I am godeater on github.
  • I am godeater (https://keybase.io/godeater) on keybase.
  • I have a public key whose fingerprint is 993E 903F 728C F711 B5D3 CEC7 3FE6 D14B A485 C098

To claim this, I am signing this object:

## Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", OWNER="<username>"
## ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", OWNER="<username>"
## Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", OWNER="<username>"
## Foxconn