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
#!/usr/bin/env ruby | |
pwd = `pwd` | |
branches = [ | |
[:master, %w( | |
blah | |
asdf-core | |
)], | |
[:main, %w( |
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
#!/usr/bin/env ruby | |
branch_name = ARGV[0] | |
unless branch_name.nil? | |
system %( | |
git clean -f -d | |
git rebase --abort | |
git branch -D tempbranch &> /dev/null | |
find . -name "post-checkout" | xargs rm -rf |
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
#!/usr/bin/env ruby | |
pwd = `pwd` | |
apps = [ | |
["asdf", %( | |
blah blah | |
)], | |
["xyz", %( | |
blah blah |
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
#!/usr/bin/env ruby | |
docker_ps_output = `docker ps` | |
containers_raw = docker_ps_output.split(/\n/).reject { |line| line =~ /^CONTAINER/ } | |
if containers_raw.empty? | |
puts "No containers already! Yay!" | |
exit | |
end |
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
#include <ncurses.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#define MAX_BRANCH_NAME_LEN 4096 | |
#define MAX_BRANCHES 100 | |
#define COLOR_PAIR_HEADER 1 |