Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nobutake Kamiya NbtKmy

🏠
Working from home
  • Zürich
View GitHub Profile
View testmanifest.json
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://93198e01-31fa-4953-a809-7cce9c2aa606",
"@type": "sc:Manifest",
"label": "test",
"metadata": [],
"description": [
{
"@value": "test",
"@language": "en"
@NbtKmy
NbtKmy / getBibliography_fromZotero.gs
Last active Sep 6, 2019
get bibliography from zotero
View getBibliography_fromZotero.gs
function getBibliografy() {
//最後のスライドを取得し、そのテキストボックスも取得
var presentationID = "your presentation-id";
var presentation = SlidesApp.openById(presentationID);
var slide = presentation.getSlides()[x]; //スライドx枚目
var shape = slide.getShapes();
var textBox = shape[0]; // 1番目のShape
var textRange = textBox.getText();
textRange.clear();
View geojson_change.py
import json
def main():
f = open("/path/to/your.geojson", 'r')
json_data = json.load(f)
for i in range(len(json_data["features"])):
lat2 = json_data["features"][i]["properties"]["lat2"]
lon2 = json_data["features"][i]["properties"]["lon2"]
View manifest_map4_on1page.json
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://j-images.ch/iiif-manifests/manifest_map4_on1page.json",
"@type": "sc:Manifest",
"label": "Dai Nihon dôchû kôtei saikenki",
"metadata": [
{
"label": "Title",
"value": {
"@value": "大日本道中行程細見記",
View createKey_and_restart_test_sample.sh
#!/bin/sh
path="/path/to/Cantaloupe-ordner"
path2='dirname $0'
cd $path2
/usr/bin/certbot-auto renew --force-renewal --standalone
$path/create_keystore.sh
View createKey_and_restart_sample.sh
#!/bin/sh
path="path/to/Cantaloupe-ordner"
path2='dirname $0'
cd $path2
/usr/bin/certbot-auto renew --standalone --quiet
$path/create_keystore.sh
View create_keystore_sample.sh
#!/bin/sh
serverpath="/path/to/Cantaloupe-Ordner"
passA="[Passwort A]"
passB="[Passwort B]"
pempath="/etc/letsencrypt/live/[Domain-Name]"
pkcsname="fullchain_and_key.p12"
keyalias="[Aliasname]"
jksname="MyKeyStore.jks"
View restart_sample.sh
#!/bin/bash
# für stoppen
path="/path/to/Cantaloupe-Ordner"
targetpath="$path/cantaloupe-4.0.2.war"
cd $path
echo "Stop $targetpath server."
You can’t perform that action at this time.