To install this, run from the root of the repo:
curl https://gist.githubusercontent.com/vinnydiehl/716fca0f4eea5a55d0bcb2961ef40fd1/raw/928111c3ea7014ec36c26cbc4775ae679a5fe351/install.sh | sh
#!/bin/sh | |
git -C ~/.config/nvim pull --rebase https main | |
echo | |
git -C ~/.config/zsh pull --rebase https main |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <termios.h> | |
#include <unistd.h> | |
#include <errno.h> | |
/** | |
* Sets terminal attributes to read input without echo and enter. | |
*/ | |
void setTerminalAttributes() { |
To install this, run from the root of the repo:
curl https://gist.githubusercontent.com/vinnydiehl/716fca0f4eea5a55d0bcb2961ef40fd1/raw/928111c3ea7014ec36c26cbc4775ae679a5fe351/install.sh | sh
#!/usr/bin/env ruby | |
results = Dir.glob("#{ARGV.first}/*").sort.map do |filename| | |
File.read(filename).split("\n").select { |ln| ln =~ /^\s+\(/ }.map do |ln| | |
name, code = ln.scan /(?<=")[\w\\x-]+(?=")/ | |
code = code.sub("\\x", "0x").hex | |
"#{name.sub /^nf-/, ""} | #{[code].pack("U")}" | |
end | |
end.flatten |
Quick & dirty way to paste markdown code blocks into Discord etc. You will need xclip
, xdotool
, and awesome window manager.
You will also need guesslang
:
pip3 install guesslang-experimental
module Tiled | |
# Resolution of circle sprite used to make ellipses | |
RADIUS = 300 | |
DIAMETER = 2 * RADIUS | |
class Renderer | |
attr_reader :tile_layers, :object_layers | |
def initialize(args, map) | |
@args = args |
-- If LuaRocks is installed, make sure that packages installed through it are | |
-- found (e.g. lgi). If LuaRocks is not installed, do nothing. | |
pcall(require, "luarocks.loader") | |
-- Standard awesome library | |
local gears = require("gears") | |
local awful = require("awful") | |
require("awful.autofocus") | |
-- Widget and layout library | |
local wibox = require("wibox") |
Line 1 | |
Line 2 |
ACPI Warning: For \_SB_.PCI0.P0P1.PRT: Return Package has no elements (empty) (20120320/nspredef-463) | |
pci0000:00: Requesting ACPI _OSC control (0x1d) | |
pci0000:00: ACPI _OSC request failed (AE_ERROR), returned control mask: 0x1d | |
ACPI _OSC control for PCIe not granted, disabling ASPM |
# :TODO: Fix this shit | |
// :KLUDGE: I don't even know... | |
/* | |
:COMPILER: Fucking AMD! | |
The bits don't shift properly. Gonna need a regex. | |
*/ |