Skip to content

Instantly share code, notes, and snippets.

View bibryam's full-sized avatar
🏠
Working from home

Bilgin Ibryam bibryam

🏠
Working from home
View GitHub Profile
@bibryam
bibryam / ulimit.sh
Created January 10, 2019 13:31 — forked from Maarc/ulimit.sh
Bash script updating the ulimits
#!/usr/bin/env bash
# Automating https://blog.dekstroza.io/ulimit-shenanigans-on-osx-el-capitan/
echo "Updating the ulimits on OSX to be able to run RHAMT tests."
sudo bash -c 'cat >/Library/LaunchDaemons/limit.maxfiles.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
@bibryam
bibryam / gist:3903194
Created October 17, 2012 01:15 — forked from irpap/gist:3896215
One dimensional game of life
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatest.FunSuite
@RunWith(classOf[JUnitRunner])
class GameOfLifeTest extends FunSuite {
type Rules = ((Int, Int, Int)) => Int
case class TheRules(rules: List[Int]) extends Rules {