Assuming the JSON input as following
{
"name":"my contacts",
"contacts":[
{
"firstname":"John",
package main | |
import ( | |
"bytes" | |
"crypto" | |
_ "crypto/md5" // for crypto.MD5 | |
_ "crypto/sha1" // for crypto.SHA1 | |
_ "crypto/sha512" // for crypto.SHA384 & 512 | |
"crypto/x509" | |
"encoding/asn1" |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
# if you just want to install a jar file | |
#mvn install:install-file -Dfile=target/myfile-5.6.6.jar -DpomFile=pom.xml | |
# if you want to install the entire package | |
mvn install -DskipTests -Dgpg.skip -Ddependency-check.skip=true |
ffmpeg -i familymode-kiosk-setup-screencast.mp4 -c:v libx264 -b:v 500k -ab 56k -s 1920x1440 x.mp4 |
#!/usr/bin/php -f | |
<?php | |
error_reporting(~E_WARNING); | |
//Create a UDP socket | |
if(!($sock = socket_create(AF_INET, SOCK_DGRAM, 0))) { | |
$errorcode = socket_last_error(); | |
$errormsg = socket_strerror($errorcode); | |
die("Couldn't create socket: [$errorcode] $errormsg \n"); | |
} | |
echo "Socket created \n"; |
## Old hosts, just for record | |
# geo.hivebedrock.network | |
# hivebedrock.network | |
# mco.mineplex.com | |
# mco.lbsg.net | |
## Current one (as of version 1.16) | |
play.inpvp.net | |
mco.cubecraft.net | |
hivebedrock.us |
#!/bin/bash | |
# | |
# Add latency to all outgoing traffic on $DEV on tcp/udp $PORT, | |
# in the amount of $DELAY. | |
# | |
# This is matching on both source port and destination port, which | |
# may hit you twice if you're accessing a local resource. | |
# | |
# To see what's currently in effect, | |
# tc -s qdisc show dev lo |
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"cloud.google.com/go/firestore" | |
"google.golang.org/api/option" |