Skip to content

Instantly share code, notes, and snippets.

@sirwolfgang
sirwolfgang / Radxa Cubie A7A Hardware Control Scripts.md
Last active January 1, 2026 03:07
Radxa Cubie A7A hardware control scripts and systemd services (fan control, CPU LED, power button)

Radxa Cubie A7A Hardware Control Scripts

Scripts and systemd services for fan control, CPU activity LED, and power button handling on the Radxa Cubie A7A.

Fan Control

Temperature-based fan speed control monitoring CPU, GPU, NPU, and DDR thermal zones.

  1. Copy files to the system:
{
"method": "POST",
"url": "https://auth.quiltt.io/v1/session",
"httpVersion": "HTTP/1.1",
"headers": [
{ "name": "Accept", "value": "application/json" },
{ "name": "Content-Type", "value": "application/json" }
],
"postData": {
"mimeType": "application/json",
@sirwolfgang
sirwolfgang / bash.sh
Last active January 25, 2019 00:30
Git OSX
curl https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore > ~/.gitignore
git config --global core.excludesfile ~/.gitignore
@sirwolfgang
sirwolfgang / snippets.sql
Created January 31, 2018 18:18
Postgres
SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE datname = current_database()
AND pid <> pg_backend_pid();
# frozen_string_literal: true
# @see https://gist.github.com/ryanlecompte/1283413
module BeforeSingletonAction
extend ActiveSupport::Concern
class_methods do
def singleton_method_added(method_name)
return if before_singleton_actions.include?(method_name) || before_singleton_action_methods.include?(method_name)
git config --global user.name "Zane Wolfgang Pickett"
git config --global user.email "sirwolfgang@users.noreply.github.com"
git config --global color.ui true
git config --global core.editor nano
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
git config --global core.autocrlf input
RSpec.configure do |config|
# Add VCR to all tests
config.around(:each) do |example|
options = example.metadata[:vcr] || {}
if options[:record] == :skip
VCR.turned_off(&example)
else
name = example
.metadata[:full_description]
@sirwolfgang
sirwolfgang / Gemfile
Last active August 29, 2015 14:23
Rails Default Gems
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'puma'
# databases
gem 'pg'
# javascript Backend
gem 'jbuilder'
@sirwolfgang
sirwolfgang / Gemfile
Last active August 29, 2015 14:23
API with Rails
gem 'jbuilder'
gem 'rack-cors'
@sirwolfgang
sirwolfgang / private.xml
Created February 26, 2015 16:22
Karabiner OSX
<?xml version="1.0"?>
<root>
<windownamedef>
<name>CODIO_IDE</name>
<regex>Codio IDE</regex>
</windownamedef>
<item>
<name>Command_L to Control_L</name>