Skip to content

Instantly share code, notes, and snippets.

View fleaplus's full-sized avatar

Geoffrey Thompson fleaplus

  • Newline Technical Innovations
  • Loveland, CO
View GitHub Profile
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Text;
using Xamarin.Forms;
namespace My_Climate_App
{
enum ResponseStatus
{
@fleaplus
fleaplus / g5se5505setup.txt
Created December 19, 2020 17:26
Dell G5 SE 5505 Extracted Setup Menu 1.3.0
UEFI Protocol Detected
--------------------------------------------------------------------------------
String Packages
--------------------------------------------------------------------------------
Offset: Language:
--------------------------------------------------------------------------------
0x2AA74 en-US
0x3A13E fr-FR
@fleaplus
fleaplus / gist:5e274a83489305e7bd038b6fec02b33d
Created May 9, 2020 22:15
Error in addon with null b.net
Date: 2020-05-09 16:12:41
ID: 1
Error occured in: Global
Count: 1
Message: ...nterface\AddOns\EMA-Classic\Modules\Talk-Classic.lua line 719:
attempt to concatenate a nil value
Debug:
...nterface\AddOns\EMA-Classic\Modules\Talk-Classic.lua:719: ForwardWhisperToMaster()
...nterface\AddOns\EMA-Classic\Modules\Talk-Classic.lua:664: ?()
...ibDataBroker\CallbackHandler\CallbackHandler-1.0.lua:119:

Installation

18.04.3 was used, no kernel params needed for initial bootup and installation to succeed.

Disabling the Nvidia GPU

bbswitch works if the following udev rules, /lib/udev/rules.d/80-nvidia-pm.rules are created:

# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"
@fleaplus
fleaplus / MSI_WT75_HACKINTOSH.md
Last active December 10, 2018 14:15
MSI WT75 Hackintosh

Installation

Create USB restore drive

  • Use Unibeast, with High Sierra 10.13.6
  • Replace existing EFI/CLOVER/kexts/Other USBInjectAll.kext and VoodooPS2Controller.kext with latest TODO: remove unneeded KEXT's from boot
  • Copy the following:
    • Clover 4701, from Rehabman
    • AppleALC v1.3.4+ for Audio + Lilu.kext (WT75 updates should be merged by now)
  • latest WhateverGreen.kext
@fleaplus
fleaplus / zbook_studio.xml
Created October 20, 2016 21:16
Zbook Studio G3 Notebook FanControl Profile
<?xml version="1.0"?>
<FanControlConfigV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NotebookModel>HP ZBook Studio G3</NotebookModel>
<Author>Geoff Thompson</Author>
<EcPollInterval>3000</EcPollInterval>
<ReadWriteWords>false</ReadWriteWords>
<CriticalTemperature>75</CriticalTemperature>
<FanConfigurations>
<FanConfiguration>
<ReadRegister>46</ReadRegister>
@fleaplus
fleaplus / gist:d62e9f2579b7b9d5f535
Last active August 29, 2015 14:02
Is this a good idea?
def filter_timezones(timezone_groups):
import re
exclude = [
'Etc', 'localtime', 'posix',
'posixrules', 'right', 'SystemV',
]
tab_files_re = '.*\\.tab$'
def is_kept(zone):
return zone not in exclude and not re.match(tab_files_re, zone)
@fleaplus
fleaplus / gist:10946138
Last active August 29, 2015 13:59
Test with a context manager to create directory/file structure
import unittest
import os
import tempfile
import re
import shutil
from mock import patch
from reports import diskSpaceReport
@fleaplus
fleaplus / gist:8903245
Created February 9, 2014 18:05
Cloning foodie on 12.04LTS
Needed to apt-get install postgres, postgresdev, sqlite3, sqlite3dev, g++, zlib, openssl, readline
Used rbenv for ruby management, ruby 1.9.3-p392.
Ruby needed to be compiled with zlib, openssl, readline (install those packages first with apt-get before installing ruby!)
@fleaplus
fleaplus / gist:6134212
Created August 1, 2013 19:02
Playing with python/selenium!
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import time
import unittest
class ATest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox() # Get local session of firefox
def tearDown(self):