Skip to content

Instantly share code, notes, and snippets.

@nikoma
nikoma / 00.howto_install_phantomjs.md
Created August 2, 2017 20:24 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@nikoma
nikoma / Gemfile
Created April 23, 2017 23:17 — forked from Joseph-N/Gemfile
File upload using dropzone.js, paperclip in rails. Tutorial link http://josephndungu.com/tutorials/ajax-file-upload-with-dropezonejs-and-paperclip-rails
source 'https://rubygems.org'
# default gems here
#---------------------------
# add paperclip and bootstrap
gem "paperclip", "~> 4.1"
gem 'bootstrap-sass', '~> 3.1.1'
@nikoma
nikoma / tracks_config_tracks.client.config.js
Created August 21, 2014 06:44
Tracks for dashboard example
'use strict';
// Configuring the Articles module
angular.module('tracks').run(['Menus',
function(Menus) {
// Set top bar menu items
// Menus.addMenuItem('topbar', 'Tracks', 'tracks', 'dropdown');
// Menus.addSubMenuItem('topbar', 'tracks', 'Facebook', 'tracks');
}
@nikoma
nikoma / apphera_apphera.client.module.js
Created August 21, 2014 06:37
Apphera draft library
//'use strict';
//
ApplicationConfiguration.registerModule('apphera');
{
"coordinates": null,
"created_at": "Thu Oct 21 16:02:46 +0000 2010",
"favorited": false,
"truncated": false,
"id_str": "28039652140",
"entities": {
"urls": [
{
"expanded_url": null,
@nikoma
nikoma / mysql_to_postgresql.pl
Created February 11, 2013 10:46
Migrates data from MySQL to Postgresql
#!/usr/bin/perl
#
# this script moves all the data from mysql to postgres
# modules required are:
#
# http://search.cpan.org/~timb/DBI-1.616/DBI.pm
#
# please change the dsn, srcUser/srcPass and dstUser/Pass variables.
use DBI;