command | description |
---|---|
ctrl + a | Goto BEGINNING of command line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Compilation: | |
* | |
* 1. Without e2fslib: | |
* $ gcc -O2 -o due2fs due2fs.c | |
* | |
* 2. With e2fslib | |
* $ sudo apt-get install e2fslibs-dev | |
* $ gcc -DUSE_E2FSLIB -O2 -o due2fs due2fs.c -lext2fs | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
// return :: Monad m => a -> m a | |
typedef void * /* m a */ return_t(void * /* a */); | |
// type kleisli_arrow a b = a -> m b | |
typedef void * /* m b */ kleisli_arrow(void * /* a */); | |
// bind :: Monad m => m a -> (a -> m b) -> m b |
Just some notes from my attempt at setting up Hydra.
No need for manual database creation and all that; just ensure that your PostgreSQL service is running (services.postgresql.enable = true;
), and then enable the Hydra service (services.hydra.enable
). The Hydra service will need a few more options to be set up, below is my configuration for it:
services.hydra = {
enable = true;
port = 3333;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
container_name: nginx-proxy | |
restart: unless-stopped | |
ports: |
WARNING: THIS GIST IS OUT OF DATE AND NO LONGER RELEVANT
- Native-comp was enabled by default in nixpgks
- Pgtk is not enabled by default, for that you can either override the derivation or use emacsPgtk from the nix-community emacs overlay if you don't want to build it yourself