(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env python | |
# | |
# Query the Steam master servers. | |
# | |
# See: http://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol | |
# | |
# Koen Bollen <meneer koenbollen nl> | |
# 2010 GPL | |
# |
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
# For use in Chef: | |
# Adds a command: git-pull-recursive | |
file "/usr/local/bin/git-pull-recursive" do | |
owner "root" | |
group "root" | |
mode "0755" | |
action :create | |
content 'find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;' | |
end |
#!/usr/bin/env ruby | |
# Translate a string to "sendkey" commands for QEMU. | |
# Martin Vidner, MIT License | |
# https://en.wikibooks.org/wiki/QEMU/Monitor#sendkey_keys | |
# sendkey keys | |
# | |
# You can emulate keyboard events through sendkey command. The syntax is: sendkey keys. To get a list of keys, type sendkey [tab]. Examples: | |
# | |
# sendkey a |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
### default for all ## | |
Host * | |
ForwardAgent no | |
ForwardX11 no | |
ForwardX11Trusted yes | |
User nixcraft | |
Port 22 | |
Protocol 2 | |
ServerAliveInterval 60 | |
ServerAliveCountMax 30 |
curl
to get the JSON response for the latest releasegrep
to find the line containing file URLcut
and tr
to extract the URLwget
to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
Join the room #freenode_<#channel>:matrix.org
, replacing <#channel>
with the name of the IRC channel. For example, in order to join the #prometheus
IRC channel, join the room #freenode_#prometheus:matrix.org
on matrix.org.
In vector.im, rooms can be joined with the directory symbol on the bottom left.
Create file /etc/systemd/system/docker-compose@.service
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service