Skip to content

Instantly share code, notes, and snippets.

View FujiHaruka's full-sized avatar

Haruka Fuji FujiHaruka

  • Tokyo
View GitHub Profile
@weavenet
weavenet / delete_all_object_versions.sh
Created May 4, 2015 05:21
Delete all versions of all files in s3 versioned bucket using AWS CLI and jq.
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`
@mohayonao
mohayonao / find_homography
Created March 25, 2011 22:09
4つの点からホモグラフィ行列(平面射影変換行列)を求める
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy
def find_homography(src, dst):
# X = (x*h0 +y*h1 + h2) / (x*h6 + y*h7 + 1)
# Y = (x*h3 +y*h4 + h5) / (x*h6 + y*h7 + 1)
#