Skip to content

Instantly share code, notes, and snippets.

@simplymathematics
simplymathematics / file0.txt
Created February 18, 2017 02:56 — forked from acro5piano/file0.txt
ASUS Chromebook C300MAに、Croutonを使わずにArch Linuxをインストール ref: http://qiita.com/acro5piano/items/af672c9a445b5a23e0f8
cd
rm -f flash_chromebook_rom.sh
curl -O https://johnlewis.ie/flash_chromebook_rom.sh
sudo -E bash flash_chromebook_rom.sh

From develop branch of lime-sdk:

sudo apt install gawk subversion
git clone https://github.com/libremesh/lime-sdk  
cd lime-sdk  
./cooker -d <target>  
./cooker -f   
./cooker -b <target>  
./cooker -c <target> --flavor=<flavor>  
dd if=/path/to/img of=/dev/sdX status=progress
@simplymathematics
simplymathematics / lime-map-ext.md
Last active October 6, 2018 09:05
Libremap Extension

Apache

sudo apt-get install apache2
systemctl start apache2
systemctl start apache2

CouchDB

echo "deb https://apache.bintray.com/couchdb-deb xenial main" \ | sudo tee -a /etc/apt/sources.list
I use [Plex](plex.tv) to manage and stream all of the movies, tv shows, and music I consume. Many people use Netflix, but I have 12 TB of files that are **definitely not pirated**. Since I have such a massive amount of data, it is hard to find something new to watch.
Plex recently introduced a recommendation engine. I imagine it works by looking at the SQL database it uses to store the data. Since the software auto-magically collects metadata from IMBD/TVDB/MusicBrainz and does sophisticated file analysis (detects bitrate, for example), it already has a ton of information about the kinds of show each user likes to watch. I know about their architecture because their source code is [here](https://github.com/plexinc), which itself is a fork of a firmware hack from the original Xbox.
The likely use a bayesian classifier as it that model works well with the data model they use. Other possibilities include nearest neighbor classifiers that use a variety of genre/director/plot tags, random forest classifiers,
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re, sys, json
default_stream = \
"""
"header": "Hello!"
"somearray": ["apple", "banana", "citrus", "dog"]
"footer": "That's it!"
import mysql.connector as mc
import pandas as pd
import unittest
from sklearn import datasets as ds
'''
* Objective
The Iris class below manages a database version of the Iris dataset available in the sklearn package.
Build out the Iris class to be able to make it intelligent enough to handle
sudo systemctl stop process-stream
sudo modprobe bcm2835-v4l2
sudo apt-get install vlc
cvlc v4l2:///dev/video0 --v4l2-width 1920 --v4l2-height 1080 --v4l2-chroma h26│···
4 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:12345}'
# assume ubuntu server
# Install Guest Additons
https://linuxize.com/post/how-to-install-virtualbox-guest-additions-in-ubuntu/
???? sudo adduser $USER vboxsf
sudo apt-get install git curl
sudo apt-get update
bash -c "$(curl -fsSL https://get.dockstarter.com)"
cd ~
@simplymathematics
simplymathematics / measure2.sh
Created March 7, 2019 22:41
Internet Tracking/Debugging in Bash
#!/bin/sh
# Copy the contents of this file to the clipboard, then get a terminal open on your device and enter:
# $ cat > n.sh
# [Ctrl+V] or Right Click, Paste. Then [Ctrl+D].
# forked from: https://gist.github.com/dagelf/ab2bad26ce96fa8d79b0834cd8cab549
# original by: https://gist.github.com/radu-gheorghe/4087711
SLP=1 # display / sleep interval
DEVICE=$1
IS_GOOD=0
@simplymathematics
simplymathematics / btc.Rmd
Created April 3, 2019 20:00
BTC forecasting models R
---
title: "R Notebook"
output: html_notebook
---
```{r}
library(forecast)
library(curl)
library(rjson)