The landscape of AI-powered command-line coding assistants has exploded recently, each taking a different philosophical approach to the same fundamental problem: how do we make writing code less tedious without sacrificing control? Here's a breakdown of four notable players worth your attention.
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
#!/usr/bin/env python3 | |
""" | |
JSON object merge tool. | |
Based on mergedeep and Python3 JSON Stream State Machine. | |
References: | |
https://github.com/clarketm/mergedeep |
Python programs to remove or modify files without changing the modification time of the parent directory.
curl -fSLO https://gist.github.com/jaytaylor/e2e0b53baf224f4e973b252370499de7/raw/bc175ba7008626ebc3f356c16f8240ebe578c5a0/rm_preserving_parent_mtime.py
curl -fSLO https://gist.github.com/jaytaylor/e2e0b53baf224f4e973b252370499de7/raw/bc175ba7008626ebc3f356c16f8240ebe578c5a0/mv_preserving_parent_mtime.py
chmod a+x rm_preserving_parent_mtime.py mv_preserving_parent_mtime.py
I searched the net high and low but was unable to locate a definitive working example of how to take an epoch integer timestamp and insert it as a native postgres timestamp without timezone.
CREATE TABLE IF NOT EXISTS tz_test (
stamp TIMESTAMP NOT 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
#!/usr/bin/env bash | |
## | |
# @description Golang Linux installer. | |
# | |
# Example usage: | |
# | |
# VERSION=1.17.3 sudo -E bash install-go.sh | |
# | |
# @date 2021-02-18 |
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
/* | |
* RichSQL.scala | |
* | |
* @note I originally found this at | |
* http://scala.sygneca.com/code/simplifying-jdbc. Since sourcing it I have | |
* made some improvements. | |
* -Jay T. | |
*/ | |
import java.sql.ResultSet |
cat > /tmp/install-go.sh << 'EOF'
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
if [ "${1:-}" = '-v' ]; then
echo 'INFO: Verbose debug output enabled' 1>&2
Quick references to common and useful python3 best-practices programming snippets and boilerplate.
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
# | |
# Multi-line search and inject new variable into helm templates. | |
# | |
# n.b. Works somewhat dynamically. | |
# | |
BEGIN { | |
insertion = "{{- include \"bots.k8s-envvars\" . | indent 8 }}" | |
expr_seq[0] = " +envFrom: *$" | |
expr_seq[1] = "^{prefix1}( )?- configMapRef: *$" |
NewerOlder