Skip to content

Instantly share code, notes, and snippets.

Avatar

Ondřej Profant Kedrigern

View GitHub Profile
View program.html
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
View 25-III.yml
---
metadata:
title: Pětadvactíka
short title: Pětadvactíka
documentation: "None"
description: Pomoc živnostníkům Pětadvactíka v souvislosti s COVID-19
authors:
- name: Ondřej Profant
organization: Pirátská strana
- name: Jan Suchánek
View 25-II.yml
---
metadata:
title: Pětadvactíka
short title: Pětadvactíka
documentation: "Zatím není"
description: Pomoc živnostníkům Pětadvactíka v souvislosti s COVID-19
authors:
- name: Ondřej Profant
organization: Pirátská strana
- name: Jan Suchánek
View 25-I.yml
---
metadata:
title: Pětadvactíka
short title: Pětadvactíka
documentation: "Zatím není"
description: Pomoc živnostníkům Pětadvactíka v souvislosti s COVID-19
authors:
- name: Ondřej Profant
organization: Pirátská strana
revision_date: 2020-04-10
View vcmi.sh
#!/usr/bin/env bash
# Clone source code and compile vcmi
# 1. Install dependency at Fedory
# 2. Clone repository $repo
# 3. Compile given tag
# 4. Prepare data from gog exe file
tag="0.99"
repo="https://github.com/vcmi/vcmi.git"
path="~/Donwloads/hommam3.exe"
View transform-csv.py
#!/usr/bin/env python3
import sys
import pandas as pd
def main():
prefix = 'p7-2016'
names = ["DOKLAD_ROK","DOKLAD_DATUM","DOKLAD_AGENDA","DOKLAD_CISLO","ORGANIZACE","ORGANIZACE_NAZEV","ORJ","ORJ_NAZEV","PARAGRAF","PARAGRAF_NAZEV","POLOZKA","POLOZKA_NAZEV","SUBJEKT_IC","SUBJEKT_NAZEV","CASTKA_MD","CASTKA_DAL","POZNAMKA"]
to_del = ['DOKLAD_ROK', 'ORGANIZACE_NAZEV', 'ORJ', 'ORJ_NAZEV', 'PARAGRAF_NAZEV', 'DOKLAD_CISLO', 'POLOZKA_NAZEV']
to_use = ["DOKLAD_ROK", "DOKLAD_DATUM"]
View profant-pirati.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCXtVS22o0kTSgVLroWXwSRx7WQqUZaNYm7cSNtdUT0GyTVBO67IIAHqm3Gc/WAwVJhU7HZdX9Ms7+ccw0uPSOZVrU4KhmbCumyAGRh8iCCnM5gy/XQTDgi7yXKeKTn2EgoqN96OW9h+7lvDh0BZyymXmwaaqfzzIaULZrqn/ai9Dc7VAuZGE/7ZpD9MWS+//UXnZ5y04P6/i+AYzCUfRujhdIPUHUbV6V08lNoIzdkg0R+1ShLV+rPdLJihwKXab4bKAbwrcsDkbKopygi7YP3Df3TdMTKnH0qNXrode6M8RMZ9a+q3X1dNHFDLjlJQ1enrHdRFjgk8EDf6eMEKq2t Klíč Ondřej Profant pro pirátské servery
@Kedrigern
Kedrigern / readme.md
Last active Apr 18, 2017
RSS schema úřední deska Praha
View readme.md

Úřední deska Praha

Nápady na zlepšení:

  • doplnit strojově čitelně do RSS metadata, proti webu chybí:
    • Evidenční číslo
    • Typ
    • Odbor
    • Datum stažení
    • Typ zprávy
@Kedrigern
Kedrigern / subtitles.sh
Created Feb 6, 2017
Mass convert name and coding of subtitles
View subtitles.sh
#!/usr/bin/env bash
# Converts subtitles
# from> grimm.301.hdtv-lol.srt
# to> Grimm.S03E01.HDTV.x264-LOL.srt
season=3
num_episodes=22
for i in `seq -w 1 $num_episodes`; do
fr="grimm.${season}${i}.hdtv-lol"
View jekyll-deploy.sh
#!/usr/bin/env bash
repo_url_prefix="https://github.com/pirati-web/"
repo_prefix="./git/"
deploy_prefix="./jekyll/"
jekyll_bin="/usr/local/bin/jekyll"
repos=( strednicechy.pirati.cz jihocesky.pirati.cz )
function prerequisite {
mkdir -p "$deploy_prefix"