gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
import com.google.protobuf.DescriptorProtos; | |
import com.google.protobuf.Descriptors; | |
import com.google.protobuf.DynamicMessage; | |
import com.google.protobuf.Message; | |
import java.util.HashMap; | |
/** | |
* ProtobufEnvelope - allows creating a protobuf message without the .proto file dynamically. | |
* |
public class HCatInputFormat extends InputFormat<SerializableWritable<Writable>, HCatRecord> { | |
private final org.apache.hcatalog.mapreduce.HCatInputFormat input; | |
public HCatInputFormat() { | |
input = new org.apache.hcatalog.mapreduce.HCatInputFormat(); | |
} | |
@Override | |
public RecordReader<SerializableWritable<Writable>, HCatRecord> createRecordReader( |
import java.io.{IOException, File, ByteArrayOutputStream} | |
import org.apache.avro.file.{DataFileReader, DataFileWriter} | |
import org.apache.avro.generic.{GenericDatumReader, GenericDatumWriter, GenericRecord, GenericRecordBuilder} | |
import org.apache.avro.io.EncoderFactory | |
import org.apache.avro.SchemaBuilder | |
import org.apache.hadoop.fs.Path | |
import parquet.avro.{AvroParquetReader, AvroParquetWriter} | |
import scala.util.control.Breaks.break | |
object HelloAvro { |
nginx conf for proxying the FreeIPA UI. ipa.my.org is the proxy name, realipa.my.org is the master. | |
server { | |
listen 443 ssl; | |
server_name ipa.my.org; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/ipa.crt; | |
ssl_certificate_key /etc/nginx/ssl/ipa.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers AES256+EECDH:AES256+EDH:AES128+EECDH!aNULL; |
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Sometimes while running a command inside of a docker container, the container itself will run out of disk space and things can fail (sometimes in strange ways). This is not a guide on how to allocate resources, but a quick cookbook on how to free up disk space inside a container. See below for links to more resources and reading.
These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.
Remember to add /w gm
or @{selected|wtype}
to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.
Here's what my bar looks like.
package com.cloudera.example | |
import org.apache.spark.sql._ | |
import org.apache.spark.sql.types._ | |
import org.apache.spark.sql.functions._ | |
import scala.collection.mutable._ | |
import scala.collection.mutable.ListBuffer |