Skip to content

Instantly share code, notes, and snippets.

View briancline's full-sized avatar

Brian Cline briancline

  • SoftLayer / IBM Cloud
  • Dallas, Texas
View GitHub Profile
@jakob-hede
jakob-hede / apple_sleep.md
Last active April 21, 2025 13:56
apple_sleep 2023-11-15

apple_sleep 2023-11-15

Explanation

Fedora Linux on Apple MacBook might not be able to wake from sleep.
(Or it might eventually wake up, but it can take several minutes.)

This package apple_sleep is a workaround using isolation of CPUs, that allows the laptop to wake up from sleep within a normal timeframe.

@jborean93
jborean93 / get_microsoft_updates.py
Last active June 7, 2025 07:41
Cross platform way to search for and download updates listed in the Microsoft Update catalog
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Jordan Borean (@jborean93) <[email protected]>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
# Script to search for updates in the Microsoft Update Catalog. Works on both Python 2 and 3 but requires BeautifulSoup
# to be installed - https://www.crummy.com/software/BeautifulSoup/#Download
import contextlib
import datetime
@Terbau
Terbau / authflow.py
Last active November 18, 2024 23:56
(Partially outdated) epic games authflow
import requests
# Constants. These should not be tampered with.
base = "https://www.epicgames.com"
base_public_service = "https://account-public-service-prod03.ol.epicgames.com"
launcher_token = "MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE="
fortnite_token = "ZWM2ODRiOGM2ODdmNDc5ZmFkZWEzY2IyYWQ4M2Y1YzY6ZTFmMzFjMjExZjI4NDEzMTg2MjYyZDM3YTEzZmM4NGQ="
# Fill out.
email = ""
@smoser
smoser / README.md
Last active May 29, 2025 15:03
qemu to linux mapping of smbios / dmi information

Mappings for DMI/SMBIOS to Linux and dmidecode

Information can be put into dmi tables via some qemu-system hosts (x86_64 and aarch64). That information is exposed in Linux under /sys/class/dmi/id and can be read with dmidecode. The names are very annoyingly inconsistent. The point of this doc is to map them.

See qemu-system-x86_64 --help for the fields that qemu will accept. qemu smbios flags vary with qemu version.

Mappings

Example qemu cmdline:

qemu-system-x86_64 -smbios type=,field=value[,...]

@mbinna
mbinna / effective_modern_cmake.md
Last active May 30, 2025 01:10
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@terabyte
terabyte / amazon.md
Created December 6, 2017 02:27
Amazon's Build System

Prologue

I wrote this answer on stackexchange, here: https://stackoverflow.com/posts/12597919/

It was wrongly deleted for containing "proprietary information" years later. I think that's bullshit so I am posting it here. Come at me.

The Question

Amazon is a SOA system with 100s of services (or so says Amazon Chief Technology Officer Werner Vogels). How do they handle build and release?

@jaykishanmutkawoa
jaykishanmutkawoa / gist:8b439876a808ec0fe5061b61d329d2ea
Last active March 3, 2018 19:13
Allowing user to specify TLSv1.3 in Stunnel
1.The stunnel beta version was compiled with openssl-dev 1.1
[root@localhost stunnel-5.43]# /usr/local/bin/stunnel version
[ ] Clients allowed=500
[.] stunnel 5.43 on x86_64-pc-linux-gnu platform
[.] Compiled/running with OpenSSL 1.1.1-dev xx XXX xxxx
[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
[ ] errno: (*__errno_location ())
2.My stunnel configuration as follows:
@Freeaqingme
Freeaqingme / build-cockroachdb-debian-package.sh
Last active October 16, 2019 02:14
Cockroachdb debian .deb package
#!/bin/bash
set -ex
release=v1.0
build_iter=1.0
version=$(echo "${release}-${build_iter}" | sed 's/^v//g')
rm -rf bin/ pkg/ pkg_root/
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active June 5, 2025 17:18
Hyperlinks in Terminal Emulators