This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
event=ac_adapter ACPI0003:00 00000080 00000000 | |
action=/etc/acpi/actions/power-loss.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if running on battery (optional, but good practice) | |
on_ac=$(acpi -a | grep -c "on-line") | |
if [ "$on_ac" -eq 0 ]; then | |
logger "Power loss detected (ACPI event), initiating suspend." | |
systemctl suspend | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"math/rand" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name=$1 | |
value=$2 | |
aws ssm put-parameter \ | |
--name "${name}" --value "${value}" --type "SecureString" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
NewerOlder