Overview of P2P lecture Summer 2010 University of Freiburg
- Star topology
- Query via server
- Download directly from Peer
- Neighbourhood lists
# figure out name of USB device | |
diskutil list | |
# unmount partitions but keep device proper | |
diskutil unmountDisk /dev/USBSTICK | |
# write image to USB device | |
dd if=8.1-RELEASE-amd64-memstick.img of=/dev/USBSTICK bs=10240 conv=sync |
Starting CouchDB... | |
Eshell V5.7.5 (abort with ^G) | |
1> Apache CouchDB 1.0.0 (LogLevel=info) is starting. | |
1> [error] [<0.91.0>] {error_report,<0.35.0>, | |
{<0.91.0>,crash_report, | |
[[{initial_call,{couch_auth_cache,init,['Argument__1']}}, | |
{pid,<0.91.0>}, | |
{registered_name,[]}, | |
{error_info, | |
{exit, |
#!/bin/sh | |
# wrapper to use vimdiff with git | |
# diff is called by git with 7 parameters: | |
# path old-file old-hex old-mode new-file new-hex new-mode | |
mvimdiff "$2" "$5" |
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf *.pdf |
#!/usr/local/bin/zsh | |
# variables | |
gitcmd="/usr/local/bin/git" | |
REPOS="/home/redmine/repos/" | |
repos=(`ls -1 ${REPOS}`) | |
for r in ${repos[@]} | |
do | |
cd ${REPOS}${r} && $gitcmd fetch |
#!/bin/sh | |
# | |
# shell script to dump a database from PostgreSQL and | |
# store it in git | |
# | |
AUTHOR="User <user@host>" | |
GITCMD="/usr/local/bin/git" | |
DUMPCMD="/usr/local/bin/pg_dump" | |
BACKUP_REPO="/path/to/repo" |
def tsplit(string, delimiters): | |
"""Behaves str.split but supports multiple delimiters.""" | |
delimiters = tuple(delimiters) | |
stack = [""] # stack to return | |
for i in xrange(len(string)): | |
if string[i] in delimiters: | |
stack.append("") | |
else: |
{{party}} gets bad results in election. | |
{{leader}}, leader of {{party}}, steps down. | |
{{party}} elects {{new_leader}} as new leader. | |
{{new_leader}} promises that he will reinvent the party and earns back | |
the trust of the voters. | |
{{coalition_partner}} hopes they succeed fast with their endeavor. | |
{{member_of_opposition}} is sure that this will never work and that {{party}} | |
has chosen the wrong direction. | |
Nothing changes. |
0020 SPACE | |
0021 ! EXCLAMATION MARK | |
0022 " QUOTATION MARK | |
0023 # NUMBER SIGN | |
0024 $ DOLLAR SIGN | |
0025 % PERCENT SIGN | |
0026 & AMPERSAND | |
0027 ' APOSTROPHE | |
0028 ( LEFT PARENTHESIS | |
0029 ) RIGHT PARENTHESIS |