Skip to content

Instantly share code, notes, and snippets.

View petrblaho's full-sized avatar

Petr Blaho petrblaho

  • Brno, Czech Republic
View GitHub Profile
steamsite.cz. 3600 IN SOA ns.wedos.com. wedos.wedos.com. 2023120505 3600 1800 1814400 3600
steamsite.cz. 300 IN A 89.221.213.126
steamsite.cz. 3600 IN NS ns.wedos.cz.
steamsite.cz. 3600 IN NS ns.wedos.eu.
steamsite.cz. 3600 IN NS ns.wedos.com.
steamsite.cz. 3600 IN NS ns.wedos.net.
steamsite.cz. 1800 IN MX 1 wes1-mx1.wedos.net.
steamsite.cz. 1800 IN MX 1 wes1-mx2.wedos.net.
steamsite.cz. 1800 IN MX 10 wes1-mx-backup.wedos.net.
*.steamsite.cz. 300 IN A 89.221.213.126
#!/bin/sh
if [ -z ${TMUX+x} ]
then
in_tmux="no"
else
in_tmux="yes"
fi
fzf_output=$(tmux list-sessions -F \#S 2> /dev/null | fzf --prompt Session: --print-query)
sudo dnf search *font* | grep -e 'noarch' | grep -v '^texlive' | awk -F. '{print $1}' | sort | uniq | xargs sudo dnf install -y
In [1]: from zonkylla.core.utils import iso2datetime
In [2]: from zonkylla.core.reports import upcoming_transactions
In [3]: trans = upcoming_transactions()
In [4]: filtered = [t for t in trans]
In [5]: filtered = [t for t in trans if t['payment_date'] == '2018-01-01']
virsh list | grep running | awk '{print $2}' | xargs -n1 -I{} sh -c "echo {}; virsh domifaddr {} --full | grep ip; echo '---'"
❯ openstack --os-identity-api-version 3 --os-username cloud_admin --os-password password --os-domain-name admin_domain --os-user-domain-name admin_domain
(openstack) role assignment list --name
+------------------+------------------------------------+-------+---------------------+--------------+-----------+
| Role | User | Group | Project | Domain | Inherited |
+------------------+------------------------------------+-------+---------------------+--------------+-----------+
| admin | swift@Default | | service@Default | | False |
| _member_ | swift@Default | | service@Default | | False |
| admin | neutron@Default | | service@Default | | False |
| _member_ | neutron@Default | | service@Default | | False |
| admin | cind
05-09 13:32:40.961 25056 25088 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
05-09 13:32:40.961 25056 25088 E AndroidRuntime: Process: com.horaapps.leafpic, PID: 25056
05-09 13:32:40.961 25056 25088 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
05-09 13:32:40.961 25056 25088 E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:309)
05-09 13:32:40.961 25056 25088 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
05-09 13:32:40.961 25056 25088 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
05-09 13:32:40.961 25056 25088 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
05-09 13:32:40.961 25056 25088 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
05-09 13:32:40.961 25056 25088 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
#!/usr/bin/sh
studentdir=$1
declare -a commands=(
"faketime 2015-10-10 bundle exec ruby kolikjeste.rb"
"faketime 2015-10-10 bundle exec ruby kolikjeste.rb Jiří"
"faketime 2015-10-10 bundle exec ruby kolikjeste.rb Jiri"
"faketime 2015-10-13 bundle exec ruby kolikjeste.rb Renáta"
<div class="reveal">
<div class="slides">
<section data-markdown>
<script type="text/template">
<http://slides.com>
```<b>Hello world</b>```
<u>test</u>
#!/usr/bin/sh
studentdir=$1
declare -a commands=(
"faketime 2015-10-10 bundle exec ruby kolikjeste.rb"
"faketime 2015-10-10 bundle exec ruby kolikjeste.rb Jiří"
"faketime 2015-10-10 bundle exec ruby kolikjeste.rb Jiri"
"faketime 2015-10-13 bundle exec ruby kolikjeste.rb Renáta"