Skip to content

Instantly share code, notes, and snippets.

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

Aleksandar Popovic alekpopovic

🏠
Working from home
View GitHub Profile
@alekpopovic
alekpopovic / gist:251438123c66e17ddc4e
Created November 30, 2015 14:50 — forked from ShepBook/gist:5713899
Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Remove Existing OpenJDK

Generally, I'd recommend running Oracle's Java, if you're doing Clojure development. Seeing how Clojure is built around the standard JVM from Oracle, it seems like it would be best to use that. First, let's remove the existing OpenJDK from our OS.

Search for OpenJDK

$ dpkg --get-selections | grep jdk
@alekpopovic
alekpopovic / ember-rails-scaffold.md
Created December 20, 2015 18:24 — forked from pixelhandler/ember-rails-scaffold.md
Scaffold for a browser app build with Ember.js, Rails, Ember.Data

Scaffold for a browser app build with Ember.js, Rails, Ember.Data

Journal App

This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js

See source code on GitHub: pixelhandler/journal.

@alekpopovic
alekpopovic / gist:f2547bcfb69ba215bd3e
Last active January 25, 2016 20:26
Rails 2 BUNDLE INSTALL
bundle _1.10.6_ install
@alekpopovic
alekpopovic / rspec_html.rake
Created January 26, 2016 10:55 — forked from jonahoffline/rspec_html.rake
Rake Task for generating a RSpec report in html.
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = '--format html --out reports/rspec_results.html'
end
namespace :rspec_report do
desc 'Run all specs and generate RSpec report in HTML'
task :html => :spec
@alekpopovic
alekpopovic / .travis.yml
Created January 31, 2016 22:27 — forked from douglasduteil/.travis.yml
Here is how I allow Git SSH authentication in Travis CI. I'm using it to connect Travis to my repo organization AngularUI. This trick is a fork. The goal is to encode the RSA private deploy key in the .travis.yml as "-secure: xxxxx.....".
---
language: node_js
node_js:
- '0.10'
branches:
only:
- master
before_script: .travis/before_script.sh
script: echo -e " >>> Do something... \"grunt\" for example\n"
after_success: .travis/after_success.sh
@alekpopovic
alekpopovic / ubuntu-install-ruby-1.8.7.sh
Created February 4, 2016 20:11 — forked from murphyslaw/ubuntu-install-ruby-1.8.7.sh
Install Ruby 1.8.7 with rbenv on Ubuntu
# Install system libraries.
sudo apt-get install zlib1g-dev openssl libssl-dev libreadline-dev git-core
# Install rbenv.
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
# Setup bash.
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
@alekpopovic
alekpopovic / logstash_indexer.conf
Created February 5, 2016 16:02 — forked from fairchild/logstash_indexer.conf
Logstash config example
input {
redis {
host => "127.0.0.1"
type => "redis-input"
# these settings should match the output of the agent
data_type => "list"
key => "logstash"
# We use json_event here since the sender is a logstash agent
message_format => "json_event"
}
1 -> lsblk
2 -> umount /dev/sdb
3 -> mkdosfs -F 32 -I /dev/sdb
@alekpopovic
alekpopovic / README.md
Created February 10, 2016 20:14 — forked from cypriss/README.md
Rails 2.3.14 Ruby 1.9.3 - Monkey Patches

How we upgraded UserVoice, a Rails 2.3.14 app, to Ruby 1.9.3.

Blog post here

@alekpopovic
alekpopovic / gist:7348d6ff91ee42607359
Created February 11, 2016 16:12
Install WATCHMAN
$ git clone https://github.com/facebook/watchman.git
$ cd watchman/
$ git checkout v4.1.0
$ sudo apt-get install -y autoconf automake build-essential python-dev
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ watchman --version