start new:
tmux
start new with session name:
tmux new -s myname
function(newDoc, oldDoc, userCtx) { | |
if (userCtx.roles.indexOf('_admin') !== -1) { | |
return; | |
} else { | |
throw({forbidden: 'Only admins may edit the database'}); | |
} | |
} |
(use '[clojure.string :only [trim replace]] | |
'[clojure.pprint :only [cl-format] :rename {cl-format format}]) | |
(defn- unspace [s] | |
(trim (replace s " " ""))) | |
(defn decode [bitstring] | |
"\"01100110 01101111 01101111\" -> \"foo\" | |
Whitespace in the input string is ignored." |
/* Pulled from Skeleton by dhg https://github.com/dhg/Skeleton/ | |
Literally just the grid system and small utilities, | |
you're expected to write your own CSS. */ | |
/* Grid | |
–––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
.container { | |
position: relative; | |
width: 100%; |
# coding: utf8 | |
""" | |
This script helps to import content from a Ghost blog database to Jekyll. | |
The database is expected to be running on a reachalbe MySQL host. | |
See the very end for DB configuration. | |
Quick Usage: | |
pip install -r requirements |
#!/usr/bin/env bash | |
set -o xtrace -o errexit -o pipefail -o nounset | |
######################################################################################## | |
# CircleCI's current recommendation for roughly serializing a subset | |
# of build commands for a given branch | |
# | |
# circle discussion thread - https://discuss.circleci.com/t/serializing-deployments/153 | |
# Code from - https://github.com/bellkev/circle-lock-test |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
{ config, pkgs, lib, ... }: | |
{ | |
# This sway config is mostly based on https://nixos.wiki/wiki/Sway | |
# which integrates sway with systemd in the style described here | |
# https://github.com/swaywm/sway/wiki/Systemd-integration | |
# and the replies in https://github.com/NixOS/nixpkgs/issues/57602 | |
# with some individual packages added/removed and using sddm as the display manager. | |
# | |
# Take care to start the correct target as described by the sway proejct wiki. |
In order to keep filters up to date, please use this repo.