Skip to content

Instantly share code, notes, and snippets.

View kaihendry's full-sized avatar

Kai Hendry kaihendry

View GitHub Profile
@kaihendry
kaihendry / gist:8f8a5dc352cb831f93e7ff48234e6117
Created May 19, 2024 06:10
02:00.0 Network controller: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 16
max scan IEs length: 138 bytes
max # sched scan SSIDs: 16
max # match sets: 16
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
❯ helm install op prometheus-community/kube-prometheus-stack
NAME: op
LAST DEPLOYED: Mon Mar 4 13:59:29 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
kube-prometheus-stack has been installed. Check its status by running:
kubectl --namespace default get pods -l "release=op"
@kaihendry
kaihendry / set-secret.sh
Created January 25, 2024 17:01
Store a secret
name=$1
value=$2
aws ssm put-parameter \
--name "${name}" --value "${value}" --type "SecureString"
@kaihendry
kaihendry / t14g3-6.0.6-arch1-1
Created October 31, 2022 06:08
journalctl -k -b -p err
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP1], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2.WWAN], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Failur
@kaihendry
kaihendry / t14g2
Created October 31, 2022 06:04
journalctl -k -b -p err
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP1], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP2.WWAN], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP0], AE_NOT_FOUND (20220331/dswload2-162)
Oct 31 10:03:23 t14g3 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20220331/psobject-220)
Oct 31 10:03:23 t14g3 kernel: ACPI BIOS Error (bug): Failur
@kaihendry
kaihendry / updates.txt
Created September 19, 2022 11:08
T14G3 wupdmgr get-updates
LENOVO 21CFCTO1WW
├─System Firmware:
│ │ Device ID: d96de5c124b60ed6241ebcb6bb2c839cb5580786
│ │ Summary: UEFI ESRT device
│ │ Current version: 0.1.17
│ │ Vendor: Lenovo (DMI:LENOVO)
│ │ Update State: Success
│ │ GUIDs: e40809b1-7d9f-4dc4-7c0f-8ace63b43687
│ │ 230c8b18-8d9b-53ec-838b-6cfc0383493a ← main-system-firmware
@kaihendry
kaihendry / gist:99b138f7ee41190f781697c6d1122c67
Created March 25, 2022 07:54
AWS Quick Start Template - go1.x
(ins)[hendry@t14s gotestaws]$ sam local invoke "HelloWorldFunction" -e event.json
Invoking hello-world (go1.x)
Image was not found.
Removing rapid images for repo public.ecr.aws/sam/emulation-go1.x
Building image...........................................................................................................................................................................................................................................................................................................................................................................................................
Skip pulling image and use local one: public.ecr.aws/sam/emulation-go1.x:rapid-1.40.1-x86_64.
Mounting /tmp/goaws/gotestaws/.aws-sam/build/HelloWorldFunction as /var/task:ro,delegated inside runtime container
START RequestId: ead74729-c4a7-4a60-814f-73edfba21cf4 Version: $LATEST
/var/task/hello-world: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /var/task/hello-world)
Resources:
WidgetsWidgetStore0ED7FDB7:
Type: AWS::S3::Bucket
UpdateReplacePolicy: Retain
DeletionPolicy: Retain
Metadata:
aws:cdk:path: MyWidgetServiceStack/Widgets/WidgetStore/Resource
WidgetsWidgetHandlerServiceRole8C2B589C:
Type: AWS::IAM::Role
Properties:
Aug 10 09:48:22 t14s kernel: usb 7-1: new SuperSpeed USB device number 2 using xhci_hcd
Aug 10 09:48:22 t14s kernel: usb 7-1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
Aug 10 09:48:22 t14s kernel: usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Aug 10 09:48:22 t14s kernel: usb 7-1: Product: Belkin USB-C LAN
Aug 10 09:48:22 t14s kernel: usb 7-1: Manufacturer: Belkin
Aug 10 09:48:22 t14s kernel: usb 7-1: SerialNumber: 000001000000
Aug 10 09:48:22 t14s kernel: usb 7-1: reset SuperSpeed USB device number 2 using xhci_hcd
Aug 10 09:48:22 t14s kernel: r8152 7-1:1.0: load rtl8153a-3 v2 02/07/20 successfully
Aug 10 09:48:22 t14s kernel: r8152 7-1:1.0 eth0: v1.12.11
(ins)(dlsuite) [hendry@t14s docdl]$ python schedule-dl.py
b'PK\x03\x04\x14\x00\x08\x08\x08\x00'...
Traceback (most recent call last):
File "/home/hendry/tmp/docdl/schedule-dl.py", line 34, in <module>
df = pd.read_excel(r'test.xlsx')
File "/home/hendry/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 299, in wrapper
return func(*args, **kwargs)
File "/home/hendry/.local/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 344, in read_excel
data = io.parse(
File "/home/hendry/.local/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1148, in parse