Skip to content

Instantly share code, notes, and snippets.

View brodul's full-sized avatar

Andraz Brodnik brodul

View GitHub Profile
#!/usr/bin/env bash
build ()
{
echo "in build"
frontend ()
{
echo "in frontend"
echo "$@"
}
import os
import serial
commands = {
'ON_C': b'0',
'DOWN_VOLUME_C': b'1',
'UP_VOLUME_C': b'2',
'MUTE_C': b'3',
'DVD_C': b'4',

Hi hackers,

on the hackaton I and you will be working on the futr app.

https://github.com/brodul/futr

http://futr.herokuapp.com/

YOu will be able to intantly work on it. Its deployed on heroku an the app is preaty messy. But to have a deliverable at the end of the day we will do the following.

[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
@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; }) ];
}
npm WARN deprecated bower@1.8.0: ..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.
{
allowUnfree = true;
allowBroken = true;
planetary_annihilation = {
url = "file:///home/brodul/Downloads/PA_Linux_78071.tar.bz2";
sha256 = "980a8e4d43dfe7d238b980ccd5e0fda091f752e930d7676154bd5d5c8d0c2047";
};
---
- hosts: rpi
vars:
build_dir: /home/pi/info-beamer-build
tasks:
- name: install build tools
apt:
name:
- git
update_cache: yes
@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))
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