Skip to content

Instantly share code, notes, and snippets.


M#3 zspine

View GitHub Profile
zspine / Example.php
Created Feb 22, 2012
Pimcore Object toArray()
View Example.php
class Website_Model_Product extends Object_Concrete
* Retreive the values in an array
* @return array
public function toArray()
zspine / nationalities.php
Created Apr 12, 2012
PHP Nationalities Array
View nationalities.php
$nationals = array(
zspine / countries.csv
Last active Sep 8, 2021
Country Code, ISO and Nationality ( Please use )
View countries.csv
CCA2 Name CCA3 Nationality
AD Andorra AND Andorran
AE United Arab Emirates ARE Emirati
AF Afghanistan AFG Afghan
AG Antigua and Barbuda ATG Antiguan, Barbudan
AI Anguilla AIA Anguillian
AL Albania ALB Albanian
AM Armenia ARM Armenian
AN Netherlands Antilles ANT Dutch
AO Angola AGO Angolan
zspine / MySQL dump Gzip
Created Nov 1, 2014
MySQL command line import gzip file
View MySQL dump Gzip
zcat DATABASE_BACKUP.sql.gz | mysql -u DB_USERNAME -p DB_NAME
View conluence.css
@import ",300,400italic,700,700italic";
@import ",400";
#header .aui-header
background-color: #343131;
border-bottom: 1px solid #222222;
#title-text a
zspine / world-countries
Last active Aug 29, 2015
World Countries - iso2, iso3, nationality, code and phone prefix
View world-countries
"AF": {
"name": "Afghanistan",
"iso2": "AF",
"iso3": "AFG",
"nationality": "Afghan",
"code": "004",
"prefix": "93"
"AL": {
zspine / CallerPermission.php
Created Aug 30, 2015
BeatSwitch lock doctrine example
View CallerPermission.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
* @ORM\Entity
* @ORM\Table(name="lock_caller_permission")
zspine / .htaccess
Last active Jul 6, 2019
htaccess cheatsheet
View .htaccess
#Hide directories and files
Options -Indexes
#Set Enviroment Varaibles
SetEnv APPLICATION_ENV "development"
# Enable the rewrite engine
RewriteEngine On
# redirect non www to www
View google-analytics.txt
zspine / app.js
Created Nov 4, 2015 — forked from jrmoran/app.js
AngularJS - Charting with Flot
View app.js
var App = angular.module('App', []);