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
| -- JSON_VALUE example | |
| SELECT | |
| JSON_VALUE(request,'$.phone.typeId' RETURNING NUMBER) | |
| FROM | |
| web_requests; | |
| -- JSON_TABLE example | |
| SELECT | |
| * | |
| FROM |
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
| import java.lang.management.ManagementFactory | |
| println "Process ID: " + ManagementFactory.getRuntimeMXBean().getName() | |
| println "Uptime: " + ManagementFactory.getRuntimeMXBean().getUptime() |
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
| syntax on | |
| cmap w!! w !sudo tee % >/dev/null |
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
| find -type f -name 'dsc*'| awk '{gsub(".xyz","",$1);system("mv "$1".xyz "$1".jpg")}' |
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
| PS1="\n\[\033[01;32m\]\u\[\033[00;35m\]@\h \[\033[00;33m\]\w \[\033[0m\]\n\$ " | |
| EXPORT PS1 |
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
| # VirtaulBox --> Select machine --> Settings --> Shared Folders + Machine Folders (Name: centos-ui) | |
| cd | |
| mkdir shared | |
| sudo mount -t vboxsf centos-ui ~/shared/ |
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
| def text = "Going to convert this to Base64 encoding!" | |
| // Encode | |
| def encoded = text.bytes.encodeBase64().toString() | |
| println encoded | |
| // Decode | |
| byte[] decoded = encoded.decodeBase64() | |
| println new String(decoded) |
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 modifyhd "C:\vms\centos-ui\centos-ui.vdi" --resize 12288 |