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
-- Imports. | |
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Actions.SpawnOn | |
-- import XMonad.Config.Desktop | |
import XMonad.Hooks.EwmhDesktops | |
-- import XMonad.Hooks.SetWMName | |
import XMonad.Layout.NoBorders | |
-- import qualified XMonad.StackSet as W | |
-- import XMonad.Layout.ThreeColumns |
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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
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
# WIP nix derivation for nmon | |
{ lib, fetchurl, stdenv, ncurses, | |
IOKit }: | |
stdenv.mkDerivation rec { | |
name = "nmon"; | |
version = "16g"; | |
src = fetchurl { | |
url = "mirror://sourceforge/nmon/lmon${version}.c"; |
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 | |
# | |
# Cache nix-shell environment | |
# | |
# - watch all *.nix files, ~/.direnvrc and .envrc | |
# - based on https://github.com/direnv/direnv/wiki/Nix | |
# | |
use_nix() { | |
local cache_dir="$HOME/.cache/direnv/$(pwd)" | |
mkdir -p "$cache_dir" |
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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
python = import ./requirements.nix { inherit pkgs; }; | |
in python.mkDerivation { | |
name = "Sprites-0.1.0"; | |
src = ./.; | |
buildInputs = [ | |
]; | |
propagatedBuildInputs = [ | |
pkgs.solc |
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 | |
# | |
# !!! WILL ERASE SELECTED DISK !!! | |
# | |
# Installs nixos with full disk encryption. | |
# | |
# - Prompts for password initially, after that no interaction should | |
# be required. | |
# - At the end it will prompt for a root password, could not make | |
# echo-ing it into nixos-install work. |
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 --git a/src/completion/pass.fish-completion b/src/completion/pass.fish-completion | |
index c32a42c..8878acf 100644 | |
--- a/src/completion/pass.fish-completion | |
+++ b/src/completion/pass.fish-completion | |
@@ -45,9 +45,8 @@ end | |
function __fish_pass_print_entries | |
set -l prefix (__fish_pass_get_prefix) | |
set -l files | |
- eval "set files "$prefix"/**.gpg" | |
+ eval "set files (find "$prefix" -name '*.gpg' | sed 's#$prefix/\(.*\)\.gpg#\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
set tabstop=4 " Number of spaces that a <Tab> in the file counts for. | |
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent. | |
set expandtab " Use the appropriate number of spaces to insert a <Tab>. | |
" Spaces are used in indents with the '>' and '<' commands | |
" and when 'autoindent' is on. To insert a real tab when | |
" 'expandtab' is on, use CTRL-V <Tab>. | |
set smarttab " When on, a <Tab> in front of a line inserts blanks |
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
#!/usr/bin/env python3.6 | |
"""Python replace absolute imports with relative ones. | |
HARDLY TESTED. Use at own risk. | |
Only works from imports of type "from ... import ...". | |
Doesn't fix indentation for multiline imports. | |
Usage: show changes: ./fix_import.py package_directory | |
write changes: ./fix_import.py package_directory write |
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
(lasagne) lulu@lulus ➜ theano git:(master) ✗ CUDA_LAUNCH_BLOCKING=1 THEANO_FLAGS='device=gpu1,exception_verbosity=high,optimizer=fast_compile,optimizer_excluding=conv_dnn,allow_gc=False' cuda-memcheck --tool racecheck python grad2.py | |
========= CUDA-MEMCHECK | |
Using gpu device 1: GeForce GTX 970 (CNMeM is disabled, CuDNN 4007) | |
========= Race reported between Write access at 0x00000370 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) | |
========= and Read access at 0x000003a8 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) [64 hazards] | |
========= | |
========= Race reported between Read access at 0x00000418 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) | |
========= and Write access at 0x00000450 in kernel_reduce_ccontig_node_meb404c8cd39208f6884dd773b584b7d7_0(unsigned int, float const *, float*) [48 hazards] | |
========= and Write access at 0x0000 |