Skip to content

Instantly share code, notes, and snippets.

View gokaykucuk's full-sized avatar
🎯
Focus time

Serdar Gokay Kucuk gokaykucuk

🎯
Focus time
View GitHub Profile
# taken from https://okhlopkov.com/run-metabase-with-dokku/
dokku apps:create metabase
dokku postgres:create metabase
dokku postgres:link metabase metabase
dokku config:set metabase MB_DB_TYPE=postgres MB_DB_CONNECTION_URI=<your postgres url>
dokku proxy:ports-set metabase http:80:3000
dokku git:from-image metabase metabase/metabase:latest
dokku domains:set metabase YOURDOMAIN.com
dokku letsencrypt:enable metabase
@gokaykucuk
gokaykucuk / largestFiles.py
Created August 16, 2021 18:32 — forked from nk9/largestFiles.py
Python script to find the largest files in a git repository.
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects.
#
@gokaykucuk
gokaykucuk / plutus-game.hs
Last active February 8, 2021 19:09
Plutus guessing game sample
-- A game with two players. Player 1 thinks of a secret word
-- and uses its hash, and the game validator script, to lock
-- some funds (the prize) in a pay-to-script transaction output.
-- Player 2 guesses the word by attempting to spend the transaction
-- output. If the guess is correct, the validator script releases the funds.
-- If it isn't, the funds stay locked.
import Control.Monad (void)
import qualified Data.ByteString.Char8 as C
import Language.Plutus.Contract
import qualified Language.PlutusTx as PlutusTx