This file contains 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 | |
# Prunes merged branches except for master and develop | |
# | |
# Potential updates | |
# - use an array of branchs to skip/ignore | |
# - allow branches with a prefix ("release/...") to be skipped | |
MASTER="master" | |
DEVELOP="develop" |
This file contains 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 | |
# Organizes files based on their Modify date. | |
# folder structure is YYYY/MMDD/filename | |
FILE_ROOT=/path/to/files | |
FILES=$FILE_ROOT/* | |
for f in $FILES | |
do | |
# Skip if this is a directory or an executable (Assumes the script is in the same folder) |
This file contains 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
import std.stdio; | |
import std.regex; | |
import std.array; | |
import std.conv; | |
void main(string[] args) | |
{ | |
if (args.length < 1) | |
{ | |
writeln("No string specified"); |