Skip to content

Instantly share code, notes, and snippets.

View d4rky-pl's full-sized avatar

Michał Matyas d4rky-pl

View GitHub Profile
@d4rky-pl
d4rky-pl / codeship.rb
Last active September 29, 2017 12:03
Simple Ruby script to check Codeship status
#!/usr/bin/env ruby
require 'net/http'
require 'json'
require 'time'
# Replace YOUR_API_KEY with your Codeship API key
API_KEY = 'YOUR_API_KEY'
# Change this to ['repository/name', 'repository/name2'] if you want to filter only specific projects
PROJECTS = nil
@d4rky-pl
d4rky-pl / webpack.sh
Created July 5, 2017 06:08
Simple Bash script to translate bitbar-webpack-status-plugin result to human language
#!/bin/bash
if [[ -f /tmp/webpack-status ]]; then
STATUS=$(cat /tmp/webpack-status)
if [[ $STATUS -eq "-1" ]]; then
echo "Build failed!"
elif [[ $STATUS -eq "1" ]]; then
echo "Build success."
else
echo "Build in progress..."