Skip to content

Instantly share code, notes, and snippets.

View jirutka's full-sized avatar
🇺🇦
Слава Україні!

Jakub Jirutka jirutka

🇺🇦
Слава Україні!
View GitHub Profile
@jirutka
jirutka / oneimage-upload
Created July 10, 2017 00:14
This is a wrapper for oneimage for uploading image from local system to OpenNebula server.
#!/bin/sh
# vim: set ts=4:
#
# Install dependencies on Alpine:
# apk add ruby ruby-io-console ruby-json ruby-nokogiri ruby-xmlrpc bind-tools
# gem install opennebula-cli
#
#---help---
# Usage: oneimage-upload [options]
#
@jirutka
jirutka / alpine-virt-image
Last active May 15, 2018 12:10
This script creates a bootable Alpine Linux disk image for virtual machines.
Moved to https://github.com/alpinelinux/alpine-make-vm-image
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=ripgrep
pkgver=0.5.1
pkgrel=0
pkgdesc="ripgrep combines the usability of The Silver Searcher with the raw speed of grep"
url="https://github.com/BurntSushi/ripgrep"
arch="x86_64" # limited by cargo pkg
license="MIT public-domain"
makedepends="cargo"
@jirutka
jirutka / README
Last active December 4, 2018 01:42
Simple scripts to manage Let’s Encrypt! certificates using acme-client
Files structure:
/
|-- etc
| |-- acme (700)
| | |-- privkey.pem (400)
| | |-- request-cert (750)
| | `-- update-certs (750)
| |-- periodic/weekly/acme-update (750)
| `-- ssl/acme (755)
@jirutka
jirutka / README.adoc
Last active March 7, 2017 15:34
Twitter statistics for #InstallFest 2017

Twitter statistics for #InstallFest in 2017

Includes tweets created between 2017-03-03 and 2017-03-06

  • Number of tweets (excluding RTs): 215

  • Number of likes: 724

  • Number of retweets: 186

  • Number of tweeting users: 76

@jirutka
jirutka / README.adoc
Created February 7, 2017 20:49
Twitter statistics for #FOSDEM and #FOSDEM2017 (2017)

Twitter statistics for #FOSDEM and #FOSDEM2017 (2017)

Includes tweets created between 2017-02-03 and 2017-02-06

  • Number of tweets (excluding RTs): 5597

  • Number of likes: 19306

  • Number of retweets: 8697

  • Number of tweeting users: 1720

Archive of all tweets is available here.

@jirutka
jirutka / archive.adoc
Last active February 7, 2017 20:50
Archive of tweets with hashtag #FOSDEM or #FOSDEM2017 (2017)

Archive of tweets with hashtag #FOSDEM or #FOSDEM2017 (2017)

Includes tweets created between 2017-02-03 and 2017-02-06

Statistics are available here.

@0x4444

@jirutka
jirutka / git-edit
Last active April 4, 2018 16:03
git edit – start interactive rebase to edit the specified commit.
#!/bin/sh
# vim: set ts=4:
set -e
if [ $# -eq 0 ] || [ "$1" = '-h' ]; then
cat >&2 <<-EOF
Usage: git edit <tree-ish>
git edit [-h]
Start interactive rebase to edit the specified commit.
@jirutka
jirutka / vyhledavani-myslenkou.adoc
Last active December 20, 2016 22:52
Vyhledávání myšlenkou :: Úvaha na téma vyhledávání informací, kterou jsem napsal při studiích na FIT ČVUT v roce 2012.

Vyhledávání myšlenkou

Úvaha na téma vyhledávání informací, kterou jsem napsal při studiích na FIT ČVUT v roce 2012.

Úvod

Společnost IBM již šest let vydává na konci roku přehled pěti technologických inovací, tzv. „IBM Five in Five“, které mají potenciál v následujících pěti letech přinést významnou změnu do způsobu, jakým lidé žijí, pracují a baví se.

@jirutka
jirutka / README.adoc
Last active May 6, 2023 17:38
Script for periodical synchronization of data (e.g. mirrors) using rsync

Files

  • /etc/periodic/15min/sync-mirror-alpine → /usr/local/bin/sync-mirror (symlink)

  • /etc/sync-mirror.d/alpine.conf

  • /usr/local/bin/sync-mirror

  • /var/www/mirrors/alpine