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
#define RELAY_PIN (8) | |
void setup() { | |
// put your setup code here, to run once: | |
SERIAL_PORT_USBVIRTUAL.begin(115200); // open serial connection via USB-Serial | |
pinMode(RELAY_PIN, OUTPUT); | |
pinMode(LED_BUILTIN, OUTPUT); | |
} |
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 -x '*.o' -urw linux-4.14.53/arch/mips/generic/kexec.c linux-mine/arch/mips/generic/kexec.c | |
--- linux-4.14.53/arch/mips/generic/kexec.c 2018-07-03 09:25:05.000000000 +0000 | |
+++ linux-mine/arch/mips/generic/kexec.c 2018-07-23 22:09:23.337067165 +0000 | |
@@ -25,8 +25,12 @@ | |
if (copy_from_user(&fdt, image->segment[i].buf, sizeof(fdt))) | |
continue; | |
- if (fdt_check_header(&fdt)) | |
+ if (fdt_check_header(&fdt)) { | |
+ pr_info("seg %d has no fdt header\n", i); |
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
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "arcan"; | |
version="1"; | |
src = ./.; | |
nativeBuildInputs = with pkgs; [ | |
cmake git | |
] ; | |
CMAKE_CXX_FLAGS = "-msse4.1"; | |
DRM_INCLUDE_DIR = "${pkgs.libdrm.dev}/include/libdrm"; |
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
{config, pkgs, lib, ...}: | |
let | |
maintboot = pkgs.python3Packages.buildPythonPackage rec { | |
pname = "maintboot"; | |
version = "1"; | |
src = pkgs.fetchFromGitHub { | |
owner = "g2p"; | |
repo = "maintboot"; | |
rev = "1c5ab872bae2b69a06252ca2e7ecdba4d4ad8e57"; | |
sha256 = "0n8sy6ksqb5s1n5qqshb6pz1d86gjshwb30mr1nil0hfln5gi4g2"; |
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 nix-shell | |
#! nix-shell -i python -p python3 | |
prefs = """ | |
pref("toolkit.policies.perUserDir", true); | |
pref("ui.key.accelKey", 18);\n', # use Alt instead of Ctrl | |
""" | |
policies = { | |
"policies": { |
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
{ config, pkgs, ... }: | |
let projectroot = "/home/git/"; # where are the repos on the disk? | |
subdir = "private-git"; # url path prefix | |
staticFilesPath = "cgit-static"; # url path to cgit's static assets | |
# /home/git/published-by-cgit contains the list of projects | |
# that cgit will show | |
cgitrc = pkgs.writeText "cgitrc" | |
'' | |
# default paths to static assets | |
css=/${staticFilesPath}/cgit.css |
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
{ pkgs }: | |
let env = builtins.getEnv "TELENT_NIXPKGS"; | |
telentNixpkgsSrc = | |
if env != "" | |
then | |
(builtins.trace "TELENT_NIXPKGS is set, build is impure" env) | |
else | |
fetchTarball { name = "telent-nixpkgs"; url="https://verisons.telent.net/private-git/telent-nixpkgs.git/snapshot/telent-nixpkgs-master.tar.gz"; }; | |
in { | |
isNormalUser = true; |
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
#include <Adafruit_NeoPixel.h> | |
#include <math.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 2 | |
#define STRIP_LENGTH 150 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(STRIP_LENGTH, PIN, NEO_GRB + NEO_KHZ800); |
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
#include <Adafruit_NeoPixel.h> | |
#include <math.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include "wifi-config.h" |
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
""" | |
My first application | |
""" | |
import toga | |
from toga.style import Pack | |
from toga.style.pack import COLUMN, ROW | |
from rubicon.java import JavaClass | |