Skip to content

Instantly share code, notes, and snippets.

@beresmate
beresmate / parallel-test-task.js
Last active May 12, 2016 18:17
Run mocha processes parallel from a Grunt task.
module.exports = function (grunt) {
// collect the test files from our test folder
// for example grunt.file.expand
function getTests () {
var tests = [
{
filePath: '/Users/Mate/Desktop/LoginTest.js',
name: 'Login test'
},
{
@mgandin
mgandin / ConcurrentFooBarQix.java
Last active February 23, 2022 01:03
A small example to monitor Java Thread Pool with JMX
package fr.mga.concurrent;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
public class ConcurrentFooBarQix implements Callable<String> {
@rca
rca / docker_registry.conf
Created July 10, 2013 09:11
nginx config for docker registry. The key setting is `client_max_body_size 600M;` which allows large uploads. The setting `proxy_read_timeout 900;` gives the upload enough time to complete (but this might not be needed).
upstream docker_registry {
server 127.0.0.1:15000;
}
server {
listen 443;
root /dev/null;
index index.html index.htm;
@mharizanov
mharizanov / WiFiCheck
Created April 6, 2013 08:50
Script to check and re-connect WiFi on Raspberry Pi
#!/bin/bash
##################################################################
# A Project of TNET Services, Inc
#
# Title: WiFi_Check
# Author: Kevin Reed (Dweeber)
# dweeber.dweebs@gmail.com
# Project: Raspberry Pi Stuff
#
# Copyright: Copyright (c) 2012 Kevin Reed <kreed@tnet.com>
@xconnecting
xconnecting / build.gradle
Created November 8, 2012 06:30
Gradle: print buildscript dependencies
apply plugin: 'eclipse'
apply plugin: 'maven'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.apache.commons:commons-email:1.2'
}