Skip to content

Instantly share code, notes, and snippets.

lekv / appify
Created March 22, 2017 11:29 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X -
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"`
#include <iostream>
#include <dirent.h>
#include <thread>
// Prepare: mkdir d; cd d; touch {0001.1000}
// Build with: g++ --std=c++11 -pthread -o main main.cpp
using namespace std;
int num_files(DIR* dir_stream) {
lekv / instances_preview.png
Last active December 5, 2017 19:01
Preview for IMPALA-6190/IMPALA-6246
Query (id=7a4b153d9175fa9a:ab326f0d00000000):
DEBUG MODE WARNING: Query profile created while running a DEBUG build of Impala. Use RELEASE builds to measure query performance.
Session ID: 324dcca803f2fbf5:7a6bf3b925f397a3
Session Type: BEESWAX
Start Time: 2017-12-04 16:46:45.530864000
End Time:
Query Type: QUERY
Query State: RUNNING
Query Status: OK
lekv / IMPALA-6269-Preview.png
Last active February 20, 2018 07:06
IMPALA-6269 preview
import sys
from collections import namedtuple
from datetime import datetime
from struct import Struct
MDRawHeader = namedtuple("MDRawHeader", "signature version stream_count \
stream_directory_rva checksum time_date_stamp flags")