Skip to content

Instantly share code, notes, and snippets.

View kamaln7's full-sized avatar
🥑
consuming copious amounts of avocado

Kamal Nasser kamaln7

🥑
consuming copious amounts of avocado
View GitHub Profile
#!/bin/bash
# usage: bin/compile <build-dir> <cache-dir> <env-dir>
set -eo pipefail
mkdir -p "$1" "$2"
build=$(cd "$1/" && pwd)
cache=$(cd "$2/" && pwd)
env_dir="${3}"
buildpack=$(cd "$(dirname $0)/.." && pwd)
package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Println("runtime.NumCPU():", runtime.NumCPU())
}
@kamaln7
kamaln7 / yolo
Last active August 4, 2020 22:05
yolo
0
@kamaln7
kamaln7 / global-protect.sh
Last active April 9, 2020 14:08 — forked from kaleksandrov/global-protect.sh
Simple script that starts and stops GlobalProtect.app on Mac OSX.
#!/bin/bash
gpstart()
{
echo "Starting GlobalProtect..."
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
}
gpstop()
autoload -U compinit promptinit zcalc zsh-mime-setup
compinit
promptinit
zsh-mime-setup
#}}}
#{{{ Options
# why would you type 'cd dir' if you could just type 'dir'?

Keybase proof

I hereby claim:

  • I am kamaln7 on github.
  • I am kamaln7 (https://keybase.io/kamaln7) on keybase.
  • I have a public key whose fingerprint is 1141 F264 9697 D803 1743 10B1 8AFE A3F0 E636 E800

To claim this, I am signing this object:

@kamaln7
kamaln7 / migration.php
Last active December 17, 2015 19:49 — forked from clone1018/migration.php
<?php
use Illuminate\Database\Migrations\Migration;
class ImproveCfs extends Migration
{
/**
* Run the migrations.
*