time.google.com
time1.google.com
time2.google.com
time3.google.com
import org.apache.spark.sql.DataFrame | |
def dataFrameToDDL(dataFrame: DataFrame, tableName: String): String = { | |
val columns = dataFrame.schema.map { field => | |
" " + field.name + " " + field.dataType.simpleString.toUpperCase | |
} | |
s"CREATE TABLE $tableName (\n${columns.mkString(",\n")}\n)" | |
} | |
import spark.sqlContext.implicits._ |
#!/bin/sh | |
# | |
# Resource script for Minio | |
# | |
# Description: Manages Minio as an OCF resource in | |
# an Active-Passive High Availability setup. | |
# | |
# Author: Ricardo Branco <tsmgeek@gmail.com> : Initial script for minio server | |
# License: GNU General Public License (GPL) | |
# |
#!/bin/bash | |
# Install Quake 3: Arena on a mac | |
set -e # exit on error | |
if [ ! -d ${HOME}/ioq3 ]; then | |
(cd ${HOME} && git clone https://github.com/ioquake/ioq3) | |
else | |
(cd ${HOME}/ioq3 && git pull --rebase) |
package main | |
import ( | |
"fmt" | |
"hash/crc32" | |
) | |
func randomServers(token string, count int) []int { | |
hTok := crc32.Checksum([]byte(token), crc32.IEEETable) | |
val := uint32(hTok) |
GNU GENERAL PUBLIC LICENSE | |
Version 2, June 1991 | |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. | |
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
Everyone is permitted to copy and distribute verbatim copies | |
of this license document, but changing it is not allowed. | |
Preamble |
package main | |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"golang.org/x/crypto/openpgp/armor" |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/openpgp" | |
"os" | |
) | |
func main() { | |
keyRingReader, err := os.Open("signer-pubkey.asc.txt") |