Skip to content

Instantly share code, notes, and snippets.

View redbaron's full-sized avatar

Maxim Ivanov redbaron

View GitHub Profile
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) │
[GCC 4.4.3] on linux2 │
Type "help", "copyright", "credits" or "license" for more information. │
>>> from ots_extensions import ots_config │
>>> ots_config.__file__ │
'/srv/otspyenv/deploy/meego_ots_extensions/ots_extensions/ots_config.py'
[root@rbnote tmp]# mkdir test
[root@rbnote tmp]# touch test/file
[root@rbnote tmp]# chown redbaron test/file
[root@rbnote tmp]# ls -lh test/
итого 0
-rw-r--r-- 1 redbaron root 0 Дек 14 16:37 file
[root@rbnote tmp]# cd test/
[root@rbnote test]# git init
Initialized empty Git repository in /tmp/test/.git/
[root@rbnote test]# git add .
#include <boost/spirit/home/x3.hpp>
#include <string>
int main() {
namespace x3 = boost::spirit::x3;
const std::string input = "A\nB\nC";
auto const p = *(x3::char_ >> x3::omit[x3::lit("\n")]);
std::string attr;
auto it = input.begin();
{
packageOverrides = pkgs : rec {
nix = pkgs.stdenv.lib.overrideDerivation pkgs.nix (oldAttrs: {
dontStrip = true;
});
};
}
-module(gcd).
-export([gcd/2, gcd_test/0]).
-spec gcd(integer(), integer()) -> integer().
gcd(A, 0) when is_integer(A)-> A;
gcd(A, B) when is_integer(A), is_integer(B) -> gcd(B, A rem B).
gcd_test() ->
10 = gcd(10, 0),
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.useGoldLinker pkgs.clangStdenv;
in with builtins; stdenv.mkDerivation {
name = "metaproc";
src = ./.;
buildInputs = [
pkgs.re2
pkgs.libyamlcpp
This file has been truncated, but you can view the full file.
# tracer: function_graph
#
# CPU DURATION FUNCTION CALLS
# | | | | | | |
0) 0.045 us | } /* up_write */
0) 2.670 us | } /* vma_link */
0) 0.086 us | uprobe_mmap();
0) | vma_set_page_prot() {
0) 0.060 us | vma_wants_writenotify();
0) 0.330 us | }
<source>
@type tail
path /fluentd/log/main.log
format none
tag x
</source>
<match **>
@type file
path /fluentd/log/output.log
@redbaron
redbaron / nginx_broken.conf
Created May 12, 2016 12:37
Minimal config which breaks openresty lua parser
worker_processes auto;
events {}
worker_rlimit_nofile 11240;
daemon off;
pid /var/run/nginx.pid;
#############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: 3600a09804d542d744d2b4871417a4a52 Last path deleted, disabling queueing
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: 3600a09804d542d744d2b4871417a4a52: map in use
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: 3600a09804d542d744d2b4871417a4a52: can't flush
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: 3600a09804d542d744d2b4871417a4a52: config error, overriding 'no_path_retry' value
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: flush_on_last_del in progress
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: 3600a09804d542d744d2b4871417a4a52: load table [0 62914560 multipath 3 pg_init_retries 50 retain_attached_hw_handler 0 0 0]
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: flush_on_last_del in progress
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: sdg [8:96]: path removed from map 3600a09804d542d744d2b4871417a4a52
Dec 11 17:36:25 internal1-worker1 multipathd[8579]: sdh: remove path (uevent)
Dec 11 17:36:25 internal1-worker