Skip to content

Instantly share code, notes, and snippets.

Tobias Munk schmunk42

Block or report user

Report or block schmunk42

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@schmunk42
schmunk42 / git-changelog-markdown.sh
Last active Jun 5, 2019
Bash git changelog draft function
View git-changelog-markdown.sh
# Usage: git-changelog-markdown > changelog-draft.md
git-changelog-markdown () {
git log --topo-order --pretty="format:%d - %s" | sed 's/(tag.*) /\
### & \
/' \
| grep -v 'Merge pull request' \
| grep -v 'Merge commit'
}
@schmunk42
schmunk42 / package-lock.json
Created Nov 30, 2018
package.json examples generated with foxy
View package-lock.json
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"@composer-asset/yiisoft--yii-bootstrap4": {
"version": "file:vendor/foxy/composer-asset/yiisoft/yii-bootstrap4",
"requires": {
"bootstrap": "^4.1.3",
"jquery": "^3.3.1",
"popper.js": "^1.14.5"
@schmunk42
schmunk42 / composer.json
Last active Nov 16, 2017
High memory usage (asset-packagist vs fxpio/cap)
View composer.json
{
"name": "dmstr/phd5-app",
"minimum-stability": "beta",
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
],
"require": {
View composer.log
> FXP_ASSET__ENABLED=0 composer create-project -vvv yiisoft/yii2-app-advanced advanced-noplugin 2.0.12
Loading config file /Users/tobias/.composer/config.json
Loading config file /Users/tobias/.composer/auth.json
Reading /Users/tobias/.composer/composer.json
Loading config file /Users/tobias/.composer/config.json
Loading config file /Users/tobias/.composer/auth.json
Loading config file /Users/tobias/.composer/composer.json
Loading config file /Users/tobias/.composer/auth.json
Reading /Users/tobias/.composer/auth.json
Checked CA file /opt/local/share/curl/curl-ca-bundle.crt: valid
@schmunk42
schmunk42 / install.log
Created Oct 5, 2017
composer create-project -vvv yiisoft/yii2-app-advanced advanced2 2.0.12
View install.log
> composer create-project -vvv yiisoft/yii2-app-advanced advanced2 2.0.12
Loading config file /Users/tobias/.composer/config.json
Loading config file /Users/tobias/.composer/auth.json
Reading /Users/tobias/.composer/composer.json
Loading config file /Users/tobias/.composer/config.json
Loading config file /Users/tobias/.composer/auth.json
Loading config file /Users/tobias/.composer/composer.json
Loading config file /Users/tobias/.composer/auth.json
Reading /Users/tobias/.composer/auth.json
Checked CA file /opt/local/share/curl/curl-ca-bundle.crt: valid
@schmunk42
schmunk42 / AcceptanceHelper.php
Created Aug 24, 2017 — forked from pastuhov/AcceptanceHelper.php
codeception page load wait helper
View AcceptanceHelper.php
<?php
namespace tests\codeception\common\_support;
use Codeception\Exception\ModuleException;
/**
*
*/
class AcceptanceHelper extends \Codeception\Module
@schmunk42
schmunk42 / docker-compose-up.log
Created Jan 13, 2017
docker-compose up -d - swarm pulls on all nodes
View docker-compose-up.log
sam /roj/stacks/test/swarm-pull-test> docker-compose --verbose up
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.auth.auth.find_config_file: Trying paths: ['/roj/config/config.json', '/root/.docker/config.json', '/root/.dockercfg']
docker.auth.auth.find_config_file: Found file at path: /roj/config/config.json
docker.auth.auth.load_config: Found 'auths' section
docker.auth.auth.parse_auth: Found entry (registry=u'registry.example.com/hrzg/ee', username=u'registry')
compose.cli.command.get_client: docker-compose version 1.8.1, build 878cff1
docker-py version: 1.10.3
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
@schmunk42
schmunk42 / composer-install.log
Created Jan 13, 2017
Vanilla composer install with preferred-install
View composer-install.log
> docker run -v ${PWD}:/app composer install --ignore-platform-reqs
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 156 installs, 0 updates, 0 removals
- Installing yiisoft/yii2-composer (2.0.5) Downloading: 100%
- Installing fxp/composer-asset-plugin (v1.2.2) Downloading: 100%
- Installing wikimedia/composer-merge-plugin (v1.3.1) Downloading: 100%
- Installing ezyang/htmlpurifier (v4.8.0) Downloading: 100%
- Installing cebe/markdown (1.0.2) Downloading: 100%
- Installing bower-asset/jquery (2.2.4) Downloading: 100%
@schmunk42
schmunk42 / composer-install-2x.log
Created Jan 13, 2017
Run composer install two times on a project which actually requires "assets", but with a vanilla composer installation
View composer-install-2x.log
> git clone https://github.com/phundament/app.git app-nop
Klone nach 'app-nop' ...
remote: Counting objects: 16314, done.
remote: Total 16314 (delta 0), reused 0 (delta 0), pack-reused 16314
Empfange Objekte: 100% (16314/16314), 9.72 MiB | 4.09 MiB/s, Fertig.
Löse Unterschiede auf: 100% (9132/9132), Fertig.
tobias on Kraftbuch.local in ~/Webserver/TESTING
> cd app-nop
tobias on Kraftbuch.local in ~/Webserver/TESTING/app-nop(8d19h28m|master)
> docker run -v ${PWD}:/app composer install
@schmunk42
schmunk42 / redeploy.log
Created Nov 20, 2016
roj-redeploy.sh handle docker/swarm overlay network errors
View redeploy.log
Stopping phd5eeapp_php_1 ... done
Stopping phd5eeapp_redis_1 ... done
Removing phd5eeapp_worker_1 ... done
Removing phd5eeapp_php_1 ... done
Removing phd5eeapp_redis_1 ... done
Removing network phd5eeapp_default
Network reverse_default is external, skipping
--> up
Creating network "phd5eeapp_default" with the default driver
Creating phd5eeapp_redis_1
You can’t perform that action at this time.