Skip to content

Instantly share code, notes, and snippets.

Avatar

Lucas Savva m1cr0man

View GitHub Profile
@m1cr0man
m1cr0man / cmd.sh
Last active Jan 4, 2020
configuration for nixos-generate
View cmd.sh
export NIX_PATH=nixpkgs=$(pwd)/nixpkgs # Using current nixos-unstable
nixos-generate -f kexec -c kexec_configuration.nix 2>&1 | tee generate.log
@m1cr0man
m1cr0man / legoacme.nix
Created Nov 4, 2019
Implementation of NixOS/nixpkgs#63613 supporting wildcards
View legoacme.nix
# Taken from https://github.com/NixOS/nixpkgs/pull/63613
# Also incoroporates patches from https://github.com/NixOS/nixpkgs/pull/63613#issuecomment-531471460
# TODO delete this when PR is merged, and switch usages of legoCerts to certs
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.security.acme;
directory = "/var/lib/acme";
@m1cr0man
m1cr0man / httpd.conf
Created Oct 6, 2019
NixOS php-fpm and apache - the crucial lines!
View httpd.conf
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/phpfpm-nextcloud/nextcloud.sock|fcgi://localhost/"
</FilesMatch>
View configuration.nix
{ pkgs, ... }:
{
services.glusterfs = {
enable = true;
};
services.nfs.server.enable = true;
nixpkgs.overlays = [
(self: super: {
@m1cr0man
m1cr0man / override.nix
Created Jun 16, 2019
Building nodejs package with native dependencies
View override.nix
{pkgs ? import /root/nixpkgs {
inherit system;
}, system ? builtins.currentSystem}:
let
nodePackages = import ./default.nix {
inherit pkgs system;
};
in
nodePackages // {
@m1cr0man
m1cr0man / ModManager.yaml
Last active Jun 8, 2019
[1.0] Rimworld Planetary Domination Collection
View ModManager.yaml
Version: 1
Name: m1cr0pack_5
Mods:
- Id: 1544705976
Name: ModCheck
- Id: Core
Name: Core
- Id: 962732083
Name: RuntimeGC
- Id: 1507748539
@m1cr0man
m1cr0man / localpip.sh
Created Dec 30, 2018
Script to link binaries from virtualenv to a dir in PATH
View localpip.sh
#!/bin/bash
IGNORED="
activate
activate.csh
activate.fish
activate_this.py
easy_install
easy_install-3.6
pip
@m1cr0man
m1cr0man / output.txt
Created Dec 30, 2018
Ansible #50399 sample
View output.txt
PLAY [baremetal] **************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************************************************************************************************************************
ok: [myserver]
TASK [hello-world imported] ***************************************************************************************************************************************************************************************************************************************************
changed: [myserver]
TASK [debug] ************************************************************************************************************************************************************
@m1cr0man
m1cr0man / update.txt
Created Dec 30, 2018
SmartOS Ansible imgadm module Docker support
View update.txt
PLAY [baremetal] **************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************************************************************************************************************************
ok: [myserver]
TASK [hello-world imported] ***************************************************************************************************************************************************************************************************************************************************
changed: [myserver]
TASK [debug] ************************************************************************************************************************************************************
@m1cr0man
m1cr0man / ModsConfig.xml
Last active Jan 26, 2018
[B18] M1cr0man's Modpack Load Order
View ModsConfig.xml
<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
<buildNumber>1722</buildNumber>
<activeMods>
<li>Core</li>
<li>704181221</li>
<li>818773962</li>
<li>868415092</li>
<li>1206252020</li>
<li>725952322</li>
You can’t perform that action at this time.