This file contains hidden or 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
{c="1;1"} | |
/TCP_MISS/ { c="1" } | |
/TCP_MEM_HIT/ { c="2;1" } | |
/TCP_HIT/ { c="2" } | |
/_UNMODIFIED/ { c="4" } | |
/_ABORTED/ {c="4;1"} | |
{print "\033[3"c"m"$0 "\033[0m"} |
This file contains hidden or 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/sh | |
MODEM="$(mmcli -L | grep -o '/org/freedesktop/ModemManager1/Modem/[0-9]*' | head -1)" | |
BEARER="$(mmcli -m $MODEM --list-bearers | grep -o '/org/freedesktop/ModemManager1/Bearer/[0-9]*' | head -1)" | |
connect() { | |
MODEM="$(mmcli -L | grep -o '/org/freedesktop/ModemManager1/Modem/[0-9]*' | head -1)" | |
mmcli -m $MODEM --simple-connect=apn=web.be,user=web,password=web | |
BEARER="$(mmcli -m $MODEM --list-bearers | grep -o '/org/freedesktop/ModemManager1/Bearer/[0-9]*' | head -1)" |
This file contains hidden or 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/sh | |
export GIT_WORK_TREE=/ | |
if [[ "$1" == "autocommit" ]] | |
then | |
git status --porcelain | grep -v '^??' || exit 0 | |
exec git commit -a -m 'autocommit' | |
fi | |
exec git $@ |
This file contains hidden or 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
Puppet::Functions.create_function(:get_interface_with) do | |
def get_interface_with(tests) | |
interfaces = closure_scope.lookupvar('networking')['interfaces'] | |
interfaces.each do |ifname, info| | |
(info.fetch('bindings',[]) + info.fetch('bindings6',[])).each do | binding | | |
good = true | |
tests.each do |kind, value| | |
unless lookupval(info, binding, kind) == value | |
good = false |
This file contains hidden or 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
import java.util.HashSet; | |
import java.util.Set; | |
public class Graph { | |
public class Node { | |
private final Set<Branch> branches = new HashSet<>(); | |
public final String name; | |
This file contains hidden or 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 | |
PROGNAME=$0 | |
usage() { | |
cat <<EOF | |
usage: $PROGNAME [-n|--name SERVERNAME] [-d|--dir SERVERDIR] cmd [args] | |
-n, --name name under which the server is logged. | |
-d, --dir directory with server data | |
EOF |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
diff -uNr p99-2012-12-03/p99/p99_try.h p99/p99/p99_try.h | |
--- p99-2012-12-03/p99/p99_try.h 2012-12-03 13:40:29.000000000 +0100 | |
+++ p99/p99/p99_try.h 2012-12-04 17:13:46.116666909 +0100 | |
@@ -345,6 +345,20 @@ | |
#define P00_THROW_CALL_NEG(F, E, ...) \ | |
p00_throw_call_neg(F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__), __func__, #F ", neg return") | |
+p99_inline | |
+int p00_throw_call_neg_errno(int p00_neg_errno, | |
+ errno_t p00_def, |
This file contains hidden or 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 <alloca.h> | |
#include <stdio.h> | |
#pragma once | |
/* | |
* (v)aasprintf macro: | |
* alloca based asprintf | |
* | |
* usage: |
This file contains hidden or 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
# Automatically generated by systemd-fstab-generator | |
[Unit] | |
SourcePath=/etc/fstab | |
DefaultDependencies=no | |
Conflicts=umount.target | |
Before=umount.target local-fs.target | |
[Automount] | |
Where=/home |