Skip to content

Instantly share code, notes, and snippets.


M#3 zspine

View GitHub Profile
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": {
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', []);
zspine / Vagrantfile
Created Nov 20, 2017
Ubuntu, Setting up a docker development env with Vagrant
View Vagrantfile
$script = <<SCRIPT
# Set up the repository
echo “Update the apt package index...”
sudo apt-get update -y
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
from twisted.internet import defer, reactor
from jasmin.vendor.smpp.pdu.operations import DeliverSM
from jasmin.queues.configs import AmqpConfig
from jasmin.queues.factory import AmqpFactory
from jasmin.routing.jasminApi import SmppServerSystemIdConnector
from jasmin.routing.content import RoutedDeliverSmContent
from jasmin.queues.test.test_amqp import waitFor
def connect_and_publish(pdu, dc):
zspine /
Last active Aug 1, 2018
Codeception Console Commands

Run Tests

php bin/codecept run
php bin/codecept run unit
php bin/codecept run acceptance
php bin/codecept run functional

Acceptance Test with PhantomJs

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")
sudo reboot
sudo poweroff
#copy from local to remote server
#scp target file user@ip-address destination
scp /home/migration/backup/example.txt root@