This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
here=`pwd` | |
fld="$here/data" | |
mkdir -p "$fld" | |
docker run -p 9200:9200 \ | |
-p 9300:9300 \ | |
-e "discovery.type=single-node" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from json import loads | |
from json import dumps | |
try: | |
from pygments import highlight, lexers, formatters | |
def show(d): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# crude template for generating pinterest DMCA takedown request emails. | |
# send to: copyright@pinterest.com | |
#example csv file: | |
#new,2018/01/25,https://no.pinterest.com/pin/489696159457745571/,url,http://url.com | |
#new,2018/01/25,https://no.pinterest.com/pin/34832597103507119/,desc,old | |
from jinja2 import Environment, DictLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from random import random | |
n = 1 | |
w = 0. | |
while True: | |
s = random()*60. | |
w += 60.-s |
NewerOlder