View config.nix
{
allowUnfree = true;
allowBroken = true;
planetary_annihilation = {
url = "file:///home/brodul/Downloads/PA_Linux_78071.tar.bz2";
sha256 = "980a8e4d43dfe7d238b980ccd5e0fda091f752e930d7676154bd5d5c8d0c2047";
};
View install.yml
---
- hosts: rpi
vars:
build_dir: /home/pi/info-beamer-build
tasks:
- name: install build tools
apt:
name:
- git
update_cache: yes
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