A curated list of amazingly awesome PHP libraries, resources and shiny things.
- Composer
- Composer Related
- Frameworks
- Framework Components
/** | |
* Stylesheet that implements free IcoMoon font | |
* http://keyamoon.com/icomoon/#toHome | |
* | |
* Autor Yordan Ivanov | |
* [email protected] | |
*/ | |
@font-face { | |
font-family: 'IcoMoonRegular'; |
source 'http://rubygems.org' | |
# Framework | |
gem 'rails', '~> 3.2.0' | |
# Datastores | |
gem 'pg' | |
gem "mongoid" | |
gem "mongo" | |
gem "bson" |
▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀ | |
HANDPICKED JQUERY PLUGINS REPOSITORY CDN URLS | |
POWERED BY MAXCDN | |
▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀ | |
http://resources.eiremedia.netdna-cdn.com/jquery/activebar2.js | |
http://resources.eiremedia.netdna-cdn.com/jquery/addclear.js |
################################################################################ | |
# Shell and drush commands to update the given installation | |
# | |
# Go to sites/all/scripts (e.g. cd sites/all/scripts) and type "sh update.sh" | |
# in your console/shell/Terminal. | |
# | |
# The commands have to be functional for any case after the initial installation | |
# installation. So on any set up after calling that script, the configuration | |
# must be the same. | |
# |
################################################################################ | |
# Shell and drush commands to set up (or some part of it) the new site. | |
# | |
# Go to sites/all/scripts (e.g. cd sites/all/scripts) and type "sh install.sh" | |
# in your console/shell/Terminal. | |
# | |
# The commands are built to run once, e.g. to set some symlinks, but shall be | |
# designed to not break other commands on the second run. | |
# | |
################################################################################ |
var tabbableElements = 'a[href], area[href], input:not([disabled]),' + | |
'select:not([disabled]), textarea:not([disabled]),' + | |
'button:not([disabled]), iframe, object, embed, *[tabindex],' + | |
'*[contenteditable]'; | |
var keepFocus = function (context) { | |
var allTabbableElements = context.querySelectorAll(tabbableElements); | |
var firstTabbableElement = allTabbableElements[0]; | |
var lastTabbableElement = allTabbableElements[allTabbableElements.length - 1]; |
<?php | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |
#Knife invocations supply FQDN as the node name at creation time and this becomes hostname( option -N) | |
#Ensure the hostname of the system is set to knife provided node name | |
file "/etc/hostname" do | |
content node.name | |
notifies :run, resources(:execute => "Configure Hostname"), :immediately | |
end | |
#This sets up script which will run whenever eth0 comes up(after reboot) to update /etc/hosts | |
cookbook_file "/etc/network/if-up.d/update_hosts" do |
#!/bin/bash | |
#/etc/network/if-up.d/update_hosts | |
set -e | |
#Variable IFACE is setup by Ubuntu network init scripts to whichever interface changed status. | |
[ "$IFACE" == "eth0" ] || exit | |
myname=`cat /etc/hostname` | |
shortname=`cat /etc/hostname | cut -d "." -f1` | |
hostsfile="/etc/hosts" | |
#Knock out line with "old" IP |