Skip to content

Instantly share code, notes, and snippets.

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

Hugo B. S. Benedicto Hugobsb

🏠
Working from home
View GitHub Profile
@Steveplays28
Steveplays28 / distant_horizons_shader_compatibility_information.md
Last active December 31, 2025 07:13
Distant Horizons shader compatibility info

Distant Horizons shader compatibility information

Distant Horizons v2.0.0 (and up) shader compatibility information.

v2

Install guide

Fabric

@ongyx
ongyx / setup_rich_presence_relay.sh
Last active September 29, 2025 00:03
This script sets up a relay for Discord Rich Presence on WSL2 for https://github.com/andweeb/presence.nvim. Note that this has only been tested on Arch Linux which uses the systemd init system.
#!/bin/bash
EXE='npiperelay.exe'
export GOOS=windows
export GOARCH=amd64
GO_BIN="$(go env GOPATH)/bin/${GOOS}_${GOARCH}"
msg () {
@brianfoody
brianfoody / SvgRadarChart.tsx
Last active August 24, 2023 08:23
SVG Radar Chart in React Native
import React, { useMemo } from "react";
import { View } from "react-native";
import { degToRadians } from "src/components/OrbitLogo";
import Svg, { Circle, Line, Polygon } from "react-native-svg";
import times from "lodash.times";
type RadarData = {
value: number;
label: string;
};
@ld100
ld100 / ArchLinuxWSL2.md
Last active December 20, 2025 10:44
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@mkaraki
mkaraki / install_ffmpeg_codec_for_opera.sh
Created February 15, 2020 10:09
Install ffmpeg codec for Opera in Linux (Ubuntu)
#!/bin/bash
# for Ubuntu
# Install pre-requirements
sudo apt-get update
sudo apt-get install -y chromium-codecs-ffmpeg-extra
# Import to opera
sudo ln -sf /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
@bmaupin
bmaupin / free-backend-hosting.md
Last active December 28, 2025 19:42
Free backend hosting
@ecarter
ecarter / mapOrder.js
Created December 2, 2011 15:40
Order an array of objects based on another array order
/**
* Sort array of objects based on another array
*/
function mapOrder (array, order, key) {
array.sort( function (a, b) {
var A = a[key], B = b[key];