Skip to content

Instantly share code, notes, and snippets.

View wijayaerick's full-sized avatar
📚

Erick Wijaya wijayaerick

📚
View GitHub Profile
@VojtechVitek
VojtechVitek / slice-batch-in-parallel.go
Last active December 25, 2023 09:42
Golang - Loop over slice in batches (run something in parallel on a sub-slice)
package main
import "fmt"
func main() {
slice := make([]int, 159)
// Split the slice into batches of 20 items.
batch := 20
@chriselsner
chriselsner / nix-on-macos-catalina.md
Last active January 24, 2024 18:35
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

@jaketf
jaketf / run_relevant_pre_cloudbuilds.sh
Last active August 1, 2023 17:00
Run nested cloud build files if any diff in it's directory tree
#!/bin/bash
###############################################################################################################
# UPDATE: #
# This has been merged to a more complete example: #
# https://github.com/jaketf/ci-cd-for-data-processing-workflow/blob/master/helpers/run_relevant_cloudbuilds.sh#
###############################################################################################################