Skip to content

Instantly share code, notes, and snippets.

View ThisIsAreku's full-sized avatar
:shipit:

Alexandre Boucey ThisIsAreku

:shipit:
View GitHub Profile
@ThisIsAreku
ThisIsAreku / code.cs
Created October 13, 2023 19:37
Streamer.bot parse json to arguments
using Newtonsoft.Json.Linq;
public class CPHInline
{
public bool Execute()
{
string json = args.ContainsKey("json") ? args["json"].ToString().Trim() : "";
string prefix = args.ContainsKey("parsePrefix") ? args["parsePrefix"].ToString() : "parse";
if (json == "")
{
@ThisIsAreku
ThisIsAreku / Docs.json
Created June 9, 2023 12:39
Satisfactory 211839
This file has been truncated, but you can view the full file.
[{"NativeClass":"Class'/Script/FactoryGame.FGItemDescriptor'","Classes":[{"ClassName":"Desc_NuclearWaste_C","mDisplayName":"Uranium Waste","mDescription":"The by-product of consuming Uranium Fuel Rods in the Nuclear Power Plant.\r\nNon-fissible Uranium can be extracted. Handle with caution.\r\n\r\nCaution: HIGHLY Radioactive.","mAbbreviatedDisplayName":"","mStackSize":"SS_HUGE","mCanBeDiscarded":"False","mRememberPickUp":"False","mEnergyValue":"0.000000","mRadioactiveDecay":"10.000000","mForm":"RF_SOLID","mSmallIcon":"Texture2D /Game/FactoryGame/Resource/Parts/NuclearWaste/UI/IconDesc_NuclearWaste_64.IconDesc_NuclearWaste_64","mPersistentBigIcon":"Texture2D /Game/FactoryGame/Resource/Parts/NuclearWaste/UI/IconDesc_NuclearWaste_256.IconDesc_NuclearWaste_256","mCrosshairMaterial":"None","mDescriptorStatBars":"","mSubCategories":"","mMenuPriority":"0.000000","mFluidColor":"(B=0,G=0,R=0,A=0)","mGasColor":"(B=0,G=0,R=0,A=0)","mCompatibleItemDescriptors":"","mClassToScanFor":"None","mScannableType":"RTWOT_Default",
[commit]
gpgsign = true
[user]
signingkey = <gpg key id>
name = <your name>
email = <your email>
[core]
editor = vim
@ThisIsAreku
ThisIsAreku / stmfix.user.js
Last active March 25, 2021 12:59
Fixes for the steamtradematcher website
// ==UserScript==
// @name STM Fix
// @namespace http://www.steamtradematcher.com
// @version 0.2
// @description Fixes for the Steam Trade Matcher website
// @author ThisIsAreku
// @match https://www.steamtradematcher.com/compare
// @icon http://www.steamtradematcher.com/res/img/favicon.jpg
// @updateURL https://gist.github.com/ThisIsAreku/de3e3c17224b7ceb1deeec26b8c079f8/raw/stmfix.user.js
// @grant none
@ThisIsAreku
ThisIsAreku / steamonlinux.md
Last active October 28, 2020 12:54
Steam on Linux - cheatsheet

Useful environment variables to run app on dGPU

__NV_PRIME_RENDER_OFFLOAD=1         # enable renderer offloading
__GLX_VENDOR_LIBRARY_NAME=nvidia    # required for GLX app
__VK_LAYER_NV_optimus=NVIDIA_only   # report only NVIDIA gpu to Vulkan

DXVK (https://github.com/doitsujin/dxvk) might use the iGPU, we filter for Nvidia devices only.
use glxinfo|grep 'OpenGL renderer string' to get the string use vulkaninfo|grep deviceName to get the string (from vuklan-tools package)

@ThisIsAreku
ThisIsAreku / csv_temp.sh
Created August 9, 2020 14:53
PFSense temperature to csv
#!/bin/sh
sysctl -a | grep 'dev.cpu.*.temperature'|sed -E 's/dev\.cpu\.([0-9])\.temperature: ([0-9\.]+)C/temp,cpu\1,\2/'|echo -e "measurement,sensor,temp\n$(cat -)"
@ThisIsAreku
ThisIsAreku / warmup.sh
Last active April 12, 2021 07:42
Warmup public IPFS gateway. Don't do this. It's useless and only put weight on IPFS
curl -s https://raw.githubusercontent.com/ipfs/public-gateway-checker/master/gateways.json | \
jq -r '.[]' | \
sed -e "s/:hash/$1/g" | \
parallel --bar -P 16 curl -s -o /dev/null -X HEAD
@ThisIsAreku
ThisIsAreku / thoughts.md
Created April 22, 2020 21:48
ffmpeg is hard
^(?!.*(BtGatt|dalvik|Environment|DataRouter|FA|art|Wifi|ServiceManager|Atfwd|tnet|MDnsDS|Download|Bluetooth|slim|QSEECOMAPI|WVCdm|QC-time|sensors|nanohub|Drm|Babel|Dropbox|gsamlab|Cryptd|Vold|QC_|Conscrypt|Dns|sound|NetWork|OpenGL|TLog|GMPM|Microphone|Process|Dynamite|cr_|VideoCapabilities|libEGL|libc-netbsd|NativeCrypto|Timeline|GraphicBuffer|InputMethodManager|mali_winsys|Surface|PhoneWindow))
@ThisIsAreku
ThisIsAreku / keybase.md
Created September 10, 2019 07:50
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object: