View app.log
[2016-11-15 15:56:06,711][ERROR][werkzeug][_log] - Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 184, in execute
write(data)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 152, in write
self.send_header(key, value)
File "/usr/lib/python2.7/BaseHTTPServer.py", line 401, in send_header
self.wfile.write("%s: %s\r\n" % (keyword, value))
View atom_packages.txt
atom-fuzzy-grep@0.14.0
atom-miku@2.2.5
color-picker@2.2.2
color-tabs@0.1.8
dash@1.6.2
editorconfig@1.4.1
emmet@2.4.3
file-icons@1.7.18
git-blame@0.4.11
highlight-selected@0.11.2
View morning_weather.py
import xml.etree.ElementTree as ET
import StringIO
from najdisi_sms import SMSSender
import requests
sms = SMSSender('brodul', 'nom')
file_obj = StringIO.StringIO(
requests.get((
View configuration.nix
# Edit this configuration file to define what should be installed on
# the system. Help is available in the configuration.nix(5) man page
# or the NixOS manual available on virtual console 8 (Alt+F8).
{ config, pkgs, ... }:
{
#
View Makefile
TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error
PAN = pandoc --listings -o
BIB = bibtex
TEXS := $(patsubst %.md,%.md.tex,$(wildcard *.md))
.PHONY: all view clean
all: clean diploma.pdf
View config.nix
{
packageOverrides = pkgs: rec {
atom =
with pkgs;
let
atomEnv = buildEnv {
name = "env-atom";
paths = [
View borg_server1.sh
#!/bin/bash
# this is runned as backup_user
# the user is in the backup group
# Add key
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi
View hubot.sh
#!/bin/sh
set -e
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
# how to parse an ini file in bash :D
python3 - <<END
import configparser
View pushup.sh
###
# 100 pushup challange shell script
#
# Dependencies:
# - alsa
# - alsa-tools
# - espeak
#
###
View wallpaper_script.py
from urllib import urlretrieve
import collections
import hashlib
import json
import os
import pickle
import urllib2
url = "http://www.reddit.com/r/wallpapers/.json?limit=100"
url_cache = '/home/brodul/.wallpaper_cache'