Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Working on something cool

Robert Koch kochie

💻
Working on something cool
View GitHub Profile
@kochie
kochie / cart_edges.sql
Created May 21, 2019
Athena script to convert csv to Neptune tables
View cart_edges.sql
SELECT CONCAT(CAST(m1.lid AS VARCHAR),
'-',CAST(m2.lid AS VARCHAR)) AS "id",
CONCAT(CAST(m1.pid AS VARCHAR),'-',CAST(m2.pid AS VARCHAR)) AS "~id",
m1.pid AS "~to", m2.pid AS "~from",
m1.quantity*m2.quantity AS "weight",
'boughtTogether' AS "~label"
FROM "mumumango"."lineitem" AS m1, "mumumango"."lineitem" AS m2
WHERE m1.lid<m2.lid
AND m1.oid=m2.oid
ORDER BY m1.lid;
View install-monero-miner.sh
#!/bin/bash
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
brew install vim git make libcurl4-openssl-dev autotools-dev automake gcc tmux
else
sudo apt-get -y install vim git make libcurl4-openssl-dev autotools-dev automake gcc tmux
fi
@kochie
kochie / install.sh
Last active May 14, 2020
A updated installation of OpenCV on Ubuntu 17.04. Also provides command line argument to compile ARM binaries aimed at Raspberry Pi
View install.sh
#!/bin/bash
VERSION=3.3.0
PYTHON=/usr/bin/python3
if [ $1 == "arm" ]; then
echo "Compiling for ARM (Raspberry Pi)"
sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install gcc-arm-linux-gnueabihf
@kochie
kochie / .tmux.conf
Created Sep 27, 2017 — forked from snuggs/.tmux.conf
TMUX configuration file
View .tmux.conf
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
#
# COPY AND PASTE
View keybase.md

Keybase proof

I hereby claim:

  • I am kochie on github.
  • I am kochie (https://keybase.io/kochie) on keybase.
  • I have a public key whose fingerprint is A09C 3ECB 1582 1533 F46C 7D9A 060F 6578 4D08 8318

To claim this, I am signing this object:

View ttk-progressbar-example.py
#!/usr/bin/env python
# Tkinter (Tk/Ttk) Progressbar widget example
#
# Written by Yu-Jie Lin
# This code is placed in Public Domain
#
# Gist: https://gist.github.com/livibetter/6850443
# Clip: https://www.youtube.com/watch?v=rKr8wjKuhBY
#
# References:
You can’t perform that action at this time.