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
This wrapper is necessary to workaround the limitations of the =tramp-methods= specifications + the quirks of =tsh ssh=. | |
#+begin_src sh :tangle /sudo:root@localhost:/usr/local/bin/tsh-tramp-wrapper :tangle-mode (identity #o775) | |
#!/bin/sh | |
set -eu | |
TELEPORT_USER=$1 | |
TELEPORT_NODE=$2 | |
tsh ssh ${TELEPORT_USER}@${TELEPORT_NODE} |
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
### Keybase proof | |
I hereby claim: | |
* I am dangirsh on github. | |
* I am dangirsh (https://keybase.io/dangirsh) on keybase. | |
* I have a public key ASAS9-Ssxj4KgJIXm4J4EJ7emqR_A5j0Q4-ygqy3oxVMNwo | |
To claim this, I am signing this object: |
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
(defun add-to-keymap (keymap bindings) | |
(dolist (binding bindings) | |
(define-key keymap (kbd (car binding)) (cdr binding)))) | |
(defun add-to-dk-keymap (bindings) | |
(add-to-keymap dk-keymap bindings)) | |
;; Example usage with dk and sl |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
#!/bin/bash | |
####################################### | |
# Graphite Install | |
# Run with sudo for best results | |
# | |
####################################### | |
if [[ "$(/usr/bin/whoami)" != "root" ]]; then | |
echo "This script must be run as root or using sudo.Script aborted." | |
exit 1 |