Skip to content

Instantly share code, notes, and snippets.

View tamvodopad's full-sized avatar
🏠
Working from home

Konstantin Popov tamvodopad

🏠
Working from home
View GitHub Profile
@tamvodopad
tamvodopad / .bash
Created July 26, 2015 14:20
Fetch and pull all branches from origin
#!/bin/bash
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
git branch --track ${branch##*/} $branch
done
git fetch --all
git pull --all
@tamvodopad
tamvodopad / gist:8557094
Created January 22, 2014 11:18
Yii Framework: console command in module.
<?php
'commandMap' => array(
'deleteexpireduser' => array(
'class' => 'application.modules.user.commands.DeleteExpiredUserCommand',
),
),