Skip to content

Instantly share code, notes, and snippets.

@Buggaboo
Buggaboo / gist:671627bcbb763bb6891c110d567f7b78
Last active February 6, 2025 23:03
Handy git branch + dialog / zenity
# 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'
@akramarev
akramarev / git.sh
Created February 6, 2025 23:01
[reset commit author to the current user]
git commit --amend --reset-author
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 6, 2025 23:01
Text file created by Roblox
-- 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 ------------------
{
}
@blayz3r
blayz3r / df_to_sql_fast.py
Created February 6, 2025 23:01 — forked from bthaman/df_to_sql_fast.py
High-performance Pandas dataframe to SQL Server - uses pyodbc executemany with fast_executemany = True. This is an alternative to out-of-the-box Pandas df_to_sql, which is slow for larger dataframes.
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
@devinatkin
devinatkin / add_santiago.sh
Created February 6, 2025 23:00
Gotta add Santiago to the server, this is the one do to
#!/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"
using System;
using System.Collections.Generic;
namespace HWShopV3
{
internal class Program
{
static void Main(string[] args)
{
StockListFactory factory = new StockListFactory();
@Nislaco
Nislaco / build.sh
Last active February 7, 2025 03:09
Build script for Fedora 41 / WSL module
#!/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
# 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
@shileiwill
shileiwill / config.staging.yaml
Created February 6, 2025 22:57
Workflow configuration
cronTriggerInterval: 60
dataFeedsCacheContractAddress: 0xb79288ce6a58b7af2230a77f296f6a13b78a0292
feedId: 0x029BFA81517000400000000000000000
endpointTimeoutMilliseconds: 5000
chainWriterCapabilityLabel: write_ethereum-testnet-sepolia@1.0.0
@shileiwill
shileiwill / binary.wasm.br
Created February 6, 2025 22:57
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
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