Skip to content

Instantly share code, notes, and snippets.

View encounter's full-sized avatar

Luke Street encounter

View GitHub Profile
@encounter
encounter / 0-README
Last active July 7, 2023 04:50
Xbox 360 Wireless Controllers xboxdrv/systemd/udev rules
This is configuration for the Xbox 360 Wireless Gaming Receiver to support hotplugging with xboxdrv.
By default, it enables 4 controllers and doesn't require the xpad module to be blacklisted.
File locations:
/usr/lib/systemd/system/xboxdrv.service
/etc/udev/rules.d/99-xboxdrv.rules
To activate:
sudo systemctl disable xboxdrv
sudo systemctl stop xboxdrv
@encounter
encounter / Nginx_1.11_Mainline_Cent_6_7_Static_OpenSSL_1.1.sh
Last active August 13, 2016 07:49 — forked from jiri-pejchal/Nginx_1.11_Mainline_Cent_6_7_Static_OpenSSL_1.1.sh
RPM build Nginx 1.11.x with ALPN on CentOS 6/7 using static OpenSSL 1.1 (v 1.02+ required for http/2 support in Chrome)
#!/bin/bash -e
if [ $UID -ne 0 ]; then
echo "Run as root." >&2
exit 1
fi
CENTVER=7
OPENSSL_VERSION=1.0.2h
NGINX_VERSION=1.11.3-1

Keybase proof

I hereby claim:

  • I am encounter on github.
  • I am encounter (https://keybase.io/encounter) on keybase.
  • I have a public key ASBCLXy8yrQFQ_JB_sqLQ-KgGQ1ZJ2oPz3jHyNb8cKkocwo

To claim this, I am signing this object:

@encounter
encounter / systemd.diff
Last active October 7, 2017 00:06
systemd-boot patch to set max UEFI resolution
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index 1e990b382..c7471aaac 100644
--- a/src/boot/efi/boot.c
+++ b/src/boot/efi/boot.c
@@ -492,6 +492,7 @@ static BOOLEAN menu_run(Config *config, ConfigEntry **chosen_entry, CHAR16 *load
BOOLEAN wait = FALSE;
graphics_mode(FALSE);
+ set_max_resolution();
uefi_call_wrapper(ST->ConIn->Reset, 2, ST->ConIn, FALSE);
@encounter
encounter / PKGBUILD
Created January 2, 2018 14:00
mingw-w64-curl (wintls + http only)
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
#_variant=-openssl
_variant=-winssl
#_variant=-gnutls
if [ "${_variant}" = "-openssl" ]; then
_namesuff=
else
_namesuff="${_variant}"
fi
@encounter
encounter / build.sh
Created March 4, 2018 17:43
macOS futurerestore build
brew install openssl
export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig
git clone https://github.com/encounter/libplist.git
cd libplist
./autogen.sh
make install
cd ..
git clone https://github.com/libimobiledevice/libusbmuxd.git
@encounter
encounter / items.json
Last active October 13, 2022 15:23
No Man's Sky Beyond All Items + Refiner Recipes
This file has been truncated, but you can view the full file.
// Icons available at https://mega.nz/#!vY5jXK7K!w290kvdCWZOvo2aDeth7tImkTPk5eOjfiwwHF8l8cEQ
{
"CASING": {
"name": "Metal Plating",
"type": "product",
"subtitle": "Crafted Technology Component",
"description": "A lightweight metal product, heavily used in the manufacture of <TECHNOLOGY>starship parts<> and <TECHNOLOGY>deployable technology<>. A mainstay of the construction industries of all known primary species.\n\nCrafted from <EARTH>Ferrite Dust<>.",
"base_value": 800,
"category": "product_category_component",
"trade_category": "trade_category_none",
@encounter
encounter / mbin.ksy
Created October 8, 2019 03:37
Kaitai Struct definitions for (a subset of) No Man's Sky MBIN and PAK files
meta:
id: mbin
file-extension: mbin
endian: le
encoding: utf-8
seq:
- id: header
type: mbin_header
- id: table