Skip to content

Instantly share code, notes, and snippets.

View black23's full-sized avatar

black23 black23

View GitHub Profile
@xmorave2
xmorave2 / Koha-Cs-Lang-update-from-server.sh
Last active May 5, 2022 07:43
Update koha language from translate.koha-community.org into current installation
#!/bin/bash
cd /usr/share/koha/misc/translator/po
rm cs-CZ*
wget http://translate.koha-community.org/download/cs/316/cs-CZ-i-opac-t-prog-v-3006000.po
wget http://translate.koha-community.org/download/cs/316/cs-CZ-i-staff-t-prog-v-3006000.po
wget http://translate.koha-community.org/download/cs/316/cs-CZ-opac-ccsr.po
wget http://translate.koha-community.org/download/cs/316/cs-CZ-opac-bootstrap.po
wget http://translate.koha-community.org/download/cs/316/cs-CZ-staff-help.po
wget http://translate.koha-community.org/download/cs/316/cs-CZ-pref.po
koha-translate -u cs-CZ
@zajdee
zajdee / Digital-Green-Certificate-Dump.py
Last active November 5, 2021 19:15
A simple tool to dump the European Union's COVID passports (Digital Green Certificates)
#!/usr/bin/env python3
# install dependencies:
# pip install base45 cbor2 (cwt - not used here)
import sys
import zlib
from base45 import b45decode
from cbor2 import loads
@xmorave2
xmorave2 / obalkyknih.css
Created October 10, 2019 09:21
Obálky knih intranet Koha
#cover_obalkyknih, #catalogue_detail_biblio {
float:left;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
@iamrobert
iamrobert / Joomla-htaccess
Last active December 12, 2019 11:22
Joomla htaccess - siteground hosting 7.3
# ----------------------------------------------------------------------
# iamrobert.com
# JOOMLA 3 HTACCESS
# October 29, 2019
# Replace https://www.domain.com/ with current site URL (LINE 625)
# Update OSMAP SITEMAP.XML (LINE 637)
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# | SITEGROUND PHP 7 RULES
@atbradley
atbradley / librarything.php
Created September 22, 2016 12:37
Retrieve book data from the LibraryThing Common Knowledge API.
<?php
namespace ocra\libraryThing;
/**
* Search LibraryThing's Common Knowledge API for a book and return and array with author/title and maybe year.
*/
function find_by_isbn($isbn) {
$lturl = 'http://www.librarything.com/services/rest/1.1/?method=librarything.ck.getwork&isbn=%s&apikey=%s';
$lturl = sprintf($lturl, $isbn, LIBRARYTHING_API_KEY);