Skip to content

Instantly share code, notes, and snippets.

View alisamii's full-sized avatar

Ali Samii alisamii

View GitHub Profile
170509 22:25:58 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2017-05-09 22:25:58 140736651862976 [Note] /usr/local/opt/mariadb/bin/mysqld (mysqld 10.1.23-MariaDB) starting as process 45983 ...
2017-05-09 22:25:58 140736651862976 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: The InnoDB memory heap is disabled
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: Using SSE crc32 instructions
2017-05-09 22:25:59 140736651862976 [Note] InnoDB: Initializing buffer pool, size = 128.0M
preset:
image: 'gantry-admin://images/layouts/default.png'
name: nested_home
timestamp: 1433513743
children:
-
id: fa4a0c0a-79b1-415c-7840-a7329f69d373
type: section
subtype: false
title: Top-wrapper
preset:
image: 'gantry-admin://images/layouts/default.png'
name: nested_default
timestamp: 1433513743
children:
-
id: a70b001e-ed40-4028-dc4a-0f0d1838dd75
type: section
subtype: false
title: Outer-wrapper
@alisamii
alisamii / section.html.twig
Last active August 29, 2015 14:21
New Section Settings
{% set attr_class = segment.attributes.class ? ' class="' ~ segment.attributes.class|e ~ '"' %}
{% set attr_id = segment.title|lower|replace({' ': '-'}) %}
{% set attr_extra = '' %}
{% set tag_type = (attr_id in ['aside', 'footer', 'header', 'main']) ? attr_id : 'section' %}
{% set attr_background_image = segment.attributes.background_image ? segment.attributes.background_image|trim|e : false %}
{% set attr_background_color = segment.attributes.background_color ? segment.attributes.background_color|trim|e : transparent %}
{% set attr_background_repeat = segment.attributes.background_repeat ? segment.attributes.background_repeat|trim|e : no-repeat %}
{% set attr_background_clip = segment.attributes.background_clip ? segment.attributes.background_clip|trim|e : initial %}
{% set attr_background_position = segment.attributes.background_position ? segment.attributes.background_position|trim|e : initial %}
{% set attr_background_origin = segment.attributes.background_origin ? segment.attributes.background_origin|tr
@alisamii
alisamii / Gruntfile.js
Created March 4, 2015 18:09
Gruntfile.js error
"use strict";
module.exports = function(grunt) {
var config = grunt.file.readJSON('json/config.json');
var datas = grunt.file.readJSON('json/langs/' + config.current_lang.code + '.json');
var countries = grunt.file.readJSON('json/countries/' + config.current_lang.code + '.json');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
@alisamii
alisamii / clean-post.js
Created January 4, 2015 10:42
Gulp setup
module.exports = function(gulp, options, $) {
gulp.task('clean:post', function () {
return del.sync([
options.paths.app.build + '/**/*',
]);
});
}
<?php
return array(
// Tasks
//
// Here you can define in the `before` and `after` array, Tasks to execute
// before or after the core Rocketeer Tasks. You can either put a simple command,
// a closure which receives a $task object, or the name of a class extending
// the Rocketeer\Abstracts\AbstractTask class
//
|-- Running: Deploy (Deploys the website) [~108.57s]
|---- Running: Primer (Run local checks to ensure deploy can proceed)
|---- Running: CreateRelease (Creates a new release on the server) [~8.359999999999999s]
|------ Running strategy for Deploy: Clone
Cloning repository in "/home/nrfiorg/sites/clients/gsmn-aca/releases/20140816175841"
$ git clone "git@git.assembla.com:aca.git" "/home/nrfiorg/sites/clients/gsmn-aca/releases/20140816175841" --branch="develop" --depth="1"
[nrfiorg@nrfi.org] (development) stdin: is not a tty
[nrfiorg@nrfi.org] (development) Initialized empty Git repository in /home/nrfiorg/sites/clients/gsmn-aca/releases/20140816175841/.git/
$ cd /home/nrfiorg/sites/clients/gsmn-aca/releases/20140816175841
$ git submodule update --init --recursive
<?php
return array(
// This file is located in ~/sites/deployment/gsmn-aca/app/config
/*
|--------------------------------------------------------------------------
| Default Remote Connection Name
|--------------------------------------------------------------------------
@alisamii
alisamii / brand-colours.less
Last active August 29, 2015 13:58
Brand Colours
@bc-4ormat: rgb(251, 10, 42); /* #fb0a2a; */
@bc-500px: rgb(0, 174, 239); /* #00aeef; */
@bc-about-me-2: rgb(6, 47, 60); /* #062f3c; */
@bc-about-me-3: rgb(43, 130, 173); /* #2b82ad; */
@bc-about-me-4: rgb(204, 122, 0); /* #cc7a00; */
@bc-about-me-5: rgb(255, 204, 51); /* #ffcc33; */
@bc-about-me: rgb(0, 64, 93); /* #00405d; */
@bc-addvocate: rgb(255, 51, 34); /* #ff3322; */
@bc-adobe-2: rgb(251, 176, 52); /* #fbb034; */
@bc-adobe-3: rgb(255, 221, 0); /* #ffdd00; */