This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
list () | |
{ | |
echo "local" | |
echo "remote1" | |
} | |
env_remote1 () | |
{ | |
export DOCKER_HOST="remote1.org:2375" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
from collections import defaultdict | |
def ddict (): | |
return defaultdict(ddict) | |
def ddict2dict(d): | |
for k, v in d.items(): | |
if isinstance(v, dict): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this theme was build be taking some code and impressions from mortalscumbag, intheloop, crcandy and bureau | |
bureau_git_branch () { | |
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \ | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
echo "${ref#refs/heads/}" | |
} | |
bureau_git_status () { | |
_INDEX=$(command git status --porcelain -b 2> /dev/null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This package fixes some issues with listings | |
% - Set a nice font | |
% - Add Turtle as langugage | |
% - Imprive XML style | |
% - Fix dashs/hyphens | |
% | |
% (c) 2013 Natanael Arndt | |
% LPPL LaTeX Public Project License | |
% | |
\NeedsTeXFormat{LaTeX2e}[1994/06/01] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$request = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['REQUEST_URI']); | |
$purl = 'http://purl.org' . $request; | |
$proxyTarget = array( | |
'/voc/ex/' => 'http://example.org/site/schema/?r=', | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map.Entry; | |
public class AcceptHeader { | |
private HashMap<String, Float> datatypes; | |
public AcceptHeader() { | |
datatypes = new HashMap<String, Float>(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This package provides support for prefixes in qnames | |
% | |
% Defined commands: | |
% \setprefix{foaf}{http://xmlns.com/foaf/0.1/} | |
% Define a prefix namespace | |
% \getprefix{foaf} | |
% Get a defined prefix namespace | |
% \prefix{foaf} | |
% Just output the prefix linked to the namespace | |
% \qname{foaf:Person} has to contain a colon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file belongs into /etc/nginx/sites-available and a link to it in /etc/nginx/sites-enabled | |
# if it doesn't work maybe remove the default configuration from /etc/nginx/sites-enabled | |
# | |
# make sure to adjust the root path "root /path/to/xodx/;" below | |
server { | |
# Make site accessible from http://localhost/ | |
#server_name localhost; | |
listen [::]:80 default_server; # listen for ipv6 and ipv4 | |
#listen 80 default_server; # if the ipv6 line doesn't work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_POST['comment'])) { | |
$to = 'http://example.com/resource#b'; | |
$comment = $_POST['comment']; | |
$pingbackService = 'http://example.com/pingservice'; | |
if (isset($_POST['from']) && !empty($_POST['from'])) { | |
$source = $_POST['from']; | |
} else { | |
$source = 'http://example.com/from-resource#a'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Initscript to switch LED1 on Olinuxino A13 on and off | |
# | |
### BEGIN INIT INFO | |
# Provides: statusled | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |