Skip to content

Instantly share code, notes, and snippets.

@arsenvlad
arsenvlad / JacksonExample.java
Created March 24, 2020 22:42
Java Jackson JSON
package arsenvlad;
import java.util.Calendar;
public class JacksonExample {
private String fieldOne;
private String fieldTwo;
private Calendar someDate;
public String getFieldOne() {
variable "prefix" {
type = "string"
}
variable "location" {
type = "string"
default = "eastus2"
}
resource "azurerm_resource_group" "example" {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"azureStorageAccountResourceGroup": {
"type": "string",
"metadata": {
"description": "Resource group of Azure Storage account to synchronize with."
}
},
@arsenvlad
arsenvlad / minio-azure.yaml
Created April 27, 2018 01:02
minio gateway azure
apiVersion: v1
kind: Service
metadata:
name: minio
labels:
app: minio
spec:
clusterIP: None
ports:
- port: 9012
@arsenvlad
arsenvlad / TensorflowServingDockerfile
Last active May 10, 2018 19:03
Tensorflow Serving Docker
FROM ubuntu:16.04
RUN apt-get update && apt-get install software-properties-common python-software-properties -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get install -y curl libcurl3-dev unzip wget libstdc++6 && \
apt-get clean
RUN echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | tee /etc/apt/sources.list.d/tensorflow-serving.list && \
curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add - && \
# Based on code from https://gallery.technet.microsoft.com/scriptcenter/Easily-obtain-AccessToken-3ba6e593
# Assumes AzureRm.Profile module is improted and is version 3 or newer
$azureRmProfile = [Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider]::Instance.Profile
$profileClient = New-Object Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient($azureRmProfile)
$currentAzureRmContext = Get-AzureRmContext
$token = $profileClient.AcquireAccessToken($currentAzureRmContext.Subscription.TenantId)
$accessToken = $token.AccessToken
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "Location for the deployment"
}
},

Keybase proof

I hereby claim:

  • I am arsenvlad on github.
  • I am arsenvlad (https://keybase.io/arsenvlad) on keybase.
  • I have a public key whose fingerprint is 54B4 235D F594 D6E2 C44C 0733 6642 FD39 A34A 9A58

To claim this, I am signing this object: