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 | |
# | |
# This script ensures that lua interpreter and lua modules specified in Rocksfile are installed. | |
# | |
# Environment variables: | |
# LUA_VERSION : Required version of the lua interpreter (e.g. lua-5.2, luajit-2.1). If this | |
# version is not available on PATH and USE_SYSTEM_LUA != 'yes', then it will be | |
# installed, otherwise it fails. | |
# If not set, then the script checks if lua-5.1, lua-5.2, or luajit-2 is | |
# available. If not and USE_SYSTEM_LUA != 'yes', then lua-5.1 will be installed, |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
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
"title","date","location","types","topics","booking","location_url","info_url" | |
"Knihovna snů aneb Oheň pekelný v Knihovně AV ČR","31. 10., 9:00–00:00","KNIHOVNA AV ČR, v. v. i., Národní 3, Praha 1","výstava","svět vědy","false","http://mapy.cz/zakladni?x=14.4145231&y=50.0813565&z=17&source=addr&id=8940048","http://www.tydenvedy.cz/sd/udalosti/kalendar/vystavy/1031-KAV-knihovna-snu-aneb-ohen-pekelny-v-knihovne-av-cr.html" | |
"Nepál 2015 – co především škody způsobilo a co zabránilo škodám ještě větším","31. 10., 15:00","Knihovna AV ČR, v. v. i., Národní 3, Praha 1","přednáška","svět vědy","false","http://mapy.cz/zakladni?x=14.4145231&y=50.0813565&z=17&source=addr&id=8940048&q=N%C3%A1rodn%C3%AD%203%2C%20Praha%201","http://www.tydenvedy.cz/sd/udalosti/kalendar/prednasky__PRAHA/1031-KNAV-nepal-2015-co-predevsim-skody-zpusobilo-a-co-zabranilo-skodam-jeste-vetsim.html" | |
"Oheň – dobrý sluha, ale zlý pán aneb Popáleniny očima fyzioterapeuta","31. 10., 17:30","Knihovna AV ČR, v. v. i., Národní 3, Praha 1","přednáška","med |
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 | |
# vim: set ts=4: | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# |
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
--- Returns an iterator that behaves opposite to @{ipairs}, i.e. it iterates | |
-- over all key-value pairs that @{ipairs} does not. In other words, it skips | |
-- integer keys from 1 up to the first integer key absent from the table. The | |
-- order in which the keys are enumerated is not specified! | |
-- | |
-- @tparam table tab The table to iterate. | |
-- @treturn function func An iterator. | |
-- @treturn table The given table. | |
local function apairs (tab) | |
-- #tab lies, so we must count it ourself... |
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 ruby | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
require 'csv' |
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
# /etc/ssh/ldap.conf | |
# See ldap.conf(5) for details | |
# This file should be world readable but not world writable. | |
BASE ou=People,dc=example,dc=org | |
URI ldap://localhost |
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/sh | |
# vim: set ts=4: | |
crashed=$(sudo rc-status --crashed) | |
if [ -n "$crashed" ]; then | |
echo "CRITICAL - crashed services: ${crashed//$'\n'/, }" | |
exit 2 | |
else | |
echo 'OK' |
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 python | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
from __future__ import print_function |