Skip to content

Instantly share code, notes, and snippets.

View redbaron's full-sized avatar

Maxim Ivanov redbaron

View GitHub Profile
{
packageOverrides = pkgs : rec {
nix = pkgs.stdenv.lib.overrideDerivation pkgs.nix (oldAttrs: {
dontStrip = true;
});
};
}
#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();
[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 .
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'