This file contains 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 python3 | |
# ev3dev-stretch | |
# https://github.com/bluez/bluez/blob/5.43/doc/gatt-api.txt | |
# https://developer.gnome.org/gio/2.50/GDBusProxy.html | |
import gi | |
# gi.require_version("GLib", "2.0") | |
# gi.require_version("GObject", "2.0") |
This file contains 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
{ | |
"configurations": [ | |
{ | |
"name": "movehub", | |
"includePath": [ | |
"${workspaceFolder}/lib/cmsis/inc", | |
"${workspaceFolder}/lib/stm32lib/CMSIS/STM32F0xx/Include", | |
"${workspaceFolder}/ports/pybricks/lib/libfixmath/libfixmath", | |
"${workspaceFolder}/ports/pybricks/lib/pbio/include", | |
"${workspaceFolder}/ports/pybricks/lib/pbio/platform/move_hub", |
This file contains 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
# SPDX-License-Identifier: MIT | |
# Copyright (c) 2019 David Lechner <[email protected]> | |
import ffi | |
from uerrno import ENOENT | |
_udev = ffi.open('libudev.so.1') | |
_libc = ffi.open('libc.so.6') | |
_errno = _libc.var("i", "errno") |
This file contains 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
Import-Module posh-git | |
# show the git repo name in magenta (really the parent directory name) | |
$GitPromptSettings.DefaultPromptPrefix.Text = '$(@((git rev-parse --show-toplevel).Split("/"))[-1])' | |
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta | |
# show only the relative directory in the git repo | |
$GitPromptSettings.DefaultPromptPath = '\$(@($pwd.Path.Split("\") | Select-Object -Skip @((git rev-parse --show-toplevel).Split("/")).Length) -join "\")' |
This file contains 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
root = true | |
[*.{cfg,editorconfig,git*,py,rst,sh,md}] | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_size = 4 | |
indent_style = space | |
[*.json] | |
insert_final_newline = false |
This file contains 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
diff --git a/arch/arm/boot/dts/am335x-bonegreen-common.dtsi b/arch/arm/boot/dts/am335x-bonegreen-common.dtsi | |
index 853e6d3a028d..3cbe363d4fbf 100644 | |
--- a/arch/arm/boot/dts/am335x-bonegreen-common.dtsi | |
+++ b/arch/arm/boot/dts/am335x-bonegreen-common.dtsi | |
@@ -21,7 +21,7 @@ | |
pinctrl-names = "default"; | |
pinctrl-0 = <&emmc_pins>; | |
bus-width = <8>; | |
- status = "okay"; | |
+ status = "disabled"; |
This file contains 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
diff --git b/drivers/staging/rtl8188eu/Kconfig a/drivers/staging/rtl8188eu/Kconfig | |
index 94f38793ab47..cb836c59d564 100644 | |
--- b/drivers/staging/rtl8188eu/Kconfig | |
+++ a/drivers/staging/rtl8188eu/Kconfig | |
@@ -1,6 +1,7 @@ | |
config R8188EU | |
tristate "Realtek RTL8188EU Wireless LAN NIC driver" | |
depends on WLAN && USB && CFG80211 | |
+ depends on m | |
select WIRELESS_EXT |
This file contains 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 lua5.3 | |
-- SPDX-License-Identifier: MIT | |
-- Copyright: 2018 David Lechner <[email protected]> | |
-- File: netris-bot.lua | |
-- This is a bot program for controlling netris. It reads button presses on | |
-- LEGO MINDSTORMS EV3 and translates them to messages that netris understands. | |
-- | |
-- Prerequisties: | |
-- # run this on the EV3 |
This file contains 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
[Unit] | |
Description=Console runner for pi user | |
[Service] | |
Type=simple | |
ExecStartPre=+/bin/chown pi /dev/%i | |
ExecStart=/usr/bin/conrun-server | |
ExecStopPost=+/bin/chown root /dev/%i | |
User=pi | |
StandardInput=tty-fail |
This file contains 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 python3 | |
import fcntl | |
import os | |
import gi | |
gi.require_version('GLib', '2.0') | |
from gi.repository import GLib | |
gi.require_version('Grx', '3.0') | |
from gi.repository import Grx |