start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python | |
"""Aliases for argparse positional arguments.""" | |
import argparse | |
class AliasedSubParsersAction(argparse._SubParsersAction): | |
class _AliasedPseudoAction(argparse.Action): | |
def __init__(self, name, aliases, help): |
// Simple example of client. | |
// Client prints received messages to stdout and sends from stdin. | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <sys/select.h> | |
#include <netinet/in.h> |
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
Documented at | |
http://linux.die.net/man/5/fonts-conf | |
To check font mapping run the command at terminal | |
$ fc-match 'helvetica Neue' |
#!/bin/sh | |
echo "$1 $2 $3 $4" >> ~/test.mcabber.log | |
EVENT_TYPE=$1 | |
EVENT_SUBTYPE=$2 | |
JID=$3 | |
FILE=$4 | |
TITLE="Google Hangouts" | |
SOUND_FILE="$HOME/.mcabber/sounds/alert_47.wav" | |
ICON="$HOME/.mcabber/images/chat.png" | |
TIMEOUT=10000 |
Thanks to this article by Christoph Berg
Directories and files
~/
// Traverses an arbitrary struct and translates all stings it encounters | |
// | |
// I haven't seen an example for reflection traversing an arbitrary struct, so | |
// I want to share this with you. If you encounter any bugs or want to see | |
// another example please comment. | |
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2014 Heye Vöcking | |
// |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <avr/sleep.h> | |
#include <stdint.h> | |
// First four bits encode morse code - 1 is dash and 0 is dot | |
// then goes length of code | |
char message[] = { | |
0x04, // .... - H | |
0x01, // . - E |
Install yum
from AUR
$ yaourt -Sy yum
Add bootstrap repos to /etc/yum.d/boot.repo
[fedora]
name=fedora
baseurl=https://archives.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/
enabled=1