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 March 25, 2024 15:05
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.

@Terbau
Terbau / authflow.py
Last active March 5, 2024 16:06
(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 = ""
@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 April 23, 2024 03:11
Hyperlinks in Terminal Emulators
@PatrickLang
PatrickLang / server2016_slipstream.md
Last active July 20, 2023 07:52
Automated deployments of Windows Server 2016

This is a draft that will ultimately be blogged later. If you're seeing this after April 2017 it's probably out of date.

Making a pre-updated Windows Server 2016 ISO

Prerequisites

  1. Install the Windows Assessment and Deployment Toolkit
  2. Download a Windows Server 2016 ISO such as the trial here - TODO
  3. Download the latest cumulative update
@Brainiarc7
Brainiarc7 / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
Last active April 21, 2024 04:22
ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware

Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:

Considerations to take when live streaming:

The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:

  1. Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.

  2. Set up the encoders as shown:

@marians
marians / Chromium Linux.md
Last active March 12, 2024 06:32
How to install CA certificates and PKCS12 key bundles on different platforms

We install certutil and pk12util if necessary:

sudo apt install libnss3-tools

On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:

ls $HOME/.pki/nssdb