This repository contains two examples of how to monitor google.com every 5 minutes using a Bash script and a Go application.
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":"arya2004_g14_personal","settings":"{\"settings\":\"{\\r\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\r\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\r\\n \\\"git.suggestSmartCommit\\\": false,\\r\\n \\\"editor.fontFamily\\\": \\\"'Cascadia Mono',Cascadia Mono,Consolas, 'Courier New', monospace\\\",\\r\\n \\\"editor.fontSize\\\": 16,\\r\\n \\\"terminal.integrated.enableMultiLinePasteWarning\\\": false,\\r\\n \\\"solidity.telemetry\\\": false,\\r\\n \\\"github.copilot.enable\\\": {\\r\\n \\\"COBOL\\\": true,\\r\\n \\\"COBOLIT\\\": true,\\r\\n \\\"ACUCOBOL\\\": true,\\r\\n \\\"BITLANG-COBOL\\\": true,\\r\\n \\\"RMCOBOL\\\": true,\\r\\n \\\"ILECOBOL\\\": true,\\r\\n \\\"COBOL_MF_LISTFILE\\\": false,\\r\\n \\\"COBOL_PCOB_LISTFILE\\\": false,\\r\\n \\\"COBOL_ACU_LISTFILE\\\": false,\\r\\n \\\"COBOL_MF_PREP\\\": false,\\r\\n \\\"mfu\\\": false,\\r\\n \\\"utreport\\\": false,\\r\\ |
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 | |
| set -euo pipefail | |
| # ===== CONFIG ===== | |
| CONFIRM=${CONFIRM:-yes} | |
| PARALLEL_REGION_JOBS=${PARALLEL_REGION_JOBS:-1} | |
| RDS_SKIP_FINAL_SNAPSHOT=${RDS_SKIP_FINAL_SNAPSHOT:-true} | |
| # ===== HELPER FUNCS ===== | |
| confirm() { |
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 ( | |
| "fmt" | |
| "math" | |
| ) | |
| // Dual represents a dual number: a + bε. | |
| type Dual struct { | |
| Real float64 |
This Gist contains the code examples from the blog post Mastering Slices in Go: Deep Dive into Nil vs Empty Slices, Capacity, and Length.
This Gist contains all the code examples from the article Deep Dive into Closures in Go: Theoretical Foundations and Practical Applications. The article explores closures in Go, delving into both the theoretical underpinnings and practical applications.
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 ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| for i := 0; i < 3; i++ { | |
| file, err := os.Open("example.txt") |
- Identify Your Laptop Keyboard Device ID:
Open a terminal and run:
This command will display a list of all input devices connected to your system. Look for an entry that corresponds to your laptop keyboard, such as "AT Translated Set 2 keyboard" or something similar. Note down the device ID (e.g., 11).
xinput list

