Skip to content

Instantly share code, notes, and snippets.

View boly38's full-sized avatar

Vandeputte Brice boly38

View GitHub Profile
@alexandrevilain
alexandrevilain / api.md
Last active April 21, 2024 16:54
Livebox API
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active May 7, 2024 00:47
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@digulla
digulla / DefaultLocaleRule.java
Last active March 9, 2022 17:16
JUnit 4 Rule to run individual tests with a different default locale
import java.util.Locale;
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;
public class DefaultLocaleRule extends TestWatcher {
private Locale originalDefault;
private Locale currentDefault;
public DefaultLocaleRule() {
@flopezluis
flopezluis / gist:2172067
Created March 23, 2012 15:53
Bookmark to purge all the queues in a vhost. RabbitMQ
//add this to your bookmarks. The default vhost in RabbitMq is "/",
// so you should have as virtualhost %2F, but due to chrome escape it, i used %252f
//i assume you're in the management site (http://www.rabbitmq.com/management.html)
javascript:
vhost="%252f";
var purge = function(name) {
$.ajax({
url:'api/queues/' + vhost + "/" + name + '/contents/',
type: 'DELETE',
success:function(data) {