Skip to content

Instantly share code, notes, and snippets.

Martin Czygan miku

Block or report user

Report or block miku

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
miku / .gitignore
Last active Mar 5, 2020
Like zcat but reads one or more files from stdin (e.g. from find)
Take a CSV from:
psql fatcat_prod -c "COPY (select id, doi, release_stage, work_ident_id from release_rev where extra_json->>'datacite' is not null) TO '/tmp/datacite-throwaway.csv' WITH CSV DELIMITER ',';"
and generate ingest requests, one per line.
from __future__ import print_function
miku /
Created Jan 5, 2020 — forked from s-m-e/
Download basic statistics for all repositories in list of GitHub organizations
#!/usr/bin/env python
# Python 3
import datetime
import json
import os
from github import Github # pip install PyGithub
ORGANIZATIONS = ['my_organization', 'some_other_organization']
miku / datacite.json
Last active Dec 16, 2019
Example datacite record.
View datacite.json
"id": "10.7916/d8-f93n-rk51",
"type": "dois",
"attributes": {
"doi": "10.7916/d8-f93n-rk51",
"identifiers": [
"identifier": "",
"identifierType": "DOI"
miku /
Last active Dec 4, 2019
Trying to reproduce a HTTP 400 on datacite api v2 using cursor.
# To reproduce, run script and wait a bit, until it stop; last line should be a
# (22) from curl.
# $ bash
# ...
# curl: (22) The requested URL returned error: 400
set -eu -o pipefail
miku / .gitignore
Last active Nov 4, 2019
ISIL offline
View Arch linux minikube kvm2 setup
# Install these packages (use your favorite AUR tool here)
yay -S minikube-bin kubectl-bin docker-machine-driver-kvm2 libvirt qemu-headless docker-machine ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to
sudo virsh net-autostart default
miku /
Created Aug 20, 2019 — forked from kimsk/


D. J. Wheeler

Cambridge & Illinois Universities

A sub-routine may perhaps best be described as a self-contained part of a programme, which is capable of being used in different programmes. It is an entity of its own within a programme. There is no necessity to compose a programme of a set of distinct sub-routines; for the programme can be written as a complete unit, with no divisions into smaller parts. However it is usually advantageous to arrange that a programme is comprised of a set of subroutines, some of which have been made specially for the particular programme while others are available from a library of standard sub-routines. The reasons for this will be discussed below.

When a programme has been made from a set of sub-routines the breakdown of the code is more complete than it would otherwise be. This allows the coder to concentrate on one section of a programme at a time without the overall detai

View fatcat39.tsv
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
OK 1530-1311 Temporal Representation and Reasoning
OK 1641-6554 Kolposkopia
NA Computers in Cardiology Conference
OK 1089-7771 IEEE transactions on information technology in biomedicine.
OK 1093-1139 Academic physician and scientist
OK 1527-4160 Journal of psychiatric practice
miku /
Created Mar 4, 2019 — forked from mikecharles/
Deploy a Python application using Ansible and the Ansistrano role

To deploy your app, you'll need to install Ansible and the Ansistrano deploy and rollback Ansible Galaxy roles.

Then create a directory in your app (eg. named ansible) and put these files in there. You should only need to modify the top few variables in vars.yml to get the deployment working for your app.

To do the deployment, use a command like this:

ansible-playbook --limit <host-name> ansible/deploy.yml
You can’t perform that action at this time.