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 ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
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 | |
| # First line of the script is shebang which tells the system how to execute | |
| # the script: http://en.wikipedia.org/wiki/Shebang_(Unix) | |
| # As you already figured, comments start with #. Shebang is also a comment. | |
| # Simple hello world example: | |
| echo Hello world! # => Hello world! | |
| # Each command starts on a new line, or after semicolon: | |
| echo 'This is the first line'; echo 'This is the second line' |
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
| // Single line comment | |
| /* Multi- | |
| line comment */ | |
| // A package clause starts every source file. | |
| // Main is a special name declaring an executable rather than a library. | |
| package main | |
| // Import declaration declares library packages referenced in this file. | |
| import ( |
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
| # Single line comments start with a number symbol. | |
| """ Multiline strings can be written | |
| using three "s, and are often used | |
| as comments | |
| """ | |
| #################################################### | |
| # 1. Primitive Datatypes and Operators | |
| #################################################### |
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 get secret --namespace default lumpy-jackal-grafana -o jsonpath="{.data.grafana-admin-password}" | base64 --decode ; echo | |
| kubectl get secret --namespace default lumpy-jackal-grafana -o yaml | |
| echo "YWRtaW4=" | base64 -D ; echo |
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
| { | |
| "ignition": { | |
| "version": "2.0.0", | |
| "config": {} | |
| }, | |
| "storage": {}, | |
| "systemd": {}, | |
| "networkd": {}, | |
| "passwd": { | |
| "users": [ |
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
| sudo lsof -PiTCP -sTCP:LISTEN |
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 Manager | |
| Cleanup Command | |
| yum | |
| yum clean all | |
| dnf | |
| dnf clean all | |
| rvm | |
| rvm cleanup all | |
| gem | |
| gem cleanup |
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
| # finds and deletes files newer than 1 min | |
| find . -type f -cmin -1 -delete |
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
| VBoxManage convertfromraw --format VDI [filename].img [filename].vdi |