Skip to content

Instantly share code, notes, and snippets.

View patchedsoul's full-sized avatar

patchedsoul

  • planet earth
View GitHub Profile
Starting point is last version of Crankshaft (NG Alpha-5 2019-06-08).
1. Activate DEV mode in Crankshaft. See this guide: https://github.com/opencardev/crankshaft/wiki/Dev-Mode-and-Debug-Mode
2. Attach Ethernet cable to Raspberry/Crankshaft, boot, find out IP and login through SSH (user: pi; pwd: raspberry).
3. Install some packages:
$ sudo apt-get update
$ sudo apt-get install -y libboost-all-dev libusb-1.0.0-dev libssl-dev cmake libprotobuf-dev protobuf-c-compiler protobuf-compiler
$ sudo apt-get install -y libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediawidgets5 qtmultimedia5-dev libqt5bluetooth5 libqt5bluetooth5-bin qtconnectivity5-dev pulseaudio librtaudio-dev librtaudio5a
@patchedsoul
patchedsoul / goes16-rtlsdr.md
Created July 30, 2019 11:19 — forked from lxe/goes16-rtlsdr.md
Receive GOES-16 and GOES-17 Images with a Raspberry Pi and RTL-SDR dongle
import cv2
from time import sleep, time
import sys
import curses
from curses import wrapper
x = 160
sx = 4
@patchedsoul
patchedsoul / route53.py
Created September 20, 2018 21:39 — forked from rmarchei/route53.py
route53 hook for dehydrated - python2 / python3 + boto2 version. Tested on Ubuntu 16.04
#!/usr/bin/env python
# How to use:
#
# Ubuntu 16.04: apt install -y python-boto OR apt install -y python3-boto
#
# Specify the default profile on aws/boto profile files or use the optional AWS_PROFILE env var:
# AWS_PROFILE=example ./dehydrated -c -d example.com -t dns-01 -k /etc/dehydrated/hooks/route53.py
#
# Manually specify hosted zone:
@patchedsoul
patchedsoul / 0migrator.md
Created June 27, 2018 12:12 — forked from OttoWinter/0migrator.md
Lovelace Migration Script

Home Assistant Lovelace Migrator

Do you want to try out this experimental (!) new lovelace UI stuff in Home Assistant but don't want to migrate your entire configuration? This script is here to help! It reads in your Home Assistant configuration (specifically the group: section) and creates a matching ui-lovelace.yaml file in your Home Assistant configuration folder (of course backing up any previous file at that path).

To use this script, you first need to have python and home assistant installed where you plan to run this script. Do so using virtual environments and the pip3 install -U homeassistant command. Then copy below file to lovelace_migrate.py (any location should work) and run:

python3 lovelace_migrate.py -c <PATH_TO_HASS_CONFIG_DIR>
@patchedsoul
patchedsoul / docker-compose.yml
Created March 28, 2018 00:32 — forked from plajjan/docker-compose.yml
NIPAP docker compose
nipap-db:
image: nipap/postgres-ip4r
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- PGDATA=/var/lib/postgres/data/pgdata
- POSTGRES_USER=nipap
- POSTGRES_PASSWORD=S3cretDBPas5
- POSTGRES_DB=nipap
@patchedsoul
patchedsoul / README.md
Created March 25, 2018 00:29 — forked from genomics-geek/README.md
Setup ReactJS, Redux, Webpack with React Hot Reloading on an existing Django Project

Setting up ReactJS/Redux using Webpack for an existing Django project

This guide will help set up your django project to use ReactJS

1. Install Python dependencies

Add pip requirements to our django project:

  • django-webpack-loader==0.4.1 ( Connects Django project with Webpack)
@patchedsoul
patchedsoul / skulpt-reveal.html
Created March 23, 2018 11:59 — forked from aladagemre/skulpt-reveal.html
Skulpt embedded in reveal.js: place Python interpreter in your reveal.js slides!
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - The HTML Presentation Framework</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
@patchedsoul
patchedsoul / simpleskulpt.html
Created March 23, 2018 11:54 — forked from bnmnetp/simpleskulpt.html
Here is about the simplest example I can think of that gets you a working skulpt environment. This little sample shows regular python as well as importing a module.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt.min.js" type="text/javascript"></script>
<script src="http://www.skulpt.org/static/skulpt-stdlib.js" type="text/javascript"></script>
</head>
<body>
@patchedsoul
patchedsoul / themeforest-contract.md
Created March 20, 2018 08:38 — forked from primozcigler/themeforest-contract.md
Modified version of @malarkey's Killing Contract for use for the ThemeForest cooperation (more dev to dev team than dev to client).

Contract for developing a Drupal theme for selling on the ThemeForest

Between us: [ProteusNet d.o.o., Rudarska cesta 11, 8281 Senovo, Slovenia, EU] and you: [partner]

Summary:

We’ll always do our best to fulfil the scope of this cooperation, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

So in short;