Skip to content

Instantly share code, notes, and snippets.

@petemoore
petemoore / README.md
Last active February 20, 2024 15:35
rpi3 bare metal interrupt example

This is an example to demonstrate how to have a timer execute in EL1 on a raspberry pi 3 in bare metal assembly.

Created demo to support the user question in https://forums.raspberrypi.com/viewtopic.php?t=365600

Generate kernel with:

$ aarch64-none-elf-as -o rpi3-interrupt-demo.o rpi3-interrupt-demo.s 
$ aarch64-none-elf-ld --no-warn-rwx-segments -N -Ttext=0x0 -o rpi3-interrupt-demo.elf rpi3-interrupt-demo.o
$ aarch64-none-elf-objcopy --set-start=0x0 rpi3-interrupt-demo.elf -O binary rpi3-interrupt-demo.img
@petemoore
petemoore / gist:8684c6e4c651f66dd357a5d9b594f30f
Created June 19, 2018 08:50
Dump register contents, RISC OS
00009208 : E92DFFFF : STMDB R13!,{R0-PC}
0000920C : E3A02010 : MOV R2,#&10
00009210 : E3A03000 : MOV R3,#0
00009214 : E3A01102 : MOV R1,#&80000000
00009218 : E353000A : CMP R3,#&0A
0000921C : 4F000120 : SWIMI OS_WriteI+" "
00009220 : EF000152 : SWI OS_WriteI+"R"
00009224 : 5F000131 : SWIPL OS_WriteI+"1"
00009228 : 42830030 : ADDMI R0,R3,#&30
0000922C : 52830026 : ADDPL R0,R3,#&26
@petemoore
petemoore / main_windows.go
Last active August 8, 2024 15:32
Running process as interactive user from windows service with UAC process elevation
package main
import (
"context"
"errors"
"fmt"
"log"
"os"
"os/exec"
"syscall"
@petemoore
petemoore / supersede-test.txt
Last active August 3, 2017 14:57
supersede test
{
"supersedes": [
"Vtk1r5x7Qwa-9k13XHgB1g",
"T0VW5vqqRbqfTY4ZPFpc5w",
"U8tCfdWvSeGVbbhkY_MQpQ",
"GF3-IhduQC2LrK2Kriv1sQ",
"IHFC9GaaSuKgzeiJWf06qA"
]
}
@petemoore
petemoore / tc.md
Last active July 21, 2017 15:50
Taskcluster clean up

Worker inconsistencies

  • Two mechanisms for create generic worker windows AMIs (OCC and generic-worker scripts)
  • Config differences between worker types (C: drive vs Z: drive etc)
  • Payload differences between workers
  • Payload differences between platforms:
    • Automatically set env vars (e.g. TASKCLUSTER_*)
    • Mounts
    • Caolescing
  • Artifact format
### Keybase proof
I hereby claim:
* I am petemoore on github.
* I am pmoore (https://keybase.io/pmoore) on keybase.
* I have a public key whose fingerprint is 85EE 8DBD AFB5 CBAD 273A 3351 8295 FE77 B475 FEBC
To claim this, I am signing this object:
:: Taskcluster friendly wrapper for performing fx desktop builds via mozharness.
:: Inputs, with defaults
::if not defined MOZHARNESS_SCRIPT set MOZHARNESS_SCRIPT=mozharness\scripts\fx_desktop_build.py
::if not defined MOZHARNESS_CONFIG set MOZHARNESS_CONFIG=builds\releng_base_windows_64_builds.py
if not defined TOOLTOOL_CACHE set TOOLTOOL_CACHE=%SystemDrive%\home\worker\tooltool-cache
if not defined NEED_XVFB set NEED_XVFB=false
@petemoore
petemoore / test.go
Last active December 20, 2017 16:42
package main
import (
"encoding/json"
"log"
"os"
"time"
tcclient "github.com/taskcluster/taskcluster-client-go"
"github.com/taskcluster/taskcluster-client-go/secrets"
@petemoore
petemoore / login_v3.md
Last active February 3, 2016 10:39 — forked from djmitche/login_v3.md

Login v3

Goals

  • Users should be able to login easily to the tools site to carry out day-to-day tasks.
  • Users should be able to create and manage limited-access permanent credentials for use in their own automation
  • Permanent credentials tied to users should be disabled when those users lose the relevant permissions
  • All services have a consistent, reliable way to log who or what is making a particular request.