Skip to content

Instantly share code, notes, and snippets.

View nop's full-sized avatar
💭
git commit -m ":pray:"

James Box nop

💭
git commit -m ":pray:"
View GitHub Profile
@craSH
craSH / bulletproof_arch.md
Last active June 17, 2024 13:36 — forked from altercation/bulletproof_arch.txt
Bulletproof Arch - Minimal Clean Install

Bulletproof Arch

These are working notes on the installation of Arch Linux. I've just completed this install on a notebook (@altercation: Lenovo P50. @craSH: Dell XPS 13" 9380) but the setup should work for most laptop/desktop configurations.

Some assumptions/notes:

  1. This isn't a dual boot configuration. I can see some of the appeal and still work in Adobe from time to time, but given the increasing complexity of EFI and the way Windows/MS manhandles the EFI partition during upgrades, I really would recommend steering clear of dual boot. Just my two cents here.
@MeguminSama
MeguminSama / Discord Experiments.js
Last active July 25, 2024 10:24
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
package main
import (
"fmt"
"sort"
advent "github.com/mdempsky/advent2020"
)
func main() {
@willeccles
willeccles / shellandc.c
Last active February 24, 2023 01:52
A C program which is also a valid bash script, and vice versa.
#include <stdio.h>
#define $x ,x
#define $i ,i
#define eval int
#define read scanf
#define $scanfpat "%d", &
#define $(x) ,(x)
#define $open (
#define $close )
#define do {
@hyblocker
hyblocker / InputManager.cs
Last active August 7, 2023 14:30
An Input Manager that supports keyboard, mouse and controller bindings, and allows for rebinding of Keybinds
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using System.Collections.Generic;
using System;
namespace Experiments
{
public static class InputManager
{
#region Variables
@Roukaysa
Roukaysa / worth.yml
Last active June 11, 2023 01:57 — forked from Yaroster/worth.yml
worth.yml 1.14 (EssentialsX)
# Created by X00LA
# Optimized by Yaroster
# Fixed, changed and completed by Roukaysa
# License: GPL2.0 https://github.com/X00LA/Bukkit-Essentials-worth.yml/blob/master/LICENSE
# Made for MC 1.13+ (Flattened)
# Optimized for ideal balanced Economy!
# Based on https://github.com/X00LA/Bukkit-Essentials-worth.yml
worth:
#Iron
STARTFONT 2.1
FONT -sweets-eclair-medium-r-normal--12----C--ISO10646-1
SIZE 4 72 72
FONTBOUNDINGBOX 6 12 0 -2
STARTPROPERTIES 17
DEFAULT_CHAR 65535
CHARSET_ENCODING "1"
CHARSET_REGISTRY "ISO10646"
SPACING "C"
FONT_ASCENT 10
@Sweets
Sweets / unicode.diff
Last active June 5, 2020 00:03
st unicode patch
From 5d624a8d424dc62f881fe91793c2eaef4879fd9a Mon Sep 17 00:00:00 2001
From: Sweets <redacted>
Date: Tue, 27 Mar 2018 20:14:41 -0500
Subject: [PATCH] Unicode input support (TERMMOD+u, ctrl+shift+u by default)
---
config.def.h | 27 +++++++-------
st.c | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++---------
st.h | 1 +
3 files changed, 117 insertions(+), 30 deletions(-)