Skip to content

Instantly share code, notes, and snippets.

Ikenna Darlington Ogbajie idarlington

Block or report user

Report or block idarlington

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
idarlington / Intersection.scala
Last active Aug 28, 2019
Scala list intersection
View Intersection.scala
def intersect(first: List[Int], second: List[Int]): Seq[Int] = {
val result = for {
i <- first
j <- second
if i == j
} yield i
idarlington / Connection.groovy
Last active Jul 5, 2018
create a groovy connection
View Connection.groovy
class Connection {
String urlPath
private String username =
private String password =
private String basicAuth = "$username:$password".bytes.encodeBase64().toString()
URL url = urlPath.toURL();
InputStream getStream() {
URLConnection connection = url.openConnection();
idarlington /
Last active Feb 4, 2018 — forked from hkhamm/
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL"
View gist:bbc469f799de6a9d891d42052883a89a
/var/log/transmit.log {
su root pi
rotate 7
idarlington /
Created Jun 9, 2017
zip files older than n days
find . -mtime +n -print -exec gzip {} \;
idarlington / gitconfig.ini
Created Apr 28, 2017 — forked from tdd/gitconfig.ini
Nice, useful global Git configuration
View gitconfig.ini
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
name = Your Full Name
email = your@email.tld
# Enable colors in color-supporting terminals
ui = auto
st = status
idarlington / .md
Last active Feb 24, 2017
Setting Up Scala
View .md

Installing Java

You can either install Oracle Java or OpenJDK (the Open Source implementation of Oracle Java)

Installing Oracle Java


sudo apt-get install python-software-properties
You can’t perform that action at this time.