Skip to content

Instantly share code, notes, and snippets.

View garbas's full-sized avatar
🏠
Working from home

Rok Garbas garbas

🏠
Working from home
View GitHub Profile
diff --unified --recursive --new-file '--ignore-matching-lines=[$]Author.*[$]' '--ignore-matching-lines=[$]Date.*[$]' '--ignore-matching-lines=[$]Header.*[$]' '--ignore-matching-lines=[$]Id.*[$]' '--ignore-matching-lines=[$]Locker.*[$]' '--ignore-matching-lines=[$]Log.*[$]' '--ignore-matching-lines=[$]Name.*[$]' '--ignore-matching-lines=[$]RCSfile.*[$]' '--ignore-matching-lines=[$]Revision.*[$]' '--ignore-matching-lines=[$]Source.*[$]' '--ignore-matching-lines=[$]State.*[$]' '--exclude=.deps' '--exclude=*.gmo' '--exclude=*.Plo' '--exclude=*.Tpo' '--exclude=*.Po' '--exclude=.pc' '--exclude=.gitignore' '--exclude=.hgignore' '--exclude=.bzrignore' '--exclude=.sgignores' '--exclude=config.guess' '--exclude=config.sub' '--exclude=config.cache' '--exclude=config.status' '--exclude=config.log' '--exclude=ltmain.sh' '--exclude=install-sh' '--exclude=depcomp' '--exclude=missing' '--exclude=compile' '--exclude=libtool.m4' '--exclude=ltoptions.m4' '--exclude=ltsugar.m4' '--exclude=ltversion.m4' '--exclude=*.cache' '--ex
diff --unified -rupN 1.8.11/autogen.sh 1.8.10/autogen.sh
--- 1.8.11/autogen.sh 2015-06-16 14:59:46.629498463 +0200
+++ 1.8.10/autogen.sh 2015-06-16 14:59:04.207378616 +0200
@@ -23,10 +23,6 @@
### Run this to produce everything needed for configuration. ###
-# Some shells can produce output when running 'cd' which interferes
-# with the construct 'abs=`cd dir && pwd`'.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
This file has been truncated, but you can view the full file.
diff --unified -rupN 1.8.11/autogen.sh 1.8.10/autogen.sh
--- 1.8.11/autogen.sh 2015-06-16 14:59:46.629498463 +0200
+++ 1.8.10/autogen.sh 2015-06-16 14:59:04.207378616 +0200
@@ -23,10 +23,6 @@
### Run this to produce everything needed for configuration. ###
-# Some shells can produce output when running 'cd' which interferes
-# with the construct 'abs=`cd dir && pwd`'.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
let
pkgs = import <nixpkgs> { };
in pkgs.python27Packages.python.buildEnv.override {
extraLibs = with pkgs.python27Packages; [
ipython
boto
];
postBuild = ''
cd "${pkgs.python27Packages.ipython}/bin"
for prg in *; do
@garbas
garbas / gist:8452cc83470fbd611db8
Created June 12, 2015 09:09
systemd timer + oneoff script
systemd.timers."custom-backup-daily" = {
description = "Daily timer for backup";
enable = true;
timerConfig = {
OnCalendar = "*-*-* 13:00:00";
#OnCalendar = "*-*-* *:*:0/15";
Persistent = true;
Unit = "custom-backup.service";
};
wantedBy = [ "timers.target" ];
@garbas
garbas / gist:b390721b1ede7a2d1374
Last active August 29, 2015 14:21
nix from master *without* --enable-gc configureFlag and enableParallelBuilding = false
GrayWorm@Missandei ~/nix-src
$ nix-build release.nix -A build.\"x86_64-cygwin\" -I nixpkgs=../rcnixpkgs -K
these derivations will be built:
/nix/store/z4w88q94rz5a26kiyaahzfi3ia605lc3-nix-tarball-1.9pre1234_abcdef.drv
/nix/store/35x3jf4nxgh57zisd952xm96xq2g6h16-nix-1.9pre1234_abcdef.drv
building path(s) ‘/nix/store/nx14lz5f3kr9chi6228ks98yi89z5l9q-nix-tarball-1.9pre1234_abcdef’
unpacking sources
unpacking source archive /nix/store/743nd66yw73j3l1dnz1f53cazrg9r1af-nix-src
source root is nix-src
removed '.release.nix.swp'
#!/bin/sh
export PATH=/nix/store/lxa67rgss2l0zx3h3dc63wwxg5i3bzbs-curl-7.42.0/bin:/nix/store/nldpgjkqyvwvxnkxppi8c84gkl857pn0-openssl-1.0.1m/bin:/nix/store/lbv9mvg7fpgdddczmdjvj94m85icanr6-perl-5.20.1/bin:/nix/store/w571a184y6kbrgv9hdic6492k49n4jjn-bzip2-1.0.6/bin:/nix/store/lprsw63q2s0skjvdgbm0qvfg7zwff3sf-pkg-config-0.28/bin:/nix/store/v1qcjhsid7gj193xjmax90h1k1mc33r0-sqlite-3.8.9/bin:/nix/store/rjgiwbrkypzmsbv1rj3hzdc54s2352jh-boehm-gc-7.4.2/bin:/nix/store/1zls9592aqpncnd39p0774a5c9h0mz08-cc-native/bin:${PATH}
exec "$0.exe" "$@"
@garbas
garbas / gist:9cd2fbae4696ec6856f4
Created May 12, 2015 14:06
building nix on cygwin: make installtest has many error
GrayWorm@Missandei ~/nix-src
$ nix-build release.nix -A build.\"x86_64-cygwin\" -I nixpkgs=../rcnixpkgs -K
these derivations will be built:
/nix/store/ngwq4xq8mgw01mazqvfgqzqk8hvfivyc-nix-1.8pre1234_abcdef.drv
building path(s) ‘/nix/store/700mn7a16355cgs5mlap7a8jf34b6grg-nix-1.8pre1234_abcdef’
initPhase
unpacking sources
unpacking source archive /nix/store/jl3hdnlxmb4m7kk3grghysl357rgfaar-nix-tarball-1.8pre1234_abcdef/tarballs/nix-1.8pre1234_abcdef.tar.bz2
source root is nix-1.8pre1234_abcdef
patching sources
@garbas
garbas / traceback
Created May 5, 2015 10:10
building nix-1.9 on cygwin 64
GrayWorm@Missandei ~/nix-1.9pre4103_1f795f9
$ make
CXX src/nix-hash/nix-hash.o
CXX src/libmain/shared.o
CXX src/libstore/build.o
CXX src/libstore/derivations.o
CXX src/libstore/gc.o
CXX src/libstore/globals.o
CXX src/libstore/local-store.o
CXX src/libstore/misc.o
{ tmpdir ? "/custom-tmp"
}:
{
custom_nix = pkgs.stdenv.mkDerivation {
name = "nix-with-custom-tmpdir";
buildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
for script in ${pkgs.nix}/*; do
ln -s $script $out/bin