Skip to content

Instantly share code, notes, and snippets.

@james-nesbitt
james-nesbitt / init.el
Last active March 21, 2023 21:54
emacs
;; Initialize package handling
(require 'package)
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-and-compile

Keybase proof

I hereby claim:

  • I am james-nesbitt on github.
  • I am jamesrnesbitt (https://keybase.io/jamesrnesbitt) on keybase.
  • I have a public key ASBmKfylAiPnpaU_pWiWsLJ5EQWJ18CxVKaeb-q_fXJfdQo

To claim this, I am signing this object:

@james-nesbitt
james-nesbitt / keybase.md
Created May 23, 2017 10:12
KeybaseProof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@james-nesbitt
james-nesbitt / 0_reuse_code.js
Created March 17, 2017 15:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@james-nesbitt
james-nesbitt / wundertools-radify.sh
Last active February 2, 2017 10:24
Wundertools radify shell script
#!/bin/bash
INIT_PATHS="https://raw.githubusercontent.com/wunderkraut/radi-project-wundertoolswrapper/master/.radi/init.yml"
echo "##### RADIFY YOUR WUNDERTOOLS #####
You are about to run a script that will add radi configuration and aids into
your existing project.
This process is meant to radify an existing WUNDERTOOLS D8 project, with no
@james-nesbitt
james-nesbitt / cloud-init.yml
Last active January 17, 2017 08:52
UpCloud Rancher master cloud-init
#cloud-config
write_files:
- path: /etc/rancher.environment
content: |
CATTLE_DB_CATTLE_USERNAME=cattle
CATTLE_DB_CATTLE_PASSWORD=cattle
coreos:
units:
@james-nesbitt
james-nesbitt / kraut-upcloud-cloudinit.yml
Last active December 16, 2016 15:06
Kraut UpCloud cloud-init user-data
#cloud-config
coreos:
units:
- name: "rancher-master.service"
command: "start"
content: |
[Unit]
Description=Rancher Master
@james-nesbitt
james-nesbitt / pr.md
Created November 23, 2016 09:27
Pull Request requirements

[Story number] - short description of PR {3-7 words}

[ paragraph describing in product-owner readable words, what this PR adds ]

[ paragraph describing technical changes in this PR ]

Testing

  1. [testing steps ]
  2. [for quick testing of code ]
@james-nesbitt
james-nesbitt / security.yml
Last active November 17, 2016 09:55
kraut security proposal: sequential rules approach
- Operation: monitor.*
Property:
security.user.role:
- authenticated
- Operation: upcloud.destroy
Property:
security.user.name:
@james-nesbitt
james-nesbitt / security.yml
Last active November 15, 2016 15:57
kraut security.yml proposal
# security.yml
#
# Kraut security limits for operations
#
# FORMAT:
# {operation} :
# {operation property 1}: [ "{valid value 1}", ... ]
# ...
#