Skip to content

Instantly share code, notes, and snippets.

Tobias Pflug gilligan

Block or report user

Report or block gilligan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gilligan
gilligan / poetry.lock
Created Jan 20, 2020
poetry weirdness
View poetry.lock
[[package]]
category = "main"
description = "A database migration tool for SQLAlchemy."
name = "alembic"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "1.0.10"
[package.dependencies]
Mako = "*"
View i3-on-plasma.md

i3 configuration

First of some fixes for your i3 config:

# Plasma compatibility improvements
for_window [title="Desktop — Plasma"] kill; floating enable; border none
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable

for_window [class="systemsettings"] floating enable
View lens-881.txt
nix-repl> :b haskell.packages.ghc881.lens
builder for '/nix/store/vww3skk5wbd0yvg051zcy2x3k96h3sp9-lens-4.17.1.drv' failed with exit code 1; last 10 log lines:
[17 of 83] Compiling Control.Lens.Internal.Zoom ( src/Control/Lens/Internal/Zoom.hs, dist/build/Control/Lens/Internal/Zoom.p_o )
cc1: error: command line option ‘-traditional’ is valid for the driver but not for C
<no location info>: error:
`cc' failed in phase `C Compiler'. (Exit code: 1)
[80 of 83] Compiling Paths_lens ( dist/build/autogen/Paths_lens.hs, dist/build/Paths_lens.p_o )
cc1: error: command line option ‘-traditional’ is valid for the driver but not for C
View foo.md

small nixpkgs-tungsten workshop

The purpose of this workshop is to give you enough context and information to enable you to build packages from the nixpkgs-tungsten repository - especially the vrouter kernel modules. In this workshop we will:

  • Install & Configure Nix
  • Learn basic commands for building and installing packages
  • Build & Install packages from nixpkgs-tungsten
View contrail-build-error.txt
INFO: Target platform: centos:7.4.1708
INFO: Contrail version: dev
INFO: OpenStack version: queens
INFO: OpenStack subversion (minor package version): 1
INFO: Contrail registry: 172.17.0.1:6666
INFO: Contrail repository: http://172.17.0.1:6667/
INFO: Contrail container tag: queens-dev
INFO: Contrail generic base extra rpms: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
INFO: Contrail base extra rpms: https://repos.fedorapeople.org/repos/openstack/openstack-queens/rdo-release-queens-1.noarch.rpm
INFO: yum additional repos to enable:
View ghc-versions.sh
#!/usr/bin/env bash
nix-instantiate --json --eval -E "with import <nixpkgs> {}; lib.attrNames haskell.compiler" | jq "." | grep "ghc...\""
View spotify-control.sh
#!/bin/sh
if [ $# -lt 1 ]
then
echo "No command?"
exit
fi
if [ "$(pidof -s .spotify-wrapped)" = "" ]
then
@gilligan
gilligan / error.txt
Created Dec 10, 2018
What's going on?
View error.txt
copying path '/nix/store/cq155md2522yhjyzyxvxpy8rds1wiva3-source' from 'https://cache.nixos.org'...
these derivations will be built:
/nix/store/alzxdc6ns0bxrglwbl0841x11pvm1i0v-docker-image-sitespeedio-sitespeed.io-latest.tar.drv
/nix/store/n24rwcn6x5sikddb0pvfhx2bfs8ximns-docker-layer-sitesped-runner.drv
/nix/store/zd8wp7xq0zqy0pnfblmv21zy5xj2p2bb-runtime-deps.drv
/nix/store/iy0d8v2cxw0q4v84kw25dzig6fwcfh5p-docker-image-sitesped-runner.tar.gz.drv
building '/nix/store/alzxdc6ns0bxrglwbl0841x11pvm1i0v-docker-image-sitespeedio-sitespeed.io-latest.tar.drv'...
building '/nix/store/n24rwcn6x5sikddb0pvfhx2bfs8ximns-docker-layer-sitesped-runner.drv'...
time="2018-12-10T12:07:58Z" level=fatal msg="Invalid source name docker://sitespeedio/sitespeed.io@sh256:8ad85e4556ab214e4a5a38dfc8f84e9b3da07114c2414700eb9b8a69092f7071: unsupported digest algorithm"
builder for '/nix/store/alzxdc6ns0bxrglwbl0841x11pvm1i0v-docker-image-sitespeedio-sitespeed.io-latest.tar.drv' failed with exit code 1
@gilligan
gilligan / day3Part1.hs
Last active Dec 8, 2018
Advent of Code - Day 3 Part 1
View day3Part1.hs
import Data.List (group, sort)
import Text.Trifecta
data FabricRect = FabricRect { fId :: Integer
, fWidth :: Integer
, fHeight :: Integer
, fX :: Integer
, fY :: Integer
} deriving (Show)
View zshrc
# Path to your oh-my-zsh installation.
ZSH=$(nix-env -q --out-path oh-my-zsh | cut -f 3 -d' ')/share/oh-my-zsh
ZSH_THEME="obraun"
DISABLE_AUTO_UPDATE="true"
plugins=(git)
# User configuration
You can’t perform that action at this time.