# cat /etc/security/limits.conf
* hard nofile 500000
* soft nofile 500000
root hard nofile 500000
root soft nofile 500000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> Observable<T> create(ListenableFuture<T> future, Executor executor) { | |
AsyncSubject<T> subject = AsyncSubject.create(); | |
future.addListener(() -> { | |
try { | |
T value = future.get(); | |
subject.onNext(value); | |
subject.onCompleted(); | |
} catch (Exception e) { | |
subject.onError(e); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.danveloper.springboot | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.SpringApplication | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration | |
import org.springframework.context.ApplicationContext | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.integration.dsl.groovy.IntegrationContext | |
import org.springframework.integration.dsl.groovy.builder.AbstractIntegrationBuilderModuleSupport |
Simple Dashing widget (and associated job) to display open pull requests for a specific Project and/or repository from Atlassian Stash
See the example.png below for an idea on how this widget looks on a dashboard.
None
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.grails.gradle.plugin.GrailsTask | |
apply plugin: 'grails' | |
grails { | |
grailsVersion '2.2.1' | |
} | |
buildscript { | |
repositories { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern clear, fillRect, renderLine, print; | |
struct Vec2d { | |
function void Vec2d(float x, float y) { | |
this->x = x; | |
this->y = y; | |
} | |
float x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sync Homebrew installations between Macs via Dropbox | |
# | |
BREW="/usr/local/bin/brew" | |
# first get local settings | |
echo "Reading local settings ..." | |
rm -f /tmp/brew-sync.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
env: | |
global: | |
- SONATYPE_USERNAME=yourusername | |
- secure: "your encrypted SONATYPE_PASSWORD=pass" | |
after_success: | |
- python addServer.py | |
- mvn clean deploy --settings ~/.m2/mySettings.xml |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
NewerOlder