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 perl | |
use strict; | |
use warnings; | |
use Path::Class; | |
use FindBin; | |
my $output_dir = dir($FindBin::Bin,"data"); | |
$output_dir->is_dir or die "[ERROR] $output_dir is not a directory."; |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode; | |
use Encode::Guess qw/shift-jis euc-jp 7bit-jis/; | |
use Perl6::Slurp; | |
use Path::Class; |
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 | |
set -eu | |
API_TOKEN="<CHANGE_THIS>" | |
ROOM_ID="<CHANGE_THIS>" | |
REPOS=$(basename $(pwd)) | |
REPOS=${REPOS%.*} |
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 bash | |
set -eu | |
RUBY_VERSION="2.1.2" | |
if ! which -s brew; then | |
echo "[ERROR] Homebrew is required." | |
exit 1 | |
fi |
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 perl | |
package MyApp::Notifier::Base; | |
use warnings; | |
use LWP::UserAgent; | |
sub new { | |
my $class = shift; | |
my $self = { @_ }; |
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
namespace :notify do | |
namespace :update do | |
task :start do | |
_send_message("[\`#{fetch(:application)}\`] Deployment has started.") | |
end | |
task :finish do | |
_send_message("[\`#{fetch(:application)}\`] Deployment has finished. :ok_woman:\n> #{fetch(:commit_message)}") | |
end | |
end |
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
requires 'LWP::Protocol'; | |
requires 'LWP::Protocol::https'; | |
requires 'JSON'; |
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
$ osacompile -l JavaScript -x -o ~/Desktop/open-pages.app ./open-pages.js |
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 | |
set -eu | |
LOGGER_LOG_LEVEL=4 | |
BASE_DIR=$(pwd) | |
LIB_DIR=$HOME/src/github.com/artifactsauce/proglets/lib/bash | |
. $LIB_DIR/functions | |
. $LIB_DIR/logger |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use JSON; | |
use Data::Dumper; | |
use LWP::UserAgent; | |
my $url = $ENV{SLACK_WEBHOOK_URL}; |