Skip to content

Instantly share code, notes, and snippets.

View mrtazz's full-sized avatar
👨‍🔧
computer plumbing

Daniel Schauenberg mrtazz

👨‍🔧
computer plumbing
View GitHub Profile

P2P Networks

Overview of P2P lecture Summer 2010 University of Freiburg

Napster

  • Star topology
  • Query via server
  • Download directly from Peer

Gnutella

  • Neighbourhood lists
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf *.pdf
#!/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"
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,
# 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
#
# adds 'brew refresh' as an external command, which essentially does
# 'brew update' followed by 'brew outdated'
#
require 'update'
def outdated
outdated_brews.each do |keg, name, version|
if $stdout.tty? and not ARGV.flag? '--quiet'
versions = keg.cd{ Dir['*'] }.join(', ')
# treat as binary to prevent newline fixes, showing in diffs and include in merges
# caveat: still shown as conflict in merges, although it won't have changed
*.pbxproj -crlf -diff -merge
# latex logic symbols imported from snipt.net
Allquantor = \forall
Existencequantor = \exists
OR = \vee
AND = \wedge
NOT = \neg
Implies = \Rightarrow
#!/bin/bash
#
# shell script to invoke gvim with working directory as default
# created for easier use of gvim in a mingw32 environment such as
# the git bash
#
if [ $# == 0 ]
then
C:\\Programme\\Vim\\vim72\\gvim.exe . &