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
#include <cassert> | |
#include <cstddef> | |
#include <type_traits> | |
#include <utility> | |
// Duck typing for C++ | |
namespace duck { | |
template <template <class> class I> class ref; |
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
# remap prefix to Control + a | |
set -g prefix C-a | |
# bind 'C-a C-a' to type 'C-a' | |
bind C-a send-prefix | |
unbind C-b | |
set -g default-terminal "screen-256color" |
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
from Npp import * | |
def indent_auto_detect(arg): | |
for i in range(editor.getLineCount()): | |
pos = editor.positionFromLine(i) | |
indent = editor.getLineIndentPosition(i)-pos | |
if indent > 0: | |
if ord('\t') == editor.getCharAt(pos): | |
console.write("Indentation: Tabs\n") | |
editor.setUseTabs(True) |
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 | |
for lib in libc.so.6 libm.so.6 libpthread.so.0 libdl.so.2 libresolv.so.2 librt.so.1; do | |
objdump -T /usr/lib/$lib | |
done | awk -v maxver=2.5 -f <(cat - <<'EOF' | |
BEGIN { | |
split(maxver, ver, /\./) | |
limit_ver = ver[1] * 10000 + ver[2]*100 + ver[3] | |
} | |
/GLIBC_/ { | |
gsub(/\(|\)/, "",$(NF-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
#ifndef SCOPEGUARD_H | |
#define SCOPEGUARD_H | |
#define ANON_VAR__(a,b) a##b | |
#define ANON_VAR_(a,b) ANON_VAR__(a,b) | |
#define ANON_VAR ANON_VAR_(_anonvar, __LINE__) | |
// ____________________________________[ uncaught_exception_count.hpp ]____________________________________ | |
// Copyright Evgeny Panasyuk 2012. | |
// Distributed under the Boost Software License, Version 1.0. |