Skip to content

Instantly share code, notes, and snippets.


Michael Schramm wodka

  • GmbH
  • Vienna
View GitHub Profile
local red=`tput setaf 1`
local green=`tput setaf 2`
local bold=`tput bold`
local reset=`tput sgr0`
local current_branch=$(git rev-parse --abbrev-ref HEAD)
for branch in $(git branch --merged | cut -c3-)
if [[ $branch = $current_branch ]]; then
View gist:df7f4ecae541a19fcce7
$theme = new Theme();
$c = new ThemeComponent();
$c->addOption(new ThemeComponentOption('author', 'Michi'));
View gist:fbf1766c4d7a491e1601
Verifying that +wodka is my openname (Bitcoin username).
wodka / .htaccess
Created December 8, 2014 22:47
missing htaccess
View .htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "ubuntu/trusty64"
# "forwarded_port", guest: 80, host: 8080 "private_network", ip: ""
wodka / service.js
Created February 5, 2016 14:14
angular style MS
View service.js
(function (angular) {
'use strict'; // inside of function -> might break stuff in global context
angular.module('com.acme.module', ['log.ex.uo'])
.factory('AcmeService', AcmeService)
.provider('AcmeConfig', AcmeConfig)
AcmeService.$inject = ['$log', '$q', '$http', 'AcmeConfig'];
function AcmeService ($log, $q, $http, AcmeConfig) {
View gist:95457be1ccaea2d0efd8
Updating dependencies (including require-dev)
- Removing symfony/property-access (v3.0.2)
- Installing symfony/property-access (v3.0.3)
Downloading: 100%
- Removing symfony/options-resolver (v3.0.2)
- Installing symfony/options-resolver (v3.0.3)
Loading from cache
- Removing symfony/intl (v3.0.2)
wodka / ThreadPoolCommand.php
Last active February 18, 2021 20:26
Simple Symfony3 command Thread Pool
View ThreadPoolCommand.php
namespace AppBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Process;