Skip to content

Instantly share code, notes, and snippets.

@pixelistik
pixelistik / main.yml
Last active November 11, 2015 22:26
Example for Ansible vars from ejson file
---
hosts: local
gather_facts: no
user: pi
tasks:
- name: locally decrypt vars
local_action: command ejson decrypt -o vars.json vars.ejson
- include_vars: vars.json
@pixelistik
pixelistik / nice-unicode-chars.txt
Last active December 3, 2019 12:20
Nice unicode chars
✖ ✗ ✘
„“
»«
«»
‚‘
›‹
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
/*
DMX_Master.ino - Example code for using the Conceptinetics DMX library
Copyright (c) 2013 W.A. van der Meeren <danny@illogic.nl>. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
/**
* Find out if any audio is playing on a Line level cable
*
* A very simple way to find out if any audio is currently
* playing, by reading the voltage from the cable. Line level
* audio signals are much lower than 5V, so turn up the volume.
*
* Connect Ground and 1 Stero channel to the Arduino's GND and A0 pins.
*/
@pixelistik
pixelistik / keybase.md
Created May 27, 2015 22:30
Keybase.io verification

Keybase proof

I hereby claim:

  • I am pixelistik on github.
  • I am pixelistik (https://keybase.io/pixelistik) on keybase.
  • I have a public key whose fingerprint is 376F F8D0 C5BB 0C96 4B02 CA00 3904 D8A8 F8F0 0721

To claim this, I am signing this object:

@pixelistik
pixelistik / Vagrantfile
Created March 11, 2015 22:42
Vagrant with self-provisioning Ansible playbook
Vagrant.configure(2) do |config|
config.vm.box = "trusty64"
config.vm.network "forwarded_port", guest: 8080, host: 9090
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
$script = <<SCRIPT
@pixelistik
pixelistik / Dockerfile
Last active August 29, 2015 14:09
Docker on a Raspberry Pi
# Base on ARM image
FROM sdhibit/rpi-arch
# Install required packages
RUN pacman -Sy && pacman --noconfirm -S nodejs git
# Get app code
RUN git clone https://github.com/pixelistik/estimation-poker.git
WORKDIR estimation-poker
# Install dependencies
RUN npm install
# Define default command to run
@pixelistik
pixelistik / release.sh
Last active August 29, 2015 14:06
Release versioning with git tag
# Go to master
git checkout master
# Merge the new stuff
git merge develop
# This is our release, so tag it
git tag "$VERSION" -a -m "Release $VERSION"
# Make the updated master branch public, including the fresh tag
git push --tags origin master
# Now go back to dev
git checkout dev
@pixelistik
pixelistik / owncloud
Created May 10, 2013 22:31
Working nginx configuration for OwnCloud on Raspbian. Put in `/etc/nginx/sites-available` You absolutely want to install the `php-apc` package in order to get a reasonable speed.
server {
listen 80;
server_name cloud.someserver.de;
rewrite ^ https://$server_name$request_uri? permanent; # enforce https
}
server {
listen 443 ssl;
server_name cloud.someserver.de;