Skip to content

Instantly share code, notes, and snippets.

View graphaelli's full-sized avatar

Gil Raphaelli graphaelli

View GitHub Profile
// List or summarize upcoming calendar events
// auth handling from https://developers.google.com/calendar/quickstart/go
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
package main
import (
cryptorand "crypto/rand"
"encoding/binary"
"fmt"
"log"
"math/rand"
"time"
)
package main
import (
"log"
"os"
"path"
"strconv"
"github.com/davecgh/go-spew/spew"
"github.com/elastic/gosigar"
@graphaelli
graphaelli / Dockerfile
Last active October 5, 2020 20:46
Caffe with Python3 on Centos 7
FROM centos:7
MAINTAINER graphaelli "http://g.raphaelli.com/2016/01/04/centos-python3-caffe.html"
RUN yum -y update && yum clean all
# python3 deps
RUN yum -y groupinstall 'Development Tools'
RUN yum -y install bzip2-devel db4-devel gdbm-devel libpcap-devel ncurses-devel openssl-devel readline-devel sqlite-devel xz-devel zlib-devel
# jupyter deps
RUN yum -y install epel-release
RUN yum -y install blas-devel freetype-devel gcc gcc-c++ gcc-fortran git hdf5-devel lapack-devel libjpeg-turbo-devel libpng-devel make opencv-devel patch readline-devel zeromq-devel
package main
import (
"bytes"
"compress/zlib"
"context"
cryptorand "crypto/rand"
"encoding/binary"
"flag"
"fmt"
@graphaelli
graphaelli / sampleflaskapm.py
Created February 27, 2018 20:45
sample elastic apm flask app
#!/usr/bin/env python
import elasticapm
from elasticapm.contrib.flask import ElasticAPM
from flask import Flask
# initialize using environment variables from elasticapm.contrib.flask import ElasticAPM
app = Flask(__name__)
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
#!/usr/bin/env python3
import json
import os
def direct_dep(pkg):
for d in {
"github.com/Bowery/prompt",
"github.com/apache/thrift",
DELETE block_ip
PUT block_ip
{
"mappings": {
"properties": {
"source": {
"properties": {
"ip": {
"type": "ip"
}

Keybase proof

I hereby claim:

  • I am graphaelli on github.
  • I am gilad (https://keybase.io/gilad) on keybase.
  • I have a public key ASCnetPoqSZtXSmLezuo9vdWsU7-G8XyqDECfQXKfqbeFwo

To claim this, I am signing this object: