Skip to content

Instantly share code, notes, and snippets.

@joepie91
joepie91 / hydra.md
Created November 26, 2017 09:31
Hydra notes

Just some notes from my attempt at setting up Hydra.

Setting up on NixOS

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;
{ config, lib, pkgs, ...}:
with lib;
{
nix.package = pkgs.nixUnstable;
nix.trustedUsers = [ "hydra" ];
nix.binaryCaches = [ "http://cache.example.org" "https://cache.nixos.org" ];
nix.buildMachines = [
#! /usr/local/bin/fish
if test -n "$HOME" ;
set -xg NIX_LINK "$HOME/.nix-profile"
# Set the default profile.
if not test -L "$NIX_LINK" ;
echo "creating $NIX_LINK" >&2
set -l _NIX_DEF_LINK /nix/var/nix/profiles/default
/nix/store/cdybb3hbbxf6k84c165075y7vkv24vm2-coreutils-8.23/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
end
(defrecord Server [service-map]
component/Lifecycle
(start [component]
(info :msg "Starting server.")
(let [server (bootstrap/create-server (:service-map service-map))]
(bootstrap/start server)
(assoc component :server server)))
(stop [component]
(info :msg "Stopping server.")
(update-in component [:server] bootstrap/stop)))
@juliangamble
juliangamble / gist:7e9692a2840227c950a8
Created September 28, 2014 04:28
References from Nada Amin's StrangeLoop Talk 'Programming Should Eat Itself'
Here is a reference to the part of the video where the slides are listed:
https://www.youtube.com/watch?v=SrKj4hYic5A&feature=youtu.be&t=28m
Here are the references:
SMITH - Reflection and Semantics in Lisp - 1983
http://www-public.it-sudparis.eu/~gibson/Teaching/CSC7322/ReadingMaterial/Smith84.pdf
WAND & FRIEDMAN - The Mystery of the Tower in Lisp - 1986
http://www.cs.indiana.edu/pub/techreports/TR196.pdf
@aloiscochard
aloiscochard / qsbt.sh
Last active March 5, 2018 21:34
QuickSBT - Launch SBT with support for generating /tmp/sbt.quickfix file for Vim
#!/usr/bin/env bash
############
# QuickSBT #
############
# Launch SBT with support for generating /tmp/sbt.quickfix file for Vim
# http://github.com/aloiscochard / https://gist.github.com/4698501
# Error format for SBT, and shortcut to open SBT quickfix file :
@gusano
gusano / gist:4065181
Created November 13, 2012 10:53
Highlight SuperCollider evaluated code via pulse
diff --git a/editors/scel/el/sclang-interp.el b/editors/scel/el/sclang-interp.el
index b254038..ce38fed 100644
--- a/editors/scel/el/sclang-interp.el
+++ b/editors/scel/el/sclang-interp.el
@@ -545,7 +545,8 @@ if PRINT-P is non-nil. Return STRING if successful, otherwise nil."
(interactive "P")
(let ((string (sclang-line-at-point)))
(when string
- (sclang-eval-string string (not silent-p)))
+ (sclang-eval-string string (not silent-p))
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 27, 2024 00:18
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname