- 1300 UTC, 10th August 2017
- #fedora-classroom on Freenode
- Pre-requisites: A linux system with any terminal emulator that runs bash
- run
sudo mandb
Introduction to the shell
# Replace FILENAMES with the names of the files that include the packages | |
sudo dnf install $(grep -h "usepackage" FILENAMES | sed "s|\\\usepackage.*{|tex(|" | sed "s|}$|\.sty)|" | tr '\n' ' ') --setopt=strict=0 |
# Delete timewarrior entries that are less than a minute long. | |
# Beware - in this version, grep doesn't check the duration field here, so if you have a task that starts at 0:00, that'll be delete too! | |
for i in $(timew summary :ids | grep '0:00:..' | awk '{print $1}' | tr '\n' ' '); do timew delete $i; donefor i in $(timew summary :ids | grep 0:00:00 | awk '{print $1}' | tr '\n' ' '); do timew delete $i; done | |
# This one extracts the id and duration fields and then does the bit, so it's safer, but it's more complex. | |
# The last grep decides what must be deleted, so one can change the regex there as one wishes. | |
for entry in $(timew summary :ids | grep -o '@.*' | sed -E 's/(^@[[:digit:]]+)([[:alpha:]|[:punct:]|[:space:]]+)/\1 /' | sed -E 's/[[:space:]]{2,}/ /' | cut -d ' ' -f 1,4 | grep -E '[[:digit:]]{0,2}:0[01]:..' | cut -d ' ' -f 1 | tr '\n' ' '); do timew delete $entry; done |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
sudo yum -y install python-virtualenv | |
virtualenv my-venv | |
source my-venv/bin/activate | |
git clone url-for-bloom | |
cd bloom | |
python setup.py develop | |
./bin/bloom-generate |
./catkin/bin/catkin_topological_order --only-names | sort #alphabetical order | |
%s/\(.*\)/\1:\r fedora:\r [ros-groovy-\1]\r/ #vim command to complete yaml file |