Skip to content

Instantly share code, notes, and snippets.

View rummik's full-sized avatar
💤
Sleeping to escape reality

*Kim Zick rummik

💤
Sleeping to escape reality
View GitHub Profile
@rummik
rummik / shell.nix
Created July 9, 2020 14:19
ZSH Python venv shell.nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
name = "python-env";
buildInputs = [
python3
];
@rummik
rummik / curl-gnutls-3.patch
Created March 15, 2020 23:00
Immersed VR NixOS package
--- a/lib/libcurl.vers.in 2020-03-12 05:33:59.367082951 +0000
+++ b/lib/libcurl.vers.in 2020-03-12 05:33:59.368082948 +0000
@@ -11,3 +11,8 @@
global: curl_*;
local: *;
};
+CURL_@CURL_LT_SHLIB_VERSIONED_FLAVOUR@3
+{
+ global: curl_*;
+ local: *;
61 buildInputs = [ │
1 ¦ stdenv.cc.cc │
2 ¦ cairo │ 3 ¦ curl_.out │
4 ¦ fontconfig │
5 ¦ gdk-pixbuf │
6 ¦ glib │ 7 ¦ glibc │
8 ¦ gtk3 │
9 ¦ libgcrypt │
10 ¦
@rummik
rummik / nix-shell-wrapper
Last active November 29, 2019 20:11
WIP nix shell wrapper for Zsh with `--rcfile` support
#!/usr/bin/env zsh
zmodload -F zsh/zutil b:zparseopts
zparseopts -A args -- \
-rcfile::
if [[ ! -v args[--rcfile] ]]; then
exec zsh --interactive
fi
# hist-ignore-space is set to prevent our eval from remaining in history
@rummik
rummik / shell.nix
Created November 6, 2019 03:47
Nix Shell Python virtualenv
{ stdenv ? import <nixpkgs> {} }:
let
inherit (stdenv) pkgs mkShell;
inherit (stdenv.lib) flatten;
in
mkShell rec {
@rummik
rummik / jiraColumnToggle.user.js
Last active July 30, 2019 17:51 — forked from pwilms/jiraColumnToggle.user.js
Toggle Jira Columns
// ==UserScript==
// @name Jira Column Toggle
// @namespace https://gist.github.com/rummik/f34ab0165cdd2aa34d8cdf3adb16082f
// @version 0.7
// @description toggle single columns with a click
// @author Patric Wilms, *Kim Zick
// @match */secure/RapidBoard.jspa*
// @updateURL https://gist.github.com/rummik/f34ab0165cdd2aa34d8cdf3adb16082f/raw/jiraColumnToggle.user.js
// @downloadURL https://gist.github.com/rummik/f34ab0165cdd2aa34d8cdf3adb16082f/raw/jiraColumnToggle.user.js
// @grant none
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@rummik
rummik / shell.nix
Created November 12, 2018 14:42
Electron nix-shell FHS fiddlings
{
pkgs ? import <nixpkgs> {},
unstable ? import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {},
buildFHSUserEnv ? opt: (unstable.buildFHSUserEnv opt).env,
}:
buildFHSUserEnv rec {
name = "electron-env";
targetPkgs = p: (with pkgs;
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "shellcast-web";
buildInputs = [
nodejs-8_x
(yarn.override { nodejs = nodejs-8_x; })
];
@rummik
rummik / 11-lain
Last active January 15, 2017 10:07
A fun addition to MOTDs
#!/bin/sh
# /etc/update-motd.d/11-lain
sed -e 's/1/ /g' -e 's/2/ /g' <<'LAIN'
2.+h-`
`-:`1
` ``.--..` ``
./yh-``-ohdmNNmdhs:` -hh+-`