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
--list private ip addresses from the specified <subnet-id> | |
aws ec2 describe-network-interfaces --filters Name=subnet-id,Values=<subnet-id> | jq -r '.NetworkInterfaces[].PrivateIpAddress' | sort | |
--list dependencies of a security group | |
aws ec2 describe-network-interfaces --filters Name=group-id,Values=<security-group-id> |
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
kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE> |
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
#This command solves a recurrent audio problem on my Dell G3 3590 | |
#For some reason the audio suddenly loses definition in some random situations (during video calls, after screen blank, etc) | |
sudo kernelstub -a "i915.enable_psr=0" | |
#Hardware info (neofetch output): | |
# ///////////// lbarbieri@pop-os | |
# ///////////////////// ---------------- | |
# ///////*767//////////////// OS: Pop!_OS 22.04 LTS x86_64 | |
# //////7676767676*////////////// Host: G3 3590 | |
# /////76767//7676767////////////// Kernel: 6.4.6-76060406-generic |
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
SELECT setval(pg_get_serial_sequence('table_name', 'id'), coalesce(max(id),0) + 1, false) FROM table_name; |
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
SELECT last_value FROM sequence_name; |
OlderNewer