These are my notes for a short presentation on Redis at the annual Super User Group meeting hosted by the Memphis JUG.
(What is it? see: http://redis.io/topics/faq)
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Input extends CI_Input { | |
/** | |
* Variables | |
* | |
*/ | |
protected $delete; |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mysql2' | |
Mysql2::Client.default_query_options.merge!(:as => :array) | |
conn = Mysql2::Client.new(:host => 'localhost', :username => 'user', | |
:password => 'pw', :database => 'db') | |
tables = conn.query("SHOW TABLES").map {|row| row[0] } |
<?php | |
echo 'For Yearly ::<br/>'; | |
$cur_datetime = new DateTime(); | |
echo '<br/>'.date('Y-m-d'); | |
echo '<br/>'; | |
$app_datetime = new DateTime("2014-08-02"); | |
echo date('2014-08-02'); | |
echo '<br/>'; | |
$difference = $cur_datetime->diff($app_datetime); | |
echo '<br/>'; |
/* | |
* Scaffolding | |
* Basic and global styles for generating a grid system, structural layout, and page templates | |
* ------------------------------------------------------------------------------------------- */ | |
.container | |
Sets a width of 940px which also centres the content (clears floated elements before/after) | |
.container-fluid | |
Sets a minimum width of 940px (clears floated elements before/after) |
These are my notes for a short presentation on Redis at the annual Super User Group meeting hosted by the Memphis JUG.
(What is it? see: http://redis.io/topics/faq)
<IfModule mod_deflate.c> | |
# Komprimiere HTML, CSS, JavaScript, Text, XML und fonts | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/x-font-otf | |
AddOutputFilterByType DEFLATE application/x-font-truetype |
<IfModule mod_deflate.c> | |
# Compress HTML, CSS, JavaScript, Text, XML and fonts | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/x-font-otf | |
AddOutputFilterByType DEFLATE application/x-font-truetype | |
AddOutputFilterByType DEFLATE application/x-font-ttf |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect non-www to www | |
RewriteCond %{HTTP_HOST} !^(.+)\.(.+)\.(.+) | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] |
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
## Use n module from npm in order to upgrade node | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |