Skip to content

Instantly share code, notes, and snippets.

View SjB's full-sized avatar

Steve Beaulac SjB

  • London Ontario Canada
View GitHub Profile
@SjB
SjB / i2s2.patch
Created May 22, 2024 21:45
sun50i-h616-orangepi-zero2w.dts I2S patch
diff --git c/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2w.dts w/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2w.dts
index 27e817b379a4..fcb2d852d51b 100755
--- c/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2w.dts
+++ w/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2w.dts
@@ -389,7 +389,7 @@ spidev@1 {
&codec {
allwinner,audio-routing =
- "Line Out", "LINEOUT";
+ "Line Out", "LINEOUT";
[
{
"name": "Corne, default layer",
"author": "https://github.com/c0psrul3",
"plate": false,
"keyboard-layout-editor": "http://www.keyboard-layout-editor.com/#/gists/adfa7c3cd8f0c6d3a7b9155c6eab1748#file-corne-crkbd_c0psrul3-default-json",
"qmk-config": "https://config.qmk.fm/#/crkbd/rev1/LAYOUT"
},
[
{
(use-package polymode
:ensure t
:defer t
:hook (vue-mode . lsp-deferred)
:mode ("\\.vue\\'" . vue-mode)
:config
(define-innermode poly-vue-template-innermode
:mode 'html-mode
:head-matcher "^<[[:space:]]*\\(?:template\\)[[:space:]]*>"
:tail-matcher "^</[[:space:]]*\\(?:template\\)[[:space:]]*>"
@SjB
SjB / FindCppUnit.cmake
Created June 20, 2018 16:18
FindCppUnit.cmake
# - Find the native CppUnit includes and library
#
# This module defines
# CppUnit_FOUND, If false, do not try to use CppUnit
# CppUnit_INCLUDE_DIR, where to find cppunit.h, etc.
# CppUnit_LIBRARIES, the libraries to link against to use CppUnit
# CppUnit::CppUnit
find_package(PkgConfig QUIET)
pkg_check_modules(CppUnit QUIET cppunit)
<?xml version="1.0" encoding="utf-8"?>
<ExternalProject Name="Eto">
<Binary
Name="Eto.Forms"
Path="./.libs/Eto.Forms/lib/netstandard1.0/Eto.dll" />
<Platform Type="Linux">
<Binary
Name="Eto.Platform.Gtk3"
Path="./.libs/Eto.Platform.Gtk3/lib/net45/Eto.Gtk3.dll" />
// -*- csharp -*- -- protobuild.cake : short-description --
// Copyright (c) 2018 National Centre for Audiology. All right reserved.
using Cake.Core;
using Cake.Core.Polyfill;
using Cake.Core.IO.Arguments;
public
class Protobuild {
using Cake.Core;
using Cake.Core.Polyfill;
using Cake.Core.IO.Arguments;
public class Protobuild
{
private static readonly string protobuildUrl = "https://github.com/hach-que/Protobuild/raw/master/Protobuild.exe";
private static readonly FilePath protobuild = new FilePath("Protobuild.exe");
@SjB
SjB / update-alternatives-clang-format
Last active May 1, 2018 18:48
command to insert clang-format to alternative list
sudo update-alternatives \
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-6.0 60 \
--slave /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-6.0 \
--slave /usr/share/man/man1/clang-format.1.gz clang-format.1.gz /usr/share/man/man1/clang-format-6.0.1.gz \
--slave /usr/share/man/man1/clang-format-diff.1.gz clang-format-diff.1.gz /usr/share/man/man1/clang-format-diff-6.0.1.gz
#include "process_keycode/process_tap_dance.h"
#include "action.h"
#include "action_layer.h"
#include "action_util.h"
#include "quantum.h"
#include "wait.h"
#define TD_PRESSED_EVENT 0xFF
#define ACTION_TAP_DANCE_MOD_TAP(kc1, kc2) { \
(defun dired-find-file-below ()
"Displays file at point in a new window below current"
(interactive)
(display-buffer-below-selected (find-file-noselect (dired-get-file-for-visit)) nil))
(define-key dired-mode-map (kbd "C-o") 'dired-find-file-below)