Skip to content

Instantly share code, notes, and snippets.

@neonfuz
neonfuz / .emacs
Created December 1, 2015 22:17
neonfuz's .emacs
(setq-default c-default-style "bsd"
c-basic-offset 4
tab-width 4
indent-tabs-mode nil
js-indent-level 2)
(add-to-list 'default-frame-alist '(font . "PragmataPro-10" ))
(set-face-attribute 'default t :font "PragmataPro-10" )
(icomplete-mode 99)
@neonfuz
neonfuz / sizetest.c
Created December 2, 2015 03:06
Program to test the sizes of various types
#include <stdio.h>
int main(int argc, char *argv[])
{
#define PRINT_SIZEOF(type) printf("sizeof(" #type "):\t%lu bytes\n", sizeof(type))
PRINT_SIZEOF(char);
PRINT_SIZEOF(short);
PRINT_SIZEOF(int);
PRINT_SIZEOF(long);
PRINT_SIZEOF(long long);
void check (int test, const char * message, ...)
{
if (test) {
va_list args;
va_start (args, message);
vfprintf (stderr, message, args);
va_end (args);
fprintf (stderr, "\n");
exit (EXIT_FAILURE);
@neonfuz
neonfuz / ffmpeg_decklink_h264_qsv.sh
Created October 10, 2017 01:20 — forked from jpriebe/ffmpeg_decklink_h264_qsv.sh
Example script to encode video from a Decklink Mini Recorder using h264_qsv
# Mounts as regular user device /dev/<arg1> if not already mounted,
# changes into the devices directory with pushd,
# and prints the directory.
# Usage:
# Mount /dev/sdb1 if it is not mounted and change to it's directory
# d sdb1
# Unmount /dev/sdb1
# umount $(d sdb1)
{
packageOverrides = pkgs: {
qbittorrent = pkgs.qbittorrent.overrideAttrs (oldAttrs: oldAttrs // rec {
version = "3.3.16";
name = "qbittorrent-${version}";
src = pkgs.fetchurl {
url = "mirror://sourceforge/qbittorrent/${name}.tar.xz";
sha256 = "0mxyn2pajvb55bhcaz55v64p2xzy15p0yy174s62b5y3f8cac27a";
};
});
{ stdenv, pkgconfig, cmake, bluez, ffmpeg, libao, gtk2, glib, mesa
, gettext, libpthreadstubs, libXrandr, libXext, readline, openal
, libXdmcp, portaudio, fetchzip, fetchFromGitHub, libusb, libevdev
, wxGTK30, soundtouch, miniupnpc, mbedtls, curl, lzo, sfml
, libpulseaudio ? null }:
stdenv.mkDerivation rec {
name = "dolphin-emu-faster-melee-beta-${version}";
version = "5.8.7";
@neonfuz
neonfuz / doom64ex.nix
Created October 16, 2018 19:39
doom64ex nix WIP, broken meta???
{ stdenv, fetchFromGitHub
, gccStdenv, cmake, fluidsynth, SDL2, SDL2_net, zlib }:
stdenv.mkDerivation rec {
name = "doom64ex-${version}";
version = "unstable-2018-08-24";
src = fetchFromGitHub {
owner = "svkaiser";
repo = "Doom64EX";
Debugger entered--Lisp error: (error "Recursive ‘require’ for feature ‘pcomplete’")
require(pcomplete)
require(pcomplete)
require(pcomplete)
require(pcomplete)
require(pcomplete)
byte-code("\300\301!\210\300\302!\210\303\304\305\306\307\310\307\311&\007\210\303\312\305\313\307\304%\210\314\315\316\317\320DD\321\322\323\307\304&\007\210\314\324\316\317\325DD\326\322\323\307\304&\007\210\314\327\316\317\330DD\331\322\332\307\304&\007\210\314\333\316\317\334DD\335\322\336\307\304&\007\210\314\337\316\317\340DD\341\322\342\307\304&\007\210\314\343\316\317\344DD\345\322\346\307\304&\007\210\314\347\316\317\350DD\351\322\352\307\304&\007\210\314\353\316\317\354DD\355\322\323\307\304&\007\210\314\356\316\317\357DD\355\322\323\307\304&\007\210\314\360\316\317\361DD\362\322\363\307\304&\007\210\314\364\316\317\365DD\366\322\323\307\312&\007\210\314\367\316\317\370DD\371\322\323\307\312&\007\210\314\372\316\317\373DD\374\322\363\307\312&\007\210\314\375\316\317\376DD\377\322\363\307\312&\007\210\314\201@\0\
root filesystem directories tier list:
god tier:
bin
boot
dev
etc
home
lib{,64}
media