git init
or
<!-- HA setup; may be overridden with $JENKINS_HOME/jgroups.xml --> | |
<config xmlns="urn:org:jgroups" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.1.xsd"> | |
<TCP loopback="false" | |
recv_buf_size="${tcp.recv_buf_size:128K}" | |
send_buf_size="${tcp.send_buf_size:128K}" | |
max_bundle_size="64K" | |
max_bundle_timeout="30" | |
use_send_queues="true" |
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }
github.com/twotwotwo/sorts is a Go package with parallel radix- and quicksorts. It can run up to 5x faster than stdlib sort on the right kind of large sort task, so it could be useful for analysis and indexing/database-y work in which you have to sort millions of items. (To be clear, I don't recommend most folks drop stdlib sort, which is great, and which sorts depends on.)
While the process of writing it's fresh on my mind, here are some technical details, some things that didn't make the cut, and some thoughts about the process:
Concretely, what this looks like inside:
Both number and string versions are in-place MSD radix sorts that look at a byte at a time and, once the range being sorted gets down to 128 items, call (essentially) the stdlib's quicksort.
The [parallelization code
# Dependencies | |
# nginx_lua | |
# lua uuid module (luarocks install uuid) | |
http { | |
# this will be the request id | |
map $host $request_uuid { | |
default ''; | |
} |
package com.boot; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.SpringApplication; | |
//make sure spring boot doesn't attempt 2.1 config | |
@SpringBootApplication(exclude={org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration.class} ) | |
public class AppApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(AppSecurityApplication.class, args); | |
} | |
} |
The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
brew install gnupg, pinentry-mac
(this includes gpg-agent and pinentry)
Generate a key: $ gpg --gen-key
Take the defaults. Whatevs
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
# This tip shows how to retreive a Spark Room Id with the Cisco Spark API | |
# It leverages curl, jq and base64 commands | |
# Let’s retreive Room Details for "spark4devs" | |
> SPARK_TOKEN="pick your spark token from https://developer.ciscospark.com" | |
> curl -X GET -H "Authorization: Bearer $SPARK_TOKEN" "https://api.ciscospark.com/v1/rooms?max=1000" | jq '.items[] | select(.title | contains("spark4dev"))' | |
{ | |
"id": "Y2lzY29zcGFyazovL3VzL1JPT00vZDJmZGUwOTAtOWQwYy0xMWU1LWFlZWQtMjE3NmZkY2Q4YTU4", | |
"title": "#spark4dev - Public Support for Cisco Spark API", | |
"type": "group", |