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
idarlington / Connection.groovy
Last active Jul 5, 2018
create a groovy connection
View Connection.groovy
class Connection {
String urlPath
private String username = project.properties.username
private String password = project.properties.password
private String basicAuth = "$username:$password".bytes.encodeBase64().toString()
URL url = urlPath.toURL();
InputStream getStream() {
URLConnection connection = url.openConnection();
@idarlington
idarlington / installing_cassandra.md
Last active Feb 4, 2018 — forked from hkhamm/installing_cassandra.md
Installing Cassandra on Mac OS X
View installing_cassandra.md

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 https://raw.github.com/Homebrew/homebrew/go/install)"
View gist:bbc469f799de6a9d891d42052883a89a
/var/log/transmit.log {
su root pi
copytruncate
compress
daily
rotate 7
missingok
notifempty
}
@idarlington
idarlington / zipLogs.sh
Created Jun 9, 2017
zip files older than n days
View zipLogs.sh
find . -mtime +n -print -exec gzip {} \;
@idarlington
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>
[user]
name = Your Full Name
email = your@email.tld
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
st = status
@idarlington
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

Ubuntu

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