Skip to content

Instantly share code, notes, and snippets.

View xorus's full-sized avatar
🏠
Working from home

Xorus xorus

🏠
Working from home
View GitHub Profile

1. Install reshade

Source for the installation script

Download and use the script :

# when asked, install to directory with ffxiv_dx11.exe (Game Path/game in xivlauncher settings)
curl -LO https://github.com/kevinlekiller/reshade-steam-proton/raw/main/reshade-linux.sh && chmod +x reshade-linux.sh && RESHADE_ADDON_SUPPORT=1 ./reshade-linux.sh 
@xorus
xorus / aaa.ts
Created March 8, 2023 16:16
graphql yoga in Hono server
import {Env, Hono, HonoRequest} from "hono";
import {createSchema, createYoga} from "graphql-yoga";
const schema = createSchema({
typeDefs: `...graphql schema...`,
resolvers: {
Query: {
hello: () => 'Hello wolrd :)',
},
Subscription: {
@xorus
xorus / README.md
Created March 6, 2023 10:36
Use m1dugh/native-sound-mixer in a electron app using webpack via electron-forge.

I wanted to run https://github.com/m1dugh/native-sound-mixer in an electron app.

Of course, since this uses a native module, you cannot use this in the main process. But for some reason it would not work in my render process, I got errors of webpack unable to find and load the module. This was due in part to the asset relocator. I had to switch back to @marshallofsound/webpack-asset-relocator-loader.

Bear in mind my config comes from a somewhat older electron config and has typescript support enabled.

@xorus
xorus / index.d.ts
Created February 27, 2023 19:09
pipobscure asterisk-manager type definitions
// Type definitions for asterisk-manager.js v0.2.0
declare module 'asterisk-manager' {
export type Response = Record<string, string>;
export type Event = { event: string } & Response;
export type Callback = (err: Response, response: Response) => void;
export default class Asterisk extends require("events").EventEmitter {
constructor(
port: string,
@xorus
xorus / logs.py
Last active June 1, 2022 23:30
tea logs
import re
import datetime
import os
from turtle import color
from venv import create
from sortedcontainers import SortedDict
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.transforms as transforms
import imageio
using System;
using Dalamud.Interface.Animation;
namespace EngageTimer.UI.CustomEasing
{
public class CubicBezier : Easing
{
private readonly double _p0;
private readonly double _p1;
private readonly double _p2;

Download url file list

parallel -a filename -j 4 wget -nv {}
@xorus
xorus / config
Created September 9, 2017 18:34
Mintty config
# To use common configuration in %APPDATA%\mintty, simply remove this file
BoldAsFont=-1
Transparency=low
OpaqueWhenFocused=yes
CursorType=block
Font=Menlo for Powerline
FontHeight=12
Term=xterm-256color
ForegroundColour=248,248,242
var sticky = document.getElementById('seo-top-sticky');
var stickyOffset = sticky.getBoundingClientRect().top + document.body.scrollTop;
console.log(stickyOffset);
var titleShown = false;
var onScroll = function () {
if (stickyOffset < (window.pageYOffset || document.scrollTop) - (document.clientTop || 0)) {
if (!titleShown) {
syntax on
set nu
set nocompatible
set ruler
set encoding=utf-8
set visualbell
set wrap
set textwidth=79
set formatoptions=tcqrn1
set tabstop=2