This file contains 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 | |
/** | |
* GPS Coordinates Parser | |
* | |
* Forms: | |
* - 49.7175669N, 15.3728881E | |
* - N 49°43.05402', E 15°22.37328' | |
* - 49°43'3.241"N, 15°22'22.397"E | |
* - N48.7382° E19.56845° |
This file contains 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
@ECHO OFF | |
rem (c) Severak 2018 | |
SETLOCAL | |
IF "%1"=="start" goto f_start | |
IF "%1"=="stop" goto f_stop | |
echo Usage: | |
echo fcgiserver start [port=9000] |
This file contains 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
# | |
# config pro development pomoci Caddy serveru (https://caddyserver.com/) | |
# | |
# teoreticky by mělo běhat o něco rychleji než vestavěný php server | |
# (Caddy je vícevláknový) | |
# | |
# dále viz https://github.com/caddyserver/examples | |
# a https://gist.github.com/severak/2600b49caae377a594d7585128495895 | |
localhost:80 { |
This file contains 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 | |
/** | |
* Turn all URLs in clickable links. | |
* | |
* @param string $value | |
* @param array $protocols http/https, ftp, mail, twitter | |
* @param array $attributes | |
* @param string $mode normal or all | |
* @return string | |
*/ |
This file contains 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
# ztratila klice | |
with_fx :reverb do | |
live_loop :ztratila do | |
use_synth :prophet | |
play chord(:G, :major), release: 1.5 | |
sleep 1 | |
play chord(:A, :minor) | |
sleep 0.5 | |
play chord(:A, :minor) |
This file contains 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
open source > 1 > 1 > /usr/share/texmf/tex/context/base/cont-yes.mkiv | |
ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2016.11.12 int: english/english | |
system > 'cont-new.mkiv' loaded | |
open source > 2 > 2 > /usr/share/texmf/tex/context/base/cont-new.mkiv | |
close source > 2 > 2 > /usr/share/texmf/tex/context/base/cont-new.mkiv | |
system > files > jobname 'gidole', input './gidole', result 'gidole' | |
fonts > latin modern fonts are not preloaded | |
languages > language 'en' is active |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
machine='debian.ll' | |
status='up' | |
# get ip | |
ip=`ip route get 1 | awk '{print $NF;exit}'` | |
# announce it | |
wget -qO- "http://status.svita.cz/ann.php?machine=${machine}&status=${status}&ip=${ip}" &> /dev/null |
This file contains 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
--Yet another SOUP.IO downloader/backup tool | |
-------------------------------------------------------------------------------- | |
--Written by Severak, released with MIT license. | |
--Feel free to modify. | |
-- | |
--Example of usage: | |
-- | |
--lua5.1 soup.lua moomins.soup.io | |
--(last 20 from public rss) | |
--lua5.1 soup.lua http://www.soup.io/export/your-secret-hash.rss |
This file contains 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
-- Kyselo/Resoup DB schema | |
-- public part | |
CREATE TABLE blogs ( | |
id INTEGER PRIMARY KEY, | |
name TEXT UNIQUE, | |
title TEXT, | |
about TEXT, | |
avatar_url TEXT, |