Skip to content

Instantly share code, notes, and snippets.

View DistantThunder's full-sized avatar

Distant Thunder DistantThunder

View GitHub Profile
@DistantThunder
DistantThunder / gshade_to_reshade_guide.md
Created February 13, 2023 20:15 — forked from snightshade/gshade_to_reshade_guide.md
GShade -> ReShade migration guide for FFXIV

How To Move To ReShade From GShade

(a guide by rika (@lostkagamine). tested, should work fine.)

(Korean version / 한국어 버전)

If you are having issues like the screen turning black, read the mini-FAQ at the bottom of this document!

0. Don't uninstall GShade yet!

Uninstalling GShade removes the gshade-shaders folder which contains all the content. It does not remove GShade's executable file. This guide will help you do that.

@DistantThunder
DistantThunder / VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
Created June 14, 2021 11:06 — forked from Brainiarc7/VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

@DistantThunder
DistantThunder / ffix-proton-install-and-mods-readme.md
Created April 12, 2021 18:26 — forked from Eoin-ONeill-Yokai/ffix-proton-install-and-mods-readme.md
FINAL FANTASY IX on Linux (mods Moguri / Alternate Fantasy) Proton Installation Guide and Bug List

Basic Installation

Final Fantasy IX should work with the latest GloriousEggroll proton builds and should properly boot the game with controller support if you are using Steam's internal controller drivers.

Glossary

  • FINAL FANTASY IX COMMON DIR - The directory to your FINAL FANTASY IX installation. Steam installs game assets into a "steamapp/common" directory, which is generally located in ~/.steam/steam/SteamApps/common with a default steam library configuration.

  • Memoria Mod Manager - The framework for all FFIX modding on PC -- used to add additional content or game logic to the game. It can be configured using a configuration file found in the FINAL FANTASY IX COMMON DIR named Memoria.ini.

MOGURI MOD INSTALL (Tested on MoguriMod 8.2.1)

@DistantThunder
DistantThunder / postgres_queries_and_commands.sql
Created November 23, 2020 18:57 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@DistantThunder
DistantThunder / ffmpeg-vp8&9-encode-test-vaapi-intel.md
Created November 23, 2020 18:57 — forked from Brainiarc7/ffmpeg-vp8&9-encode-test-vaapi-intel.md
PSA: You can now use FFmpeg's VAAPI-based VP8 and VP9 encoder on Skylake+ systems on Linux: Tested on Ubuntu 16.04LTS

Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:

Build platform: Ubuntu 16.04LTS.

First things first:

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools

@DistantThunder
DistantThunder / netns.sh
Created November 3, 2016 14:01
Little script originating from "http://unix.stackexchange.com/questions/149293/feed-all-traffic-through-openvpn-for-a-specific-network-namespace-only/196116#196116" creating network namespaces with the OpenVPN connection. IPv6 section is commented out, you can re-enable it yourself.
1 #!/bin/sh
2
3 set -x
4 case $script_type in
5 up)
6 ip netns add vpn
7 ip netns exec vpn ip link set dev lo up
8 mkdir -p /etc/netns/vpn
9 ip link set dev "$1" up netns vpn mtu "$2"
10 ip netns exec vpn ip addr add dev "$1" \