Skip to content

Instantly share code, notes, and snippets.

View galexite's full-sized avatar

George White galexite

View GitHub Profile
#!/data/data/com.termux/files/usr/bin/sh
proot \
-0 \
--link2symlink \
-r ~/debian \
-b /dev/ \
-b /sys/ \
-b /proc/ \
-b /data/data/com.termux/files/home \
/usr/bin/env \
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.19.152 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300
@galexite
galexite / index.html
Created September 11, 2020 19:18
MWyGKNy
<div class="container">
<div class="row my-5">
<div class="col-md-6 mx-auto">
<div class="list-group" id="events">
<div class="list-group-item list-group-item-info">Podcast Society events</div>
</div>
</div>
</div>
</div>
@galexite
galexite / ath10k dmesg.txt
Created March 31, 2020 21:48
ath10k_pci crash on ThinkPad E465
[ 159.104882] ath10k_pci 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0001 address=0x7ee02000 flags=0x0020]
[ 187.061222] ath10k_pci 0000:04:00.0: firmware crashed! (guid 5ea54aeb-55b4-404a-964b-f9bb4d3299c3)
[ 187.062802] ath10k_pci 0000:04:00.0: firmware register dump:
[ 187.062852] ath10k_pci 0000:04:00.0: [00]: 0x05010000 0x00000000 0x0092E4DC 0x09207E13
[ 187.062915] ath10k_pci 0000:04:00.0: [04]: 0x0092E4DC 0x00060130 0x00000018 0x0041A760
[ 187.062976] ath10k_pci 0000:04:00.0: [08]: 0x09207DFF 0x00400000 0x00000000 0x000A5C88
[ 187.063036] ath10k_pci 0000:04:00.0: [12]: 0x00000009 0x00000000 0x0096C09C 0x0096C0A7
[ 187.063097] ath10k_pci 0000:04:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x00000000
[ 187.063157] ath10k_pci 0000:04:00.0: [20]: 0x4092E4DC 0x0041A710 0x00000000 0x0F000000
[ 187.063217] ath10k_pci 0000:04:00.0: [24]: 0x809432A7 0x0041A770 0x0040D400 0xC092E4DC
include(FindPackageHandleStandardArgs)
find_path(WTL_INCLUDE_DIR
NAMES
atlapp.h
atlcrack.h
atlctrls.h
atlctrlw.h
atlctrlx.h
atlddx.h
@galexite
galexite / k30.py
Last active June 14, 2024 16:59
Read the concentration of CO2 in ppm from a K30 sensor connected to a Linux board over I2C.
#!/usr/bin/env python
""" vim: set ai tw=80:
Accessing the K30 10,000ppm CO2 sensor via I2C, rather than UART, upon Linux
(such as for the Raspberry Pi and other similar embedded systems).
Copyright (c) 2019 George White.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@galexite
galexite / LuaJIT.cmake
Last active December 14, 2018 19:18
LuaJIT CMake library and executable specification, updated to match upstream, ideal for embedding in other CMake projects, either as a CMake include, or as a separate module list file
# Copyright (C) 2007-2013 LuaDist.
# Copyright (c) 2017 George White.
# Created by Peter Drahoš
# Modified to support upstream by George White
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@galexite
galexite / bcm_host.pc
Last active December 12, 2015 17:21
/usr/lib/pkgconfig/bcm_host.pc
# License
# =======
# Public domain.
#
# Installation
# ============
#
# Once you've compiled and installed the Videocore IV drivers found on
# https://github.com/raspberrypi/userland, simply download this file
# in to your /usr/lib/pkgconfig folder, and you will be able to compile
@galexite
galexite / gist:42563658a8b04c33086a
Created December 5, 2014 14:46
userlandfs git diff to make compilation work on GCC 4 x86_64 builds.
diff --git a/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/FileSystem.cpp b/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/FileSystem.cpp
index 5c76c75..3650953 100644
--- a/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/FileSystem.cpp
+++ b/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/FileSystem.cpp
@@ -221,7 +221,7 @@ FileSystem::~FileSystem()
ops = next;
}
if (count > 0)
- WARN(("Deleted %ld vnode ops vectors!\n", count));
+ WARN(("Deleted %ld vnode ops vectors!\n", (long int)count));