Skip to content

Instantly share code, notes, and snippets.

View bluebear94's full-sized avatar
🦊
fluffy fox

+merlan #flirora bluebear94

🦊
fluffy fox
View GitHub Profile
$ /usr/bin/c++ -O3 -DNDEBUG -std=c++14 -Wall -Wpedantic -Wextra -Werror -O3 -flto -rdynamic CMakeFiles/AGLTest.dir/Test.cpp.o -o ../build/AGLTest -Wl,-rpath,/usr/local/lib: ../build/libAGL.a ../build/libFileUtil.a ../build/libmsdfgen.a -lpangocairo-1.0 -lpango-1.0 -lcairo -lglfw -lGLU -lGL -lGLEW -lSOIL -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lglib-2.0 /usr/local/lib/libportaudio.so -lvorbisfile -lvorbis -logg -lfreetype -lharfbuzz /usr/local/lib/libicui18n.so /usr/local/lib/libicuuc.so -lm -###
clang version 7.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
"/usr/bin/ld" "-export-dynamic" "-z" "relro" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf_x86_64" "-export-dynamic" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "../build/AGLTest" "/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/8.0.1/../../../x86_64-linux-gnu/crt1.o" "/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/8.0.1/../../../x86_64-linux-gnu/crti.o" "/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/8.0.1/crtb
@bluebear94
bluebear94 / procsum
Created April 24, 2018 05:48
Sum memory usage of all processes that match a given name
#!/bin/bash
ps -u $USER -o rss=,cmd= | grep -E $1'([[:space:]]|$)' | awk '{ sum += $1 } END { print sum }'
from https://www.youtube.com/watch?v=21a2HLzhz4g
2 ral pal varzon saam
Mel year 2, month of Raldura, day of Paal, 8:00 P.M.
ridia xa dia.
[name] exist dream
Ridia is in a dream.
@bluebear94
bluebear94 / nim.cpp
Last active December 11, 2017 01:39
#include <ctype.h>
#include <stddef.h>
#include <fstream>
#include <iostream>
#include <string>
const char* nimRattoren[] = {
"black", "red", "green", "brown",
"blue", "purple", "cyan", "silver",
"gray", "pink", "lime", "yellow",
@bluebear94
bluebear94 / amisoark.pl6
Created October 21, 2017 23:22
Create CSVs showing frequency of initial and final consonant clusters in Arka words containing at least one vowel
#!/usr/bin/env perl6
use Archive::Libarchive::Constants;
use Archive::Libarchive::Raw;
use LibCurl::Easy;
use NativeCall;
my %startclus;
my %endclus;
my @alpha = <t k x s n v f m d g p b h y c r z j w l>;
@bluebear94
bluebear94 / changestyle.js
Created September 28, 2017 14:32
Paste into Discord console to dynamically change CSS
var rules = document.styleSheets[0].rules;
var subs = {
'Whitney, "Helvetica Neue", Helvetica, Arial, sans-serif':
'"VL PGothic", sans-serif'
};
for (var i = 0; i < rules.length; ++i) {
var r = rules[i];
var cssText = r.cssText;
@bluebear94
bluebear94 / xelto.c
Created September 25, 2017 12:31
Nias's (?) xelto program, converted to UTF-8, with compilation errors and warnings fixed.
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h> //棋譜の記録に使う
const int HACMNUM = 29;
const int SASTUNIT = 100; //千日手用ハッシュ配列の長さ単位
const char* NAMES[] =
[20:56:43] [Netty Epoll Client IO #2/ERROR] [FML]: NetworkDispatcher exception
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(18) + length(1) exceeds writerIndex(18): UnpooledHeapByteBuf(ridx: 18, widx: 18, cap: 18)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:280) ~[ByteToMessageDecoder.class:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149) ~[ByteToMessageDecoder.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [ByteToMessageDecoder.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerCont
[19:29:34] [Netty Epoll Client IO #2/ERROR] [FML]: NetworkDispatcher exception
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(18) + length(1) exceeds writerIndex(18): UnpooledHeapByteBuf(ridx: 18, widx: 18, cap: 18)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:280) ~[ByteToMessageDecoder.class:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149) ~[ByteToMessageDecoder.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [ByteToMessageDecoder.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerCont
[20:42:11] [Client thread/INFO] [cubicchunks]: Initializing world net.minecraft.client.multiplayer.WorldClient@3edbd6e8 with type cubicchunks.world.type.CustomCubicWorldType@254b2da
[20:42:15] [Netty Epoll Client IO #0/ERROR] [FML]: FMLIndexedMessageCodec exception caught
io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 6 in channel cubicchunks
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.23.Final]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final]
at io.netty.channel