Skip to content

Instantly share code, notes, and snippets.

View michaljemala's full-sized avatar
🤘
Enjoying Golang

Michal Jemala michaljemala

🤘
Enjoying Golang
  • Bratislava, Slovakia
View GitHub Profile
@michaljemala
michaljemala / aws.go
Created March 15, 2018 11:40
AWS - Subscribe queue to a topic
package main
import (
"flag"
"fmt"
"log"
"os"
"time"
"github.com/aws/aws-sdk-go/aws"
@michaljemala
michaljemala / check_gen.go
Created January 2, 2018 21:00
Generate a SQL check constraint benchmark
package main
import (
"log"
"math/rand"
"os"
"text/template"
"time"
)
package main
import (
"flag"
"fmt"
"log"
"net/http"
)
var (
@michaljemala
michaljemala / MySQL_macOS_Sierra.md
Created November 15, 2016 14:02 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

# Population with filter for particular period:
query UK {
node(id: "0491") {
label(lang: "en")
population(filter: "$point_in_time == `2010`") @propagate
}
}
# List of genders using the gender ID
query GenderNode {
{
"nodes" :[
{"id": 1, "value": 40, "title": "Martin Linkov", "image": "img/martin.jpg"},
{"id": 2, "value": 40, "title": "Mike Butcher", "image": "img/mike.jpg"},
{"id": 3, "value": 40, "title": "Unigraph", "image": "img/ug.png"},
{"id": 4, "value": 40, "title": "Techcrunch", "image": "img/tc.jpg"},
{"id": 5, "value": 40, "title": "Techcrunch Disrupt London", "image": "img/ds.png"},
{"id": 6, "value": 40, "title": "Ingen.io", "image": "img/ingenio.png"},
{"id": 7, "value": 40, "title": "London", "image": "img/london.jpg"},
{"id": 8, "value": 40, "title": "Atanas Youroukov", "image": "img/atanas.jpg"},
{
"Hrid":"Cash",
"Claim":{
"Type":"Quantity",
"Values":{
"RowContains":[
":CashBankInHand",
":CashBank",
":CashBankOnHand",
":CashInHand"

Keybase proof

I hereby claim:

  • I am michaljemala on github.
  • I am mije (https://keybase.io/mije) on keybase.
  • I have a public key whose fingerprint is 1697 6835 3FBB 3BCC DA81 ED49 F434 C962 4B5D D96D

To claim this, I am signing this object:

@michaljemala
michaljemala / NativeDumper.java
Created May 19, 2015 09:15
A sample Native Memory Tracking dump
package org.example;
import java.lang.management.ManagementFactory;
import javax.management.MBeanServer;
import javax.management.ObjectName;
public class NativeDumper {
public static String dumpNative() {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
try {