View uncrustify.cfg
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
# Uncrustify 0.60 | |
# | |
# General options | |
# | |
# The type of line endings | |
newlines = lf # auto/lf/crlf/cr | |
# The original size of tabs in the input |
View gist:08d8ea7ee810cb3a371e
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
1. function pointer: | |
type (*ptr)(args) | |
which would be our style, will result in | |
type (* ptr)(args) |
View brachetmatcher.hs
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
module Main | |
where | |
data Node = Node { chr :: Char | |
, next :: Maybe Node } | |
deriving (Show) | |
prepareInput :: String -> String | |
prepareInput str = filter (\c -> c `elem` ['(', ')']) str |
View base-configuration.nix
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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
/etc/nixos/hardware-configuration.nix | |
]; | |
# Use the GRUB 2 boot loader. | |
boot.loader.grub.enable = true; |
View select_remind_entry.sh
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 | |
# | |
# The following script is a ugly hack. But it works, so yeah \m/ | |
# | |
# It uses awk, cut, head, tail, rem2ics and fzf (whereas this is only for the | |
# selection-process and could be replaced). | |
# | |
# Purpose: | |
# |
View configuration.nix
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
# ... some things here ... | |
environment.systemPackages = let | |
basePkgs = import "${configDir}/pkgs/basePackages.nix" pkgs; | |
devPkgs = import "${configDir}/pkgs/devPackages.nix" pkgs; | |
desktopPkgs = import "${configDir}/pkgs/desktopPackages.nix" pkgs; | |
networkPkgs = import "${configDir}/pkgs/networkingPackages.nix" pkgs; | |
vim = import "${configDir}/pkgs/vim/default.nix" pkgs; | |
in | |
basePkgs ++ devPkgs ++ desktopPkgs ++ networkPkgs ++ vim; |
View modulemod-1.rs
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
use runtime::Runtime; | |
use std::error::Error; | |
use std::fmt::Formatter; | |
use std::fmt::Result as FMTResult; | |
use std::fmt::Display; | |
use std::path::Path; | |
use std::result::Result; | |
use module::todo::TodoModule; |
View razorlight.vim
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
" | |
" Version 1.0 | |
" Author: Matthias Beyer <mail@beyermatthias.de> | |
" Date: 03-11-2015 | |
" License: Public Domain | |
" | |
" --- | |
" | |
" Colorscheme for vim and neovim. Created mainly with vim.ink | |
" |
View straceout
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
read(10, "712//\t\tINTERNAL\t\tIBM12712\t\t1\nmod"..., 4096) = 2847 | |
read(10, "", 4096) = 0 | |
close(10) = 0 | |
munmap(0x7feaad925000, 4096) = 0 | |
futex(0x7feaa6c688d0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 | |
open("/etc/X11/egl/atiapfxxES.blb", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("/etc/X11/atiogl_perfcount.conf", O_RDONLY) = -1 ENOENT (No such file or directory) | |
gettid() = 17783 | |
gettid() = 17783 | |
open("/etc/X11/atiogl.conf", O_RDONLY) = -1 ENOENT (No such file or directory) |
OlderNewer