This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Simple script to display display a notification when the current song changes | |
# in MPD, showing the title, artist, and cover/album art. | |
# | |
# Requires: dunst, mpd, and mpc | |
# Temporary path where album art will be written to. | |
ALBUMART="/tmp/albumart" | |
# The number of milliseconds to display the notification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:10:04.582 DEBUG config > Reloaded configuration! generation=1 | |
00:10:04.583 DEBUG sctk > Bound new global [49] wl_output v4 | |
00:10:04.583 DEBUG sctk > Bound new global [48] zxdg_output_manager_v1 v3 | |
00:10:04.583 DEBUG sctk > Bound new global [14] wl_seat v7 | |
00:10:04.583 DEBUG window::os::x_and_wayland > Using wayland connection! | |
00:10:04.632 DEBUG config > Reloaded configuration! generation=2 | |
00:10:04.647 DEBUG wezterm_font::ftwrap > set_char_size computing 11.5 dpi=96 (pixel height=15.333333333333334) | |
00:10:04.650 DEBUG sctk > supported wl_shm format Argb8888 | |
00:10:04.650 DEBUG sctk > supported wl_shm format Xrgb8888 | |
00:10:04.650 DEBUG sctk > supported wl_shm format Xbgr8888 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Simple script to display display a notification when the current song changes | |
# in MPD, showing the title, artist, and cover/album art. | |
# | |
# Requires: dunst, mpd, and mpc | |
ALBUMART="/tmp/albumart" | |
TIMEOUT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile executable with "go build cavabar.go" or just run with "go run cavabar.go" | |
package main | |
import ( | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"io" | |
"math" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Downloads a RimWorld mod from a SteamWorkshop URL | |
# | |
# Usage: rimmod URL [URL2 [URL3]]] | |
# Example: rimmod https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077 | |
# | |
# Requires steamcmd to be installed and in $PATH | |
# Mods will be installed in the Steam folder. (i.e. ~/.steam/SteamApps/workshop/content/294100/) | |
function rimmod() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ----------------------------------------------------------------------- */ | |
/* | |
Easy embeddable cross-platform high resolution timer function. For each | |
platform we select the high resolution timer. You can call the 'ns()' | |
function in your file after embedding this. | |
https://www.roxlu.com/2014/047/high-resolution-timer-function-in-c-c-- | |
*/ | |
#include <stdint.h> | |
#if defined(__linux) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.CompilerServices; | |
namespace MyNamespace; | |
/// <summary> | |
/// Provides static functions for encoding/decoding variable-length integers represented as a <see cref="int"/>. | |
/// </summary> | |
public class VarInt | |
{ | |
private const int SEGMENT_BITS = 0x7F; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dear Boss, | |
Compelling any employee to take any current Covid-19 vaccine violates federal | |
and state law. | |
First, federal law prohibits any mandate of the Covid-19 vaccines as unlicensed, | |
emergency-use-authorization-only vaccines. Subsection bbb-3(e)(1)(A)(ii)(III) of section 360 of Title 21 of the United States Code, otherwise known as | |
the Emergency Use Authorization section of the Federal Food, Drug, and Cosmetic | |
Act, demands that everyone give employees the “option to accept or refuse administration” | |
of the Covid-19 vaccine. This right to refuse emergency, experimental vaccines, such as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.CompilerServices; | |
using JetBrains.Annotations; | |
namespace ChangeThisNamespace | |
{ | |
/// <summary> | |
/// Contains extension methods dealing with endianness of numeric types. | |
/// </summary> | |
[PublicAPI] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.CompilerServices; | |
namespace ZLib | |
{ | |
/// <summary> | |
/// An Adler-32 checksum implementation for ZLib streams. | |
/// </summary> | |
/// <seealso href=""/> | |
public sealed class Adler32 |
NewerOlder