This file contains 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
$ terraform plan | |
2023-05-31T12:57:28.618+1000 [INFO] Terraform version: 1.3.7 | |
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0 | |
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/hcl/v2 v2.15.0 | |
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2 | |
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 | |
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/zclconf/go-cty v1.12.1 | |
2023-05-31T12:57:28.618+1000 [INFO] Go runtime version: go1.19.4 | |
2023-05-31T12:57:28.618+1000 [INFO] CLI args: []string{"terraform", "plan"} | |
2023-05-31T12:57:28.618+1000 [DEBUG] Attempting to open CLI config file: /home/parallels/.terraformrc |
This file contains 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
while IFS=, read -r id secret; do echo -e "[default]\naws_access_key_id = $id\naws_secret_access_key = $secret" > credentials; done <<< $(tail -n1 accessKeys.csv) |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
#----------------------------------------------- | |
# REPOSITORY | |
# Define GitHub repository details | |
#----------------------------------------------- | |
readonly USER="111A5AB1" | |
readonly REPOSITORY_NAME="terraform-gitlab-repos" |
This file contains 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 all the input devices | |
xinput --list | |
⎡ Virtual core pointer id=2 [master pointer (3)] | |
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] | |
⎜ ↳ Broadcom Corp. Bluetooth USB Host Controller id=11 [slave pointer (2)] | |
⎜ ↳ bcm5974 id=13 [slave pointer (2)] | |
⎣ Virtual core keyboard id=3 [master keyboard (2)] | |
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] | |
↳ Power Button id=6 [slave keyboard (3)] |
Detach any other clients from the sessions when you attach. This is useful to resolve the dots and tmux #x# size from a smaller client
tmux attach -d
View changes between HEAD and previous commit:
git diff HEAD^ HEAD
View changes between HEAD and <commit_id>:
git diff 0232ea938e607942e3e477e4a72e5e7fbf3dc496 HEAD
This file contains 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 | |
# Will output the latest firmware version and download URL for the Ubuqiti USG | |
# Depends on curl (https://curl.haxx.se/) and jq (https://stedolan.github.io/jq/) | |
curl -s 'https://www.ubnt.com/download/?group=usg' -H 'x-requested-with: XMLHttpRequest' | ./jq-osx-amd64 -c '[ .downloads[] | select(.category__slug=="firmware")] | max_by(.version) | {Version: .version, File: @text "https://dl.ubnt.com\(.file_path)" }' |
This file contains 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
set firewall options mss-clamp interface-type all | |
set firewall options mss-clamp mss 1380 | |
set firewall options mss-clamp6 interface-type all | |
set firewall options mss-clamp6 mss 1360 |
This file contains 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
root@ubnt:~# cd /opt/vyatta/share/vyatta-cfg/templates/firewall/all-ping | |
root@ubnt:/opt/vyatta/share/vyatta-cfg/templates/firewall/all-ping# cat node.def | |
# icmp_echo_ignore_all | |
# default value - 0 | |
# If set non-zero, then kernel will ignore all ICMP ECHO requests sent to it | |
type: txt | |
help: Policy for handling of all IPv4 ICMP echo requests |
NewerOlder