Skip to content

Instantly share code, notes, and snippets.

View NbtKmy's full-sized avatar
🏠
Working from home

Nobutake Kamiya NbtKmy

🏠
Working from home
View GitHub Profile
#!/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"
#!/bin/sh
path="/path/to/Cantaloupe-ordner"
path2='dirname $0'
cd $path2
/usr/bin/certbot-auto renew --force-renewal --standalone
$path/create_keystore.sh
#!/bin/sh
path="path/to/Cantaloupe-ordner"
path2='dirname $0'
cd $path2
/usr/bin/certbot-auto renew --standalone --quiet
$path/create_keystore.sh
#!/bin/bash
# für stoppen
path="/path/to/Cantaloupe-Ordner"
targetpath="$path/cantaloupe-4.0.2.war"
cd $path
echo "Stop $targetpath server."
{
"@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": "大日本道中行程細見記",
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"]
@NbtKmy
NbtKmy / getBibliography_fromZotero.gs
Last active September 6, 2019 07:06
get bibliography from zotero
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();
{
"@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 / check_gnd.py
Last active January 20, 2021 00:28
Checking persons in the snf list with gnd api
import pandas as pd
import requests
df = pd.read_csv('snf_person.csv', sep=',')
df['viaf'] = 'NaN'
df['orcid_gnd'] = 'NaN'
df['gnd'] = 'NaN'
df['ambiguity'] = 0
@NbtKmy
NbtKmy / manifest.json
Created February 26, 2021 10:04
manifest_test
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://91d111ec-49ff-40c5-bd1e-fd3bdecee82d",
"@type": "sc:Manifest",
"label": "my favorit things",
"metadata": [],
"description": [
{
"@value": "... my favorit images",
"@language": "en"