Skip to content

Instantly share code, notes, and snippets.

View mamciek's full-sized avatar

Maciej Mazur mamciek

  • Poznań, Poland
View GitHub Profile
@mamciek
mamciek / nix-fishgen.py
Last active September 14, 2018 12:51 — forked from sebastien/nix-fishgen.py
Python script that converts Nix's profile bash script to Fish
#!/usr/bin/env python3
import re, sys, os
"""
Converts the Nix profile SH script to a Fish-compatible profile using a
simple line-by-line replace algorithm.
"""
# Regular expressions for things we need to rewrite
RE_TEST = re.compile("\[([^\]]+)\]")
@mamciek
mamciek / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
[Unit]
Description=Control Group rules service
# The service should be able to start as soon as possible,
# before any 'normal' services:
DefaultDependencies=no
Conflicts=shutdown.target
Before=basic.target shutdown.target
After=cgconfig.service