For more info see http://code.google.com/p/easycap-somagic-linux/wiki/GettingStarted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lua | |
--[[ | |
dsl-print [some.dsl] | |
Example of a lua DSL language, that can use function call or assignment to define | |
keys, and uses call sequence to implicitly define nesting. | |
]] | |
function dsl(code, file) | |
local loaded, estr = loadstring(code, file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$autogroups = Hash.new { |h,k| h[k] = [] } | |
Dir.glob('/proc/*').each do |e| | |
pid = File.basename(e).to_i | |
next if pid == 0 | |
begin | |
cmdline = File.read(e + '/cmdline').split("\0").join(" ") | |
next if cmdline.empty? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# TODO | |
# - check free disk | |
# - check return values for every command | |
V=/data/void | |
DNS=8.8.8.8 | |
URL=http://xbps.nopcode.org/rootfs/ | |
ROOTFS=void-raspberrypi-rootfs-20130811.tar.xz |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.nojack; | |
import android.app.Activity; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothGatt; | |
import android.bluetooth.BluetoothGattCallback; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattDescriptor; | |
import android.bluetooth.BluetoothGattService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile" | |
gem 'jwt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Container console commands (Windows: PowerShell) | |
# docker build --no-cache -t php:7.1 | |
# docker run --name test-php -v "${PWD}:/var/www:rw" -p "9001:9000" -d php:7.1 | |
# docker exec -ti php:7.1 /bin/sh | |
# docker rm test-php --force | |
# docker rmi php:7.1 | |
FROM alpine | |
RUN \ | |
addgroup -g 82 -S www-data && adduser -u 82 -D -S -G www-data www-data && \ |
- "Introduction to Bluetooth Low Energy" by Adafruit.
Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!
Four things needed overall:
- you need WSL2, not WSL1
- you need node, of course, and that part isn't so bad
- you need to
apt install
several dependencies - you need an X Server so it can display the electron GUI over in Windows-land
Setup instructions, in order:
OlderNewer