Skip to content

Instantly share code, notes, and snippets.

View Geofferey's full-sized avatar
🤓
OnePlus 8T time

Geofferey Eakins Geofferey

🤓
OnePlus 8T time
  • NETLABWORK
  • USA
View GitHub Profile
@Geofferey
Geofferey / 5.19.1-trogdor.config
Created January 1, 2024 04:38
5.19.1 kernel config for sc7180 arm64 based trogdor chromebooks coachz+homestar
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.19.1 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23800
#!/bin/sh
export ARCH=arm64
if [ $(whoami) != root ]; then
echo "You should probably be running me as root!"
export RUN_AS_ROOT=sudo
@Geofferey
Geofferey / bitlocker-activator-wrapper.bat
Last active March 5, 2024 14:13
A powershell script and wrapper for initializing BitLocker and storing keys via GPO
@ECHO OFF
REM Original thread detailing solution and requirement for this wrapper can be found below:
REM https://social.technet.microsoft.com/Forums/en-US/9e56a51c-42fa-4f17-afe2-78b8c5e90fcf/error-0x80070522?forum=mdopmbam
SET DomainName=netlabwork.us
\\%DomainName%\SYSVOL\%DomainName%\bin\psexec.exe -accepteula -s cmd /C PowerShell -NoProfile -NonInteractive -ExecutionPolicy ByPass \\%DomainName%\SYSVOL\%DomainName%\scripts\bitlocker-activator.ps1 > "%TEMP%\BitLockerEnablerWrapper.log" 2>&1
@Geofferey
Geofferey / homestar-asound.state
Created January 28, 2024 14:16
This is the state of homestar with working microphone
state.Dummy {
control.1 {
iface MIXER
name 'Master Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
# /etc/acpi/events/lidconf
# run a script on lid open/close events
event=button/lid
action=/etc/acpi/actions/acpi-lid-switch.sh "%e"
#!/bin/sh
## This script is intended to be ran by ACPID daemon on lid switch events with the goal of disabling/re-enabling
# local tochpad on Chromebook trogdor + display on lid close/open. There is an issue with the touchpad that causes
# spurious input while the lid is closed and not suspeded + XFCE/upowers method of screen blanking causes issues
# with resuming session after opening the keyboard flap.
LOGFILE=/dev/null
## This is all being done so root can get display # and session cookie of the foreground users console
#!/bin/bash
## This up script only serves as an example and
# will need to be customized to ones needs.
## Sets up an internet capable OpenVPN tunnel
# from within a debian chroot running under
# android.
## For more info on APP UIDs for
@Geofferey
Geofferey / waydroid-chvt.sh
Created June 24, 2023 08:50
WIP Switch back to active
#!/bin/bash
## Use tasker + termux + ssh keys to run inside of waydroid and export WAYDROID_LAUNCH
PRIMARY_VT=1
WAYDROID_VT=7
PREV_VT=$(cat /tmp/.prev-vt)
CUR_VT=$(fgconsole)
if [[ ${CUR_VT} != ${WAYDROID_VT} ]]; then
#!/bin/sh
PRIMARY_USER=geofferey
sleep 1
waydroid session stop
weston --socket=waydroid-0 &
[Unit]
Description=Weston Wayland Compositor (on tty7)
RequiresMountsFor=/run
Conflicts=getty@tty7.service plymouth-quit.service
After=systemd-user-sessions.service getty@tty7.service plymouth-quit-wait.service gdm3.service waydroid-container.service
[Service]
User=geofferey
WorkingDirectory=/home/geofferey
PermissionsStartOnly=true
Restart=always