Skip to content

Instantly share code, notes, and snippets.

View kernelism's full-sized avatar
🤯
dazzled

Arjhun S kernelism

🤯
dazzled
View GitHub Profile
@mihow
mihow / load_dotenv.sh
Last active August 17, 2025 04:25
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@ruanyl
ruanyl / install_pig
Last active October 31, 2023 10:01
install and setup pig in macos
This gist assuming that you have apahce hadoop installed and running.
step to install and config pig:
>1. brew install pig
>2. export JAVA_HOME="$(/usr/libexec/java_home)"
>3. export PIG_CLASSPATH=/path/to/pig.jar, normally if you install pig via homebrew, the path should be like:/usr/local/Cellar/pig/0.13.0/pig-0.13.0-h1.jar
step 2 & 3 are mandatory for me, otherwise *pig* wont work.
package main
import (
"fmt"
)
func decorator(f func(s string)) func(s string) {
return func(s string) {
fmt.Println("Started")