Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nichtich's full-sized avatar
🦊
not a fox

Jakob Voß nichtich

🦊
not a fox
View GitHub Profile
@nichtich
nichtich / csv2quickstatements.pl
Created August 10, 2017 09:00 — forked from lunohodov/ral_classic.csv
RAL Standard Color Table (CSV)
#!/usr/bin/env perl
#
# Import RAL color table to Wikidata via QuickStatements
#
use v5.14;
my %color = (
de => 'Farbe',
en => 'color',
fr => 'couleur',
#!/bin/bash
#Inspired by http://blog.neutrino.es/2012/git-copy-a-file-or-directory-from-another-repository-preserving-history/
#Hosted with revision at https://gist.github.com/nichtich/9196137
if test "$1" == ""; then
echo "Usage $0 file-or-directory [directory-for-patches]"
echo ""
echo "Extract a file or directory from a git repository, preserving history. A"
echo "temporary directory will be used if not directory for patches is provided."
echo "The patches can be applied to a target repository with 'gim am *.patch'."
@nichtich
nichtich / README.md
Last active April 16, 2024 23:15 — forked from oodavid/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
#!/bin/bash
# version 20120611
# author: dr0ide
# Copyright 2011 dr0ide. The program is distributed under the terms of
# the GNU General Public License, see https://www.gnu.org/licenses/gpl-3.0.html
#
#TODO:
# 1. if http://de.dbpedia.org/ontology/wikiPageRedirects exists then fetch it.
# because only there resides the information if it is "wikiPageDisambiguates" ,
# e.g. http://de.dbpedia.org/resource/Bücherei , respectively said property is NOT