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
# A script to pack any file with zlib and embed them as C/C++ header file. | |
# Should work well with all Python versions starting from Python 3.6 | |
# Basically you can achieve pretty much the same effect as this script with gzip | xxd wrapping on most of Unix systems. | |
import argparse | |
import os | |
from pathlib import Path | |
import re | |
import zlib |
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
unsigned int loadCubemap(const char* textureFile) { | |
stbi_set_flip_vertically_on_load(false); | |
const unsigned int horizontalChunks = 4; | |
const unsigned int verticalChunks = 3; | |
// positions for the layout: | |
// T | |
// L F R B | |
// D | |
const unsigned int positions[] = { |
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
KBD RUU "Russian-Ukrainian Unicode" | |
COPYRIGHT "(c) 2020 Mayoi Hachikuji" | |
COMPANY "Mayoi Hachikuji" | |
LOCALENAME "ru-RU" | |
LOCALEID "00000419" |
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
009 Re:Cyborg (movie) | |
009-1 (TV) | |
009-1: The End of the Beginning (live-action movie) | |
07-Ghost (TV) | |
1+2=Paradise (OAV) | |
10 Little Gall Force (OAV) | |
100 Banme no Saru (movie) | |
100 Sleeping Princes and the Kingdom of Dreams: The Animation (TV) | |
100% (OAV) | |
100% Pascal-sensei (TV) |
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 perl | |
use strict; | |
use warnings; | |
use 5.010; | |
use JSON qw( decode_json ); # isn't default module, must be installed via CPAN or your system package manager | |
use Time::HiRes qw ( usleep ); # for simple delays | |
my $outputfile = shift; # getting output filename from command-line params |
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 | |
KEY=$1 | |
gpg --keyserver pgpkeys.mit.edu --recv-key $KEY | |
gpg -a --export $KEY | sudo apt-key add - |
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
Show hidden characters
{ | |
"palettes": { | |
"default": ["white", "#cdbe70", "#7ccd7c", "#63b8ff", "#cd69c9", "#ff6347", "#008b45", "#8b6914"] | |
} | |
} |
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
# moved to a separate repository: https://github.com/infinite-library/weechat-ongoing |
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/zsh | |
LINK="$1" | |
youtube-dl -i -f 141 "${LINK}" | |
for F in *.m4a; do | |
ffmpeg -i "${F}" -acodec libvorbis -ab 192k "${F/%m4a/ogg}" | |
done | |
rm *.m4a |
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
location /devnull { | |
fancyindex on; | |
fancyindex_exact_size off; | |
fancyindex_css_href "/fancyindex.css"; | |
allow all; | |
} |
NewerOlder