Skip to content

Instantly share code, notes, and snippets.

View schmunk42's full-sized avatar

Tobias Munk schmunk42

View GitHub Profile
@schmunk42
schmunk42 / log.txt
Last active August 28, 2015 18:13
docker-registry v2 log
redis_1 | _._
redis_1 | _.-``__ ''-._
redis_1 | _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit
redis_1 | .-`` .-```. ```\/ _.,_ ''-._
redis_1 | ( ' , .-` | `, ) Running in standalone mode
redis_1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
redis_1 | | `-._ `._ / _.-' | PID: 1
redis_1 | `-._ `-._ `-./ _.-' _.-'
redis_1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis_1 | | `-._`-._ _.-'_.-' | http://redis.io
@schmunk42
schmunk42 / Phundament on AWS EC2
Created February 20, 2014 14:44
log of the first full-automatic Phundament installation on AWS EC2
$ vagrant up
Bringing machine 'default' up with 'aws' provider...
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
[default] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations (`config.vm.network`). They
will be silently ignored.
[default] Launching an instance with the following settings...
[default] -- Type: t1.micro
[default] -- AMI: ami-a850c898
[default] -- Region: us-west-2
@schmunk42
schmunk42 / templay-0.0.0.0.1.html
Last active August 29, 2015 13:56
Templaytemplate
<!-- Home Section -->
<div id="home" class="section">
<div class="fixed-wrapper"><h1>Columns</h1></div>
<div class="container">
<com:Template> <!-- id="col-12" description="Full width template" -->
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<h2 tpy:editable>12 Columns</h2>
<p tpy:editable>Sed tempus dignissim felis, nec placerat elit sagittis vel. Praesent porttitor erat
at
@schmunk42
schmunk42 / GiibatchController.php
Last active August 29, 2015 13:57
Yii2 Giibatch
<?php
namespace app\commands;
use yii\console\Controller;
use yii\helpers\Inflector;
/**
* @author Tobias Munk <schmunk@usrbin.de>
*/
@schmunk42
schmunk42 / user.sql
Created March 28, 2014 18:31
Yii 2 User Extension Data Model
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The KEY obviously',
`username` varchar(20) NOT NULL DEFAULT '' COMMENT 'Login name (alnum)',
`email` varchar(128) NOT NULL DEFAULT '' COMMENT 'User e-mail address',
`password` varchar(128) NOT NULL DEFAULT '' COMMENT 'Secure password hash',
`auth_client` varchar(128) NOT NULL DEFAULT '' COMMENT 'Eg. local, LDAP, GitHub, Twitter, Facebook, ...',
`auth_key` varchar(128) NOT NULL DEFAULT '' COMMENT 'External ID',
`activation_key` varchar(128) NOT NULL DEFAULT '' COMMENT 'Key to activate the account, sent by email',
`superuser` int(1) NOT NULL DEFAULT '0' COMMENT '** Not sure if needed, IMHO should be implemented in another way **',
`status` int(1) NOT NULL DEFAULT '0' COMMENT 'Eg. registered,confirmed,activated,banned',
@schmunk42
schmunk42 / Bootstrap.php
Created April 20, 2014 01:37
Yii 2 module bootstrap
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2014 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace schmunk42\sakila;
@schmunk42
schmunk42 / gist:f9b9658580c4f59c570c
Created July 4, 2014 06:13
Phundament shallow clone git update
Kraftbuch:test tobias$ git clone --depth=1 -b 4.0 https://github.com/phundament/app.git app-4
Kraftbuch:test tobias$ cd app-4
Kraftbuch:app-4 tobias$ git log
commit b828ad302ee5ff3138367d9d005b3ce14918c3d3
Author: Tobias Munk <schmunk@usrbin.de>
Date: Thu Jul 3 14:58:01 2014 +0200
added git-hook for detecting composer lock changes
@schmunk42
schmunk42 / config.php
Created July 6, 2014 20:33
config with markers
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-backend', #value:id#
@schmunk42
schmunk42 / PhundamentController.php
Created July 7, 2014 10:07
Yii application init
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2014 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace console\controllers;
@schmunk42
schmunk42 / post-merge
Created August 17, 2014 23:28
git hook to check changes in composer lock file with PHP
#!/usr/bin/php
<?php
/**
* Hook to tell you, when you have to trigger composer install
*
* Installation:
*
* cd .git/hooks/
* ln -s ../../git-hooks/post-merge .
*/