This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BACKUP_SCRIPT=${0##*/} | |
DUPLICITY="/usr/bin/duplicity" | |
DATE="/bin/date +%R-%d-%m-%y" | |
BACKUP_COMMAND="$DUPLICITY --exclude=/media/backups --exclude=/home/piotr/.cache --exclude=/home/piotr/.thumbnails --exclude=/home/piotr/.gvfs --exclude=/home/piotr/.xsession-errors --exclude=/home/piotr/.recently-used.xbel --exclude=/home/piotr/.recent-applications.xbel --exclude=/home/piotr/.Private --exclude=/tmp --exclude=/proc --exclude=/sys --exclude=/home/piotr/.local/share/Trash --exclude=/home/piotr/muzzik --exclude=/home/piotr/filmy --exclude=/home/piotr/.beagle --exclude=/home/piotr/.opera --exclude=/home/piotr/.thumbnails --exclude=/home/piotr/.VirtualBox --exclude=/home/piotr/.cache --exclude=/home/piotr/downloads --include=/home/piotr --exclude=** --no-encryption / file:///media/backups --volsize=250 --archive-dir=/home/piotr/.cache/deja-dup" | |
# Sanity checks | |
if test -z "$BASH" ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'Generate tags page' | |
task :tags do | |
puts "Generating tags..." | |
require 'rubygems' | |
require 'jekyll' | |
include Jekyll::Filters | |
options = Jekyll.configuration({}) | |
site = Jekyll::Site.new(options) | |
site.read_posts('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,arrows} | |
\begin{document} | |
\begin{center} | |
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto, | |
state/.style={circle,draw,node distance=3cm}, | |
big state/.style={ellipse,draw,node distance=3cm}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq TeX-auto-save t) | |
(setq TeX-parse-self t) | |
(setq TeX-save-query nil) | |
;(setq TeX-PDF-mode t) | |
(require 'flymake) | |
(defun flymake-get-tex-args (file-name) | |
(list "pdflatex" | |
(list "-file-line-error" "-draftmode" "-interaction=nonstopmode" file-name))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Symbol List</string> | |
<key>scope</key> | |
<string>???</string> | |
<key>settings</key> | |
<dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "iTunes" | |
set mySongs to every track of library playlist 1 whose artist is "Uri Caine Trio" | |
repeat with theTrack in mySongs | |
play theTrack | |
repeat until (player position > ((get duration of the current track) / 2)) or (player position > 240) | |
delay 0.5 | |
end repeat | |
end repeat | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import random | |
class Agent(): | |
def __init__(self, | |
location={'x': 0, 'y': 0}, | |
vision=1, | |
strategy='defect', | |
fitness=0, | |
EndofTheWorld=32): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" Vundles! | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'airblade/vim-gitgutter' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sed '/deb-src/d' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install python-setuptools apache2 mysql-client php5 php5-cli php5-gd php5-mysql memcached php5-curl php5-memcache php5-xcache ppthtml unrtf xlhtml | |
sudo apt-get clean | |
wget https://github.com/s3tools/s3cmd/archive/master.zip # we need newest s3cmd for Frankfurt V4 auth | |
unzip master.zip | |
cd s3cmd | |
sudo python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[ twoside,openright,titlepage,numbers=noenddot, | |
headinclude,%1headlines,% letterpaper a4paper | |
footinclude=true,cleardoublepage=empty,abstractoff, | |
%BCOR=5mm, | |
paper=a4, | |
fontsize=12pt,%11pt,a4paper,% | |
ngerman,american,% | |
]{scrreprt} | |
%******************************************************************** |
OlderNewer