This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function list { | |
| for branch in `git branch --remote | awk '{print $1}'`; do | |
| last=`git log $branch | grep Author | head -1 | awk '{print $NF}'` | |
| echo $last $branch | |
| done | |
| } | |
| list | sort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # branch -> remove /path/to/branch | |
| tag=$( git symbolic-ref HEAD \ | |
| | awk -F'/' '{print $NF}' \ | |
| | sed 's/^[Cc][Rr][Bb]-\([0-9]\+\)/CRB-\1/' \ | |
| ) | |
| [ -n "$tag" ] && echo "$tag" >> $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
| Example: | |
| ProFi = require 'ProFi' | |
| ProFi:start() | |
| some_function() | |
| another_function() | |
| coroutine.resume( some_coroutine ) | |
| ProFi:stop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import logging | |
| import sys | |
| import time | |
| import praw | |
| def configure_logging(): | |
| logger = logging.getLogger("praw") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # | |
| # whatthecommit - Random commit message generator | |
| # | |
| # Show random commit message from http://whatthecommit.com/. | |
| # | |
| # Seungwon Jeong <[email protected]> | |
| # | |
| # Copyright 2011 by Seungwon Jeong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $audit = file_get_contents('audit.txt'); | |
| $audit = split("\n", $audit); | |
| $data = Array(); | |
| for ($i=0; $i!=count($audit); $i++) { | |
| $line = $audit[$i]; | |
| $datatype = substr($line, 0, 1); | |
| switch ($datatype) { | |
| case '-': | |
| $day = substr($line, 3, 10); |
NewerOlder