Use bpf programs as filters for seccomp, the one in the example will block all the write syscalls after it's loaded.
Compile it with just
gcc main.c
| use strict; | |
| use warnings; | |
| use vars qw($VERSION %IRSSI); | |
| use Irssi; | |
| # Script info | |
| $VERSION = '0.1'; | |
| %IRSSI = ( | |
| authors => 'Bas Stottelaar', |
| --- qemu-2.5+dfsg/debian/rules 2016-04-19 18:48:46.000000000 +0300 | |
| +++ qemu-2.5+dfsg.new/debian/rules 2017-07-25 23:38:18.882758751 +0300 | |
| @@ -132,9 +132,13 @@ ifeq ($(enable_linux_user),enable) | |
| $(MAKE) -C user-static-build V=${V} $(foreach t,${user_targets},subdir-${t}-linux-user) | |
| endif | |
| -ifneq ($(filter $(DEB_HOST_ARCH),s390 s390x),) | |
| - $(MAKE) -C qemu-build/pc-bios/s390-ccw V=${V} | |
| -endif | |
| +#ifneq ($(filter $(DEB_HOST_ARCH),s390 s390x),) |
This is a full set of key bindings (as of Vimium v1.45); covering all Vimium functionality. I have tried to map all Vimium functionality to comparable Emacs functionality (whenever possible). In cases where there is no equivalent, those commands are prefixed by <c-g> (indicating <c-g>oogle Chrome; and because <c-g> does not conflict with other Emacs shortcuts at all).
Commented Shortcuts: There are a few Emacs-style shortcuts that are simply not possible in Vimium. All of my shortcuts (including those which were not possible; i.e. where I used a decent alternative) have been commented below. This should help to clarify my rationale.
_Compatibility: All of these shortcuts were tested on Mac OS X (Mavericks). Please note that all of my shortcuts operate under the assumption that your Emacs Meta key is the ⌥ Alt/Option key. This really was my only choice, because the ⌘ key is already used in Chrome for shortcuts that c
| #!/bin/bash | |
| # Do some errexit testing | |
| # 0 - test success | |
| # 1 - test simple fail | |
| # 2 - test function fail | |
| # | |
| # in function | |
| # N errexit errtrace pass? |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Example of `prototype' design pattern | |
| # Copyright (C) 2011 Radek Pazdera | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. |