View films.py
# -*- coding: utf-8 -*-
# import list from https://yourfilms.org/
import csv
import sys
with open('yourfilms-history.csv') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
for row in spamreader:
line = "*" + " " + row[0]
View pwsafe-to-1password.awk
#!/usr/local/bin/awk
# pwsafe format:
# uuid group name login passwd notes
#
# 1password format:
# https://support.1password.com/create-csv-files/
#
# How-to use:
# pwsafe --exportdb > pwsafe.csv
View model-testing.py
#!/usr/bin/python [127/1803]
# https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainState
# https://libvirt.org/docs/libvirt-appdev-guide-python/en-US/html/
# https://wiki.libvirt.org/page/VM_lifecycle
# How-to:
# - install required RPM packages
# - create XML config and instance disk:
# https://libvirt.org/formatdomain.html
View .travis.yml
language: python
python:
- 2.7
before_install:
- sudo apt-get update
install:
- sudo add-apt-repository -y ppa:chris-lea/node.js
- sudo apt-get -y update
View Gemfile
source 'https://rubygems.org'
gem 'gmail-britta', '~>0.1.6'
View tla.md

Using TLA Plus on Ubuntu

Console

  • apt-get install -y java-common texlive-latex-base
  • Download TLA Tools (tla.zip) from https://github.com/tlaplus/tlaplus/releases
  • Unpack archive and add directory with content to a variable export CLASSPATH /home/sergeyb/Downloads/
$ java tlc2.TLC
$ java tla2sany.SANY
View Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
View fragroute.md
$ apt-get install -y libpcap-dev libdumbnet-dev libevent1-dev
$ ln -s /usr/include/dumbnet.h /usr/include/dnet.h
$ ./configure --prefix=/usr
$ make