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
#!/bin/bash
## A simple session chooser for NX virtual desktops written using Zenity dialog boxes.
## Change the node.cfg default desktop to thid script
# DefaultDesktopCommand "/usr/bin/nx-session-choose.sh
## This script should easily be adaptable to suit ones needs.
sleep 4.5
export NX_SESSION=1
@Geofferey
Geofferey / radeon_bios.c
Created May 15, 2020 09:27
A patch to allow loading radeon graphics adapter bios from /lib/firmware/radeon/vbios.bin
/*
This is a simple patch that will allow Radeon graphics adapters to function in Linux VMs running under ESXi
File is located in drivers/gpu/drm/radeon/radeon_bios.c
*/
//* Add this line after other includes
#include <linux/firmware.h>
//* Add this function to file
static bool radeon_read_bios_from_firmware(struct radeon_device *rdev)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* This extremely simple program allows users/accounts to enable and disable wakelocks on Android based devices by to writing arbitray strings to /sys/power/wake_lock & /sys/power/wake_unlock.
Use case:
On my device I am running a service inside of a chroot as a system account. Because said service runs under a restrictive account and not root it can not write to /sys/power/wake_* even when adding the sys account to the aid_wakelock Adroid group. Instead of stupidly allowing a system account to run commands as root using sudo or some other means that would almost certainly grant more capabilities than required I wrote this program.
@Geofferey
Geofferey / build-error.log
Created September 28, 2019 03:30
Build error when building prima module moto ocean
file included from ../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:64:
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_tdls.h:529:39: error: unknown type name 'eTDLSSupportMode'
eTDLSSupportMode tdls_mode)
^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/inc/wlan_hdd_tdls.h:537:1: error: unknown type name 'tdlsConnInfo_t'
tdlsConnInfo_t *wlan_hdd_get_conn_info(hdd_context_t *pHddCtx,
^
../../../../../../kernel/motorola/msm8953/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:4697:22: error: no member named 'MFPCapable' in 'struct tagCsrRoamProfile'
roam_profile->MFPCapable = roam_profile->MFPEnabled;
~~~~~~~~~~~~ ^
#!/bin/sh -e
PATH=$PATH:/usr/sbin:/usr/bin
hostname=somehost@v6.army
device=$2
token=blahblah
file=/tmp/.dynv6.addr6
bind_ip=192.0.0.1
###
### ejabberd configuration file
###
### The parameters used in this configuration file are explained at
###
### https://docs.ejabberd.im/admin/configuration
###
### The configuration file is written in YAML.
### *******************************************************
### ******* !!! WARNING !!! *******
--- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi 2022-04-27 05:41:17.000000000 -0700
+++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi 2022-05-03 23:07:40.851897877 -0700
@@ -276,18 +276,6 @@
#address-cells = <1>;
#size-cells = <0>;
- dai-link@0 {
- link-name = "MultiMedia0";
- reg = <MI2S_PRIMARY>;
- cpu {
#!/bin/sh
## Designed by:
# Geofferey for OmniHax0r ROM
# Run in chroot to bypass carrier + androids builtin resolver
SCRIPTDIR=${0%/*}
CONF=/reserve/.conf/dnsmasq/dnsmasq.conf
DNSMASQ_CONF=/etc/dnsmasq.conf
INSTALLED=/opt/.bootdebi/.dnsmasq
@Geofferey
Geofferey / coachz_cmdline
Created March 7, 2023 09:59
cmdline opts to provide when building kernel (5.19.1) from source
cros_secure cros_secure console=tty1 console=ttyMSM0,115200 root=PARTUUID=9e70a548-30f5-df4c-abb0-6cee1fb0fd12/PARTNROFF=3 rootwait ro fsck.fix=yes fsck.repair=yes net.ifnames=0 fw_devlink=off deferred_probe_timeout=30 clk_ignore_unused=1 noresume psi=1 apparmor=0 selinux=0 mitigations=off preempt=full
@Geofferey
Geofferey / flex_seq_5052.sub
Created April 24, 2023 01:22
RAW Recording of FLEX pager signal test sequence from flipper
Filetype: Flipper SubGhz RAW File
Version: 1
Frequency: 927985500
Preset: FuriHalSubGhzPresetCustom
Custom_preset_module: CC1101
Custom_preset_data: 02 0D 0B 06 08 32 07 04 14 00 13 02 12 04 11 83 10 67 15 24 18 18 19 16 1D 91 1C 00 1B 07 20 FB 22 10 21 56 00 00 C0 00 00 00 00 00 00 00
Protocol: RAW
RAW_Data: 623 -624 623 -624 625 -622 625 -628 623 -626 623 -624 621 -626 627 -626 623 -23780 417 -836 415 -834 413 -834 467 -730 519 -756 493 -730 519 -728 523 -730 519 -728 519 -730 545 -704 519 -730 545 -676 571 -676 573 -676 573 -676 573 -700 545 -702 547 -680 599 -650 599 -652 573 -674 599 -652 599 -650 597 -652 599 -624 623 -652 597 -652 597 -626 623 -652 597 -652 597 -652 599 -626 625 -626 623 -624 625 -626 625 -624 623 -626 623 -624 625 -624 623 -626 625 -622 625 -626 623 -626 623 -626 623 -626 625 -626 625 -626 625 -624 623 -624 625 -624 623 -626 625 -624 623 -626 623 -622 625 -624 623 -626 625 -624 627 -626 623 -622 625 -626 625 -624 623 -624 625 -626 625 -624 623 -624 621 -626 651 -602 625 -626 625 -626