Skip to content

Instantly share code, notes, and snippets.

View brodul's full-sized avatar

Andraz Brodnik brodul

View GitHub Profile
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
# 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, ... }:
{
#
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((
@brodul
brodul / app.log
Created November 15, 2016 16:01
Flask dev server 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))
---
- hosts: rpi
vars:
build_dir: /home/pi/info-beamer-build
tasks:
- name: install build tools
apt:
name:
- git
update_cache: yes
{
allowUnfree = true;
allowBroken = true;
planetary_annihilation = {
url = "file:///home/brodul/Downloads/PA_Linux_78071.tar.bz2";
sha256 = "980a8e4d43dfe7d238b980ccd5e0fda091f752e930d7676154bd5d5c8d0c2047";
};
npm WARN deprecated [email protected]: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects!
Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects.
Currently there's no migration path but we hope you'll help us figure out one.
@brodul
brodul / shell.nix
Created September 5, 2017 13:52
shell.nix
let
pkgs = import <nixpkgs> {};
buildDeps = with pkgs; [stdenv buildGoPackage fetchgit fetchhg fetchbzr fetchsvn];
goFish = import ./default.nix;
in pkgs.stdenv.mkDerivation {
name = "go-fish-nix-shell";
buildInputs = [ (goFish {inherit buildDeps; }) ];
}
[nix-shell:~]$ nix-env -q --attr-path \* | head
64 atftp-0.7.1
97 atom-1.16.0
54 audacity-2.1.2
31 awscli-1.11.75
72 bazel-20150326.981b7bc1
85 beep-1.3
73 bind-9.10.4-P5