Skip to content

Instantly share code, notes, and snippets.

Avatar

Maciej Mazur mamciek

  • Poznań, Poland
View GitHub Profile
@mamciek
mamciek / nix-fishgen.py
Last active Sep 14, 2018 — forked from sebastien/nix-fishgen.py
Python script that converts Nix's profile bash script to Fish
View nix-fishgen.py
#!/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 Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View cgrules.service
[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
You can’t perform that action at this time.