Skip to content

Instantly share code, notes, and snippets.

3024 Day
3024 Night
Aardvark Blue
Abernathy
Adventure
AdventureTime
Afterglow
Alabaster
AlienBlood
Andromeda
@nicksherron
nicksherron / OIG.g.jpeg
Last active July 7, 2023 19:15
for testing made by dall-e
OIG.g.jpeg
#/usr/bin/env bash
# start redis cluster using tmux
function create_redis_cluster {
mkdir cluster-test
cd cluster-test
mkdir 7001 7002 7003 7004 7005 7006 || true
# create redis cluster
for port in 7001 7002 7003 7004 7005 7006
do
echo "port $port" > $port/redis.conf
<users>
<!-- If user name was not specified, 'default' user is used. -->
<user_name>
<password></password>
<!-- Or -->
<password_sha256_hex></password_sha256_hex>
<access_management>1</access_management>
<networks incl="networks" replace="replace">
echo '
[credential]
helper = store
[url "git@github.com:"]
insteadOf = https://github.com/' >> ~/.gitconfig
@nicksherron
nicksherron / go_tests_stats_bigquery_2016.ipynb
Last active July 2, 2025 00:54
Querying Github data for what percentage of go repos have tests in them. PS. DO NOT RUN, bigquery query not optimized and is crazy expensive to run. I did win the argument though 😜
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mysql: [Warning] Using a password on the command line interface can be insecure.
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mysql: [Warning] Using a password on the command line interface can be insecure.
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mysql: [Warning] Using a password on the command line interface can be insecure.
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mysql: [Warning] Using a password on the command line interface can be insecure.
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------