Skip to content

Instantly share code, notes, and snippets.

@bitnik
bitnik / apt.txt
Created June 29, 2020 12:13 — forked from ELC/apt.txt
Circular TimesTable
ffmpeg
@bitnik
bitnik / keybase.md
Last active September 8, 2019 08:41

Keybase proof

I hereby claim:

  • I am bitnik on github.
  • I am bitnik (https://keybase.io/bitnik) on keybase.
  • I have a public key ASAHyzn4x4d3XcDo7h2faIsDpNJ7j_FyLkZbPOuxiwcUrQo

To claim this, I am signing this object:

@bitnik
bitnik / requirements.txt
Last active July 8, 2020 08:17
binder-simple
requests
@bitnik
bitnik / delete-dockerhub-images.sh
Last active October 5, 2018 14:05 — forked from jriguera/delete-dockerhub-images.sh
Delete Docker images on DockerHub
#!/bin/bash
# Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721
# Was also useful: https://success.docker.com/article/how-do-i-authenticate-with-the-v2-api
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME="gesisnotebooks"
@bitnik
bitnik / login_wp_api.py
Created July 24, 2018 10:29
how to login to wikipedia api
import requests
def create_wp_session(language='en'):
# create session
session = requests.session()
# fill user, password and headers
user = ""
password = ""
headers = {}
session.auth = (user, password)
@bitnik
bitnik / cihan.py
Last active February 22, 2023 10:28
Scan pdfs and rename them according to data in barcodes they contain.
import tempfile
import glob
import argparse
# import xlrd
import pandas
from os.path import join, basename
from shutil import copyfile
from pdf2image import convert_from_path # , convert_from_bytes
from pyzbar.pyzbar import decode
# from PIL import Image
@bitnik
bitnik / query_wikiwho_api.py
Last active November 21, 2017 15:48
How to query WikiWho API
import requests
session = requests.session()
# log in data
session.auth = ('wikiwho_api_username', 'wikiwho_api_password')
language = 'en'
wikiwho_api_base_url = 'https://api.wikiwho.net/{}/api/v1.0.0-beta/'.format(language)
# Example: get revision content by page id