Skip to content

Instantly share code, notes, and snippets.

View multivac61's full-sized avatar
🎯
Focusing

multivac61 multivac61

🎯
Focusing
View GitHub Profile
from bs4 import BeautifulSoup
from requests_html import HTMLSession
import re
url = ''
assert 'https://www.ruv.is/utvarp/spila' in url
with HTMLSession() as s:
resp = s.get(url).html
resp.render() # Run JavaScript code on webpage
var noble = require('noble');
var net = require('net');
var PORT = 33333;
// var HOST = '127.0.0.1';
var HOST = '10.8.11.108';
var dgram = require('dgram');
var wave_service_uuid = '289b473c4d1e11e7b114b2f933d5fe66';
// Enable the spidev interface
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun7i-a20";
fragment@0 {
target-path = "/aliases";
__overlay__ {
@multivac61
multivac61 / build_log_after_loopXpY_restart.log
Last active October 12, 2016 12:04
logs from Armbian build (NanoPi NEO Xenial x64)
This file has been truncated, but you can view the full file.
[ o.k. ] This script will try to update
From https://github.com/igorpecovnik/lib
f9662cb..12e3838 master -> origin/master
Updating f9662cb..12e3838
Fast-forward
config/kernel/linux-cubox-next.config | 6 +-
config/kernel/linux-odroidxu4-default.config | 9 +-
config/kernel/linux-odroidxu4-next.config | 186 ++++++++++++++++-----
configuration.sh | 11 ++
debootstrap-ng.sh | 31 ++--
[ 840.490068] INFO: task kworker/u:0:5 blocked for more than 120 seconds.
[ 840.497420] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 840.506139] kworker/u:0 D c068fdc4 0 5 2 0x00000000
[ 840.506189] [<c068fdc4>] (__schedule+0x574/0x7fc) from [<c06900dc>] (schedule+0x90/0x94)
[ 840.506212] [<c06900dc>] (schedule+0x90/0x94) from [<c068e01c>] (schedule_timeout+0x2c/0x2bc)
[ 840.506235] [<c068e01c>] (schedule_timeout+0x2c/0x2bc) from [<c068f5b8>] (wait_for_common+0x120/0x168)
[ 840.506258] [<c068f5b8>] (wait_for_common+0x120/0x168) from [<c068f620>] (wait_for_completion+0x20/0x24)
[ 840.506284] [<c068f620>] (wait_for_completion+0x20/0x24) from [<c045df80>] (sunxi_spi_work+0x748/0x888)
[ 840.506312] [<c045df80>] (sunxi_spi_work+0x748/0x888) from [<c0044508>] (process_one_work+0x248/0x404)
[ 840.506336] [<c0044508>] (process_one_work+0x248/0x404) from [<c0045940>] (worker_thread+0x1b4/0x2d0)
sudo dd if= of=/dev/sdx bs=64M status=progress
// http://stackoverflow.com/questions/38515708
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char argv[]){
char *filename = "test.db";
int my_int = 42;
// First we open file and write to it
// A code snippet to show how one way to
// seperate incoming MIDI CC signals and the
// server side.
(
MIDIIn.connectAll;
a = Bus.control(s);
MIDIdef.cc(\cc_test, { |src, chan, num, value|
[src, chan, num, value, src.linexp(0, 127, 10, 10000)].postln;
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y mendeleydesktop htop
# Install f.lux
# Install dependencies
sudo apt-get install -y git python-appindicator python-xdg python-pexpect python-gconf python-gtk2 python-glade2 libxxf86vm1 -y
# Download and install xflux-gui
cd /tmp
git clone "https://github.com/xflux-gui/xflux-gui.git"
# Supercollider and jack2 install script
# made for Raspberry Pi 3
# run script as root?
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get update && apt-get upgrade