Skip to content

Instantly share code, notes, and snippets.

@srghma
Last active October 3, 2018 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srghma/afdc05c44ff751ed463cd9206167c57b to your computer and use it in GitHub Desktop.
Save srghma/afdc05c44ff751ed463cd9206167c57b to your computer and use it in GitHub Desktop.
todo

haskell

https://stackoverflow.com/questions/42174785/multiple-io-effects-in-eff-or-other-ways-for-composable-effects

make 2 example apps using mtl and effects that asks password:

MonadLog should be done 2 ways:

  1. ReaderT - log to file (IO)
  2. StateT - log to string

nix-build-docker-image-unversal

https://stackoverflow.com/questions/43375880/how-to-build-a-docker-container-with-nix http://lethalman.blogspot.com/2016/04/cheap-docker-images-with-nix_15.html https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/examples.nix

make script that makes docker images from nix file, uses plain nix-build if runs in nix host os and nix-build inside docker with /var/run/docker.sock:/var/run/docker.sock if runs not in nix host os

k8s

https://zef.me/kubernetes-make-it-so-240b5d2dd36d

https://offlinehacker.github.io/slides.kubernetes_on_nixos

https://blog.codeship.com/one-command-to-kubernetes-with-docker-compose/

nix to docker-compose

https://github.com/matejc/upaas/blob/master/compose.nix

https://github.com/xtruder/nix-sandbox/blob/master/default.nix

nixos-containers

http://lethalman.blogspot.com/2015/02/nixos-consul-nginx-and-containers.html

  1. how to create container with named host instead of number host
  2. spawn using nix-build, e.g. without import to /etc/configuration.nix (https://nixos.org/nixos/manual/index.html#sec-building-parts)
  3. how to private network between containers, container group? connect containers?

nixify my rails project

https://github.com/NixOS/nixpart/blob/master/default.nix#L19

https://github.com/NixOS/nixpkgs/blob/005628a94b314e72100f0400fb7d6bb4a17c8b2b/pkgs/tools/misc/bepasty/default.nix#L28 (python proj, selenum-python in checkInputs)

https://github.com/NixOS/nixpkgs/blob/56904d7c423f2b13b37fbd29f39bbb4b52bc7824/pkgs/applications/version-management/redmine/bootstrap.nix#L8 (redmine, dont use selenium for testing, still useful as rails project)

NixOS/nixpkgs#15316 (selenium is not working, maybe blocking issue)

https://hydra.nixos.org/build/72063575/download/2/manual/#ex-infrastructure-model (what i want)

read later

https://github.com/freifunkMUC/infra

https://github.com/openlab-aux/vuizvui

render email using react and preview them in storybook

nixpkgs, nginx config -> gzip svg

https://guides.wp-bullet.com/enable-svg-gzip-compression-nginx/

thumbnails on fly

service:

js - there is no js library to enhance images, only https://github.com/imgix/imgix.js/, that is tailored for imgix service

rails projects -> import all stripe records in rails db

gitdo_with_subproject

dotfiles

systemd job to link files automatically or homa-manager systemd job to make gpg and ssh backups to dotfiles automatically

nixfromnpm

why all you can npm2nix generate generators (python files?), why not to store this files in nixfromnpm itself? black box

what about

shell.nix

{ pkgs ? <nixpgs> }:

import ./nix/nixfromnpm.nix


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment