Creates merge request on Gitlab for you
Download it, add executable perms and place into PATH:
# Place it into ~/.bin
mkdir ~/.bin| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| .git | |
| .gitignore | |
| /doc | |
| .yardoc | |
| coverage | |
| jsdoc | |
| /tmp | |
| /log | |
| Dockerfile | |
| Dockerfile.prod |
| ## Colours and font styles | |
| ## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}" | |
| # Escape sequence and resets | |
| ESC_SEQ="\e[0;" | |
| RESET_ALL="${ESC_SEQ}0m" | |
| RESET_BOLD="${ESC_SEQ}21m" | |
| RESET_UL="${ESC_SEQ}24m" | |
| # Foreground colours | |
| FG_BLACK="${ESC_SEQ}30m" |
| #! /bin/bash | |
| set -e | |
| trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
| trap 'echo FAILED COMMAND: $previous_command' EXIT | |
| #------------------------------------------------------------------------------------------- | |
| # This script will download packages for, configure, build and install a GCC cross-compiler. | |
| # Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
| # If you get an error and need to resume the script from some point in the middle, | |
| # just delete/comment the preceding lines before running it again. |
| ##################################################################################### | |
| # gradient.rb 11.29.2014 | |
| # | |
| # Ruby Gradient Generator | |
| # author: Jeff Miller | |
| # website: humani.se | |
| # github: github.com/ibanez270dx | |
| # | |
| # USAGE: | |
| # Enter RGB or Hex color values and number of steps |
| ActiveSupport::Inflector.inflections do |inflect| | |
| inflect.clear | |
| inflect.plural(/$/, 's') | |
| inflect.plural(/(s)$/i, '\1') | |
| inflect.plural(/^(paí)s$/i, '\1ses') | |
| inflect.plural(/(z|r)$/i, '\1es') | |
| inflect.plural(/al$/i, 'ais') | |
| inflect.plural(/el$/i, 'eis') | |
| inflect.plural(/ol$/i, 'ois') |
| set -e | |
| PREFIX=~/opt/qt5pi | |
| ROOTFS_MOUNT=/mnt/rasp-pi-rootfs | |
| # On Ubuntu 14.04 do the following first to get the ia32-lib | |
| if [ `lsb_release -ds` -eq "Ubuntu 14.04 LTS" ] | |
| sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 | |
| fi |
| gem 'bootbox-rails', '~>0.3' |
| # copy to: config/initializers/delayed_job_config.rb | |
| # Fail at startup if method does not exist instead of later in a background job | |
| [[ExceptionNotifier::Notifier, :background_exception_notification]].each do |object, method_name| | |
| raise NoMethodError, "undefined method `#{method_name}' for #{object.inspect}" unless object.respond_to?(method_name, true) | |
| end | |
| # Chain delayed job's handle_failed_job method to do exception notification | |
| Delayed::Worker.class_eval do | |
| def handle_failed_job_with_notification(job, error) |