Skip to content

Instantly share code, notes, and snippets.

@kudarap
kudarap / ss.sh
Last active September 14, 2015 10:41
ubuntu 14 server stack
#!/bin/bash
echo 'updating system ...'
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install curl
curl -sL https://deb.nodesource.com/setup | sudo bash -
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=bin --filename=composer
@kudarap
kudarap / Channel.php
Created August 27, 2015 19:38
eden-json-rest module
<?php //-->
/*
CREATE TABLE IF NOT EXISTS `channel` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`name` text NOT NULL,
`data` longtext NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,