Instructions on how to setup a secured Jenkins CI on a Mac.
All of these operations are done with your admin user.
Install the command line developer tools.
brew install java
brew install jenkins
brew pin jenkins
Create a hidden user for daemon
I hereby claim:
To claim this, I am signing this object:
/* | |
Demonstration sketch for Adafruit LCD backpack | |
using MCP23008 I2C expander | |
Uses the ATTiny 85 (replaces Trinket below) | |
The circuit: | |
* 5V to Arduino 5V pin | |
* GND to Arduino GND pin | |
* Display i2c backpack CLK to Trinket GPIO #2 (Arduino pin 2/attiny85 pin 7) | |
* Display i2c backpack DAT to Trinket GPIO #0 (Arduino pin 0/attiny85 pin 5) |
/* | |
Demonstration sketch for Adafruit LCD backpack | |
using MCP23008 I2C expander | |
Uses the ATTiny 85 (replaces Trinket below) | |
Also hooked up a rotary encoder with a button. | |
The circuit: | |
* 5V to Arduino 5V pin | |
* GND to Arduino GND pin | |
* Display i2c backpack CLK to Trinket GPIO #2 (Arduino pin 2/attiny85 pin 7) |
/* | |
* Adapted by @idcrook for | |
* - Adafruit LCD 16x2 I2C/SPI Backpack | |
* - KY-040 Rotary Encoder with a switch | |
* | |
* Tiny Function Generator with Sine Wave | |
David Johnson-Davies - www.technoblogy.com - 7th March 2018 | |
ATtiny85 @ 8 MHz (internal PLL; BOD disabled) | |
;; sidebar and dired in one | |
(use-package neotree | |
:bind | |
("<f8>" . neotree-toggle) | |
:config | |
;; needs package all-the-icons | |
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)) | |
;; Disable line-numbers minor mode for neotree | |
(add-hook 'neo-after-create-hook |
;; NeoTree can be opened (toggled) at projectile project root | |
(defun neotree-project-dir () | |
"Open NeoTree using the git root." | |
(interactive) | |
(let ((project-dir (projectile-project-root)) | |
(file-name (buffer-file-name))) | |
(neotree-toggle) | |
(if project-dir | |
(if (neo-global--window-exists-p) | |
(progn |
# source kubectl bash completions | |
if hash kubectl 2>/dev/null; then | |
source <(kubectl completion bash) | |
fi | |
# the magic via https://github.com/cykerway/complete-alias | |
# seems to require BASH 4; install bash from Homebrew and make its BASH 4 the default user shell in macOS | |
# mkdir ~/.bash_completion.d | |
# curl -o ~/.bash_completion.d/bash_complete-alias.sh https://raw.githubusercontent.com/cykerway/complete-alias/master/completions/bash_completion.sh | |
if [ -f ~/.bash_completion.d/bash_complete-alias.sh ] ; then |
;; based on http://manuel-uberti.github.io/emacs/2018/02/17/magit-bury-buffer/ | |
;; had to deviate from it since: | |
;; 1. the post's key bind code did not work for me | |
;; 2. added late loading, otherwise magit-status-mode-map undefined | |
;; 3. 'q' was already bound by magit, so use 'Q' instead of rebinding | |
(defun idc-magit-kill-buffers () | |
"Restore window configuration and kill all (of these) Magit buffers." | |
(interactive) | |
(let ((buffers (magit-mode-get-buffers))) | |
(magit-restore-window-configuration) |