git format-patch -1 <sha>
OR
git format-patch -1 HEAD
git apply --stat file.patch # show stats.
git apply --check file.patch # check for error before applying
| sidekiq: | |
| terminationGracePeriodSeconds: 1200 # Max time to wait for sidekiq jobs to finish is 20 minutes | |
| container: | |
| command: | |
| - bundle | |
| - exec | |
| - sidekiqswarm | |
| preStopCMD: ["/bin/bash","/app/bin/sidekiq_graceful_shutdown.sh"] |
| #!/bin/bash | |
| # Install a custom ElasticSearch version - https://www.elastic.co/products/elasticsearch | |
| # | |
| # To run this script on SemaphoreCI, add the following command to your project's build setup: | |
| # \curl -sSL <RAW_URL_FOR_THIS_SCRIPT> | bash -s | |
| # | |
| ELASTICSEARCH_VERSION="0.90.13" | |
| ELASTICSEARCH_PORT="9200" | |
| ELASTICSEARCH_DIR="$SEMAPHORE_PROJECT_DIR/elasticsearch" | |
| ELASTICSEARCH_WAIT_TIME="15" |
| Author: Nilo Dantas - n1lo | |
| Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post | |
| How to use Cedilha on US Keyboard on ArchLinux | |
| 1) Put: English(US, internacional with dead Keys) on your system keyboard layout. | |
| 2) Editing the files: | |
| sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache |
| #@see rynop.com for details | |
| sudo apt-get install xbindkeys | |
| ####now put the following in ~/.xbindkeysrc: | |
| #KeyboardPlay | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" | |
| XF86AudioPlay | |
| #KeyboardStop |
| <?php | |
| /** | |
| * Hide editor on specific pages. | |
| * | |
| */ | |
| add_action( 'admin_init', 'hide_editor' ); | |
| function hide_editor() { | |
| // Get the Post ID. |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Tom Robinson <http://tlrobinson.net/> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| package br.com.triadworks.rponte.util; | |
| import java.text.Normalizer; | |
| public class StringUtils { | |
| /** | |
| * Remove toda a acentuação da string substituindo por caracteres simples sem acento. | |
| */ | |
| public static String unaccent(String src) { |