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 / bootstrap_popover_customizations.md
Last active August 29, 2015 14:26 — forked from intelliweb/bootstrap_popover_customizations.md
Customizing Twitter Bootstrap's popover behavior to open popovers on click, add close button, and keep popovers open until closed via close button or toggled via trigger link.
@alekpopovic
alekpopovic / object-watch.js
Last active August 29, 2015 14:27 — forked from eligrey/object-watch.js
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@alekpopovic
alekpopovic / sublime-text-3-build-3065-license.md
Last active August 29, 2015 14:27
Sublime Text 3 (build 3065+) - VALID License

SublimeText3 Valid License without cracking! Just download/install then use this license.

Notice that it may not work on dev builds, but still works on 3083 build!

----- BEGIN LICENSE -----

Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
@alekpopovic
alekpopovic / install.sh
Last active September 1, 2015 23:36 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@alekpopovic
alekpopovic / Install Clojure on Ubuntu.md
Created October 22, 2015 13:30 — forked from hawkup/Install Clojure on Ubuntu.md
Install Clojure on Ubuntu 14.04

Prerequisite

  • Java

Installation

  • download clojure
wget http://repo1.maven.org/maven2/org/clojure/clojure/1.6.0/clojure-1.6.0.zip
@alekpopovic
alekpopovic / ubuntu-maven-3
Created October 23, 2015 10:58 — forked from stephanetimmermans/ubuntu-maven-3
Install Maven3 on Unbuntu 14.04
#sudo apt-get remove maven2
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
sudo apt-get update
sudo apt-get install maven3
#If you encounter this:
#The program 'mvn' can be found in the following packages:
# * maven
# * maven2
@alekpopovic
alekpopovic / *.bat
Created November 15, 2015 19:26 — forked from michfield/*.bat
Install Gems without documentation #ruby #windows
:: Make --no-ri --no-rdoc default gem install options (without documentation)
:: Possible variations:
:: For every user:
:: echo gem: --no-ri --no-rdoc > "%PROGRAMDATA%\gemrc"
:: Only for you
:: echo gem: --no-ri --no-rdoc >> "%USERPROFILE%\.gemrc"
::
:: Note: In Windows, %PROGRAMDATA% is /etc on Linux
::
:: But finally, the best way to do it. See: http://stackoverflow.com/a/7662245/1579985
@alekpopovic
alekpopovic / User.rb
Created November 22, 2015 21:38 — forked from stakes/User.rb
Feature Flags / Rails + Mongoid
class User
include Mongoid::Document
# herein might appear a metric shitton of fields
# but what you need to know for feature flags follows
field :feature_flags, :type => Hash, :default => {}
# likewise, this is only what you need for
@alekpopovic
alekpopovic / gist:0715d87c692bb08139d3
Last active November 23, 2015 00:15
Simple Form Rails Fix i18
#./lib/patches/i18n_patch'
require 'i18n'
module I18n
class << self
def translate(*args)
res = super(*args)
res = res[nil, {}] if res.is_a? Proc
res