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
package not.hub.discord.utils; | |
import java.time.Instant; | |
import java.util.Collection; | |
import java.util.Set; | |
import java.util.stream.Collectors; | |
public class Snowflake implements Comparable<Snowflake> { | |
private static final long DISCORD_EPOCH = 1420070400000L; |
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
package not.hub.ansi; | |
/** | |
* ANSI formatting codes | |
* <p> | |
* SGR | |
* Code Effect Note | |
* 0 Reset / Normal All attributes off | |
* 1 Bold or increased intensity As with faint, the color change is a PC (SCO / CGA) invention.[28][better source needed] | |
* 2 Faint or decreased intensity aka Dim (with a saturated color). May be implemented as a light font weight like bold.[29] |
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
package not.hub.test; | |
class UnsoundTypeBreakage<T, U> { | |
final Constrain<? super T> constrain; | |
final U u; | |
UnsoundTypeBreakage(T t) { | |
u = coerce(t); | |
constrain = getConstrain(); |
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/games/steam %U -no-browser -nofriendsui steam://open/minigameslist |
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
#!/bin/bash | |
set -e | |
if [ -n "$1" ] && [ "$1" != "-f" ]; then | |
echo "put your dotfiles and this script in the same folder (eg. \$HOME/.dotfiles/)" | |
echo "keep the same folder structure as in \$HOME" | |
echo "run the script from anywhere, it will create links for the dotfiles" | |
echo "-f allows overwriting of existing files" | |
exit 0 |
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
package not.hub.test; | |
import org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.api.Test; | |
class UnboxingEquals { | |
@Test | |
void sanity_check() { | |
// noinspection NumberEquality,SimplifiableAssertion,SimplifiableAssertion |
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 | |
set -e | |
SSH_USER='' | |
SSH_HOST='' | |
SSH_PATH='' # relative | |
BASE_URL='' # http | |
LOCAL_ARCHIVE_PATH="$HOME/scrup" |
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
#!/bin/bash | |
set -e | |
if [ -z "$1" ]; then | |
echo "please provide dir path containign repos" | |
exit 1 | |
fi | |
cd "$1" |
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
#!/bin/bash | |
set -e | |
EXAMPLE_USAGE="$(basename $0) video.mp4 audio.mp3 merged.mp4" | |
if [ -z "$1" ]; then | |
echo "please specify input video file" | |
echo "$EXAMPLE_USAGE" | |
exit 1 |
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
I write it myself, edit it myself, censor it myself, publish it myself, distribute it myself, and spend time in prison for it myself. | |
Bukovskiĭ, Vladimir - 1942 |
OlderNewer