Discover gists
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
# wean oneself off | |
alias grep="rg --help | less" | |
alias find="fd --help | less" | |
alias wc="tokei --help | less" | |
alias rm="/bin/rm -i" | |
# brew install dialog zenity | |
alias git-branch-zenity='/usr/local/bin/zenity -title "Current branch: $(git branch --show-current)" -text "Select branch from $PWD" -list $(git branch --list | sed "s/*//") | pbcopy' |
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
git commit --amend --reset-author |
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
-- AH POST-SERVER LOGS -- | |
-- ServerID: 59263a90-af9a-4bf3-bd8e-6be77009845b | |
-- Server started: February 06, 2025 11:00 PM UTC | Server uptime: 13 seconds | |
------------------ LOADB LOGS ------------------ | |
{ | |
} |
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
def df_to_sql_fast(df, table_name, numeric_columns, date_columns, append_or_replace, conn): | |
""" | |
Appends or overwrites a SQL Server table | |
using data from a Pandas DataFrame. | |
Submits df records at once for faster performance | |
compared to df_to_sql. | |
Parameters: | |
df (DataFrame): df used to create/append table | |
table_name (str): Name of existing SQL Server table |
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 | |
# Variables | |
USER="santiago" | |
USER_HOME="/home/$USER" | |
SSH_DIR="$USER_HOME/.ssh" | |
AUTHORIZED_KEYS="$SSH_DIR/authorized_keys" | |
GITHUB_KEYS_URL="https://github.com/Santigf12.keys" | |
SUDOERS_FILE="/etc/sudoers.d/$USER" |
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
using System; | |
using System.Collections.Generic; | |
namespace HWShopV3 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
StockListFactory factory = new StockListFactory(); |
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 -e | |
BRANCH=linux-msft-wsl-6.6.y | |
DXBRANCH=main | |
if [ "$EUID" -ne 0 ]; then | |
echo "Swithing to root..." | |
exec sudo $0 "$@" | |
fi | |
sudo dnf install -y git dkms curl kernel-tools kernel-devel kernel-headers dwarves |
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
# The system csi driver pod | |
$ kubectl get pod -n kube-system gcsfusecsi-node-sjdrk -o yaml | |
apiVersion: v1 | |
kind: Pod | |
<snip> | |
spec: | |
containers: | |
- args: | |
<snip> | |
image: us-central1-artifactregistry.gcr.io/gke-release/gke-release/gcs-fuse-csi-driver:v1.10.2-gke.0@sha256:dee682111037c222babd959717cc420e75985d938fade90f297dc254aec4c4f4 |
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
cronTriggerInterval: 60 | |
dataFeedsCacheContractAddress: 0xb79288ce6a58b7af2230a77f296f6a13b78a0292 | |
feedId: 0x029BFA81517000400000000000000000 | |
endpointTimeoutMilliseconds: 5000 | |
chainWriterCapabilityLabel: write_ethereum-testnet-sepolia@1.0.0 |
This file has been truncated, but you can view the full file.
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
y///PykFAsoOAADrJQ+pFDv/iDQw2DgAAPi+P7x/8Q9xw/806uK0KEiSpEsgw2DDiQ6mBwCAaj8PgKqqqqr69gHGIrBNdmb52+db+Of551tQRLEFRRRbUESxBUUUW1BEsQVFFFtQRLEFRRRbUESxBUUUW1BEsQVFFFtQRLEFRRRbUESxBUUUW1BEse1Rr8KqHh1h2NMQVtajcE+Uho7H1GvYveU+9es4T6hPJxn2nUJYWU/DfVEaOp5Rv2H3lwc0qLN4tgZ0DsOBcxFW1vPggSgNHc/XoGEPloc0rAt4oYZ0EcOhixFW1kvgoSgNHS/VsGEPl0c0qst4uUZ0BcORKxFW1qvgkSgNHa/WqGGPlsc0rmt4rcZ0HcOx6xFW1hvgsSgNHW/UuGGPlyc0qZt4syZ0C8OJWxFW1tvgiSgNHW/XpGFPlqc0rTt4p6Z0F8OpuxFW1nvgqSgNHe/VtGFPl2c0q/t4v2b0AMOZBxFW1ofgmSgNHR/WrGHPluc0r0f4qOb0GMO5xxFW1ifguSgNHZ/UvGHPlxe0qKf4tBb0DMOFZxFW1ufghSgNHZ/XomEvlpe0rBf4opb0EsOllxFW1lfgpSgNHV/VsmEvl1e0qtf4ulb0BsOVNxFW1rfglSgNHd/WqmGvlte0rnf4rtb0HsO19xFW1g/gtSgNHT/UumGvlze0qY/4sTb0CcONTxFW1s/gjSgNHT/XpmFvlre0rS/4pbb0FcOtrxFW1m/grSgNHb/VtmFvl3e0q+/4vXb0A8OdHxFW1p/gnSgNHX/WrmHvlve0r1/4q/b0G8O93xFW1j/gvSgNHf/UvmHvlw90qL/4tw70D8ODfxFW1v/ggygNHf/XoWEflv8rIABwzJblA0SAgQYZbIihhhluhJFGGW2MscYZb4KJJplsiqmmmW6GmWaZbY655plvgYUWWWyJpZZZboWVVlltjbXWWW+DjTbZbIutttluh5122W2PvfbZ74CDDjnsiKOOOe6Ek0457YyzzjnvAhe6yMUucanL |