This file contains hidden or 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
My mastodon account: https://pdx.social/web/@ConsoleWitch |
This file contains hidden or 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
" Set leader key for quick commands | |
let mapleader = " " | |
" encode "to sixty four" and "from sixty four" | |
vnoremap <leader>tsf c<c-r>=system('base64', @")<cr><esc> | |
vnoremap <leader>fsf c<c-r>=system('base64 --decode', @")<cr><esc> | |
" Show line numbers | |
set number |
This file contains hidden or 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
# splitting panes with | and - | |
bind | split-window -h | |
bind - split-window -v | |
# enable mouse scrolling through backlog | |
#set -g mouse on | |
# Set vi as the default editor | |
set-window-option -g mode-keys vi | |
bind-key -T copy-mode-vi 'v' send -X begin-selection |
This file contains hidden or 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
properties([ | |
buildDiscarder( | |
logRotator( | |
artifactDaysToKeepStr: '', | |
artifactNumToKeepStr: '', | |
daysToKeepStr: '60', | |
numToKeepStr: '' | |
) | |
), |
This file contains hidden or 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
properties([ | |
buildDiscarder( | |
logRotator( | |
artifactDaysToKeepStr: '', | |
artifactNumToKeepStr: '', | |
daysToKeepStr: '60', | |
numToKeepStr: '' | |
) | |
), | |
pipelineTriggers([githubPush()]) |
This file contains hidden or 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 | |
set -e | |
# if parameters that start with '-' were passed to the script via the CMD directive then concat | |
# them to the string 'mongod' | |
if [ "${1:0:1}" = '-' ]; then | |
set -- mongod "$@" | |
fi | |
# if the last conditional statement was triggered or if we're running without any parameters |
This file contains hidden or 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
--- | |
- name: "Disable swap" | |
command: "swapoff -a" | |
- name: "Remove swap from fstab" | |
lineinfile: | |
path: /etc/fstab | |
state: absent | |
regexp: '^.*(\t| )swap(\t| )sw(\t| ).*$' |
This file contains hidden or 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
import re | |
import fileinput | |
import sys | |
old_caps_underscored_var=sys.argv[1] | |
old_lower_underscored_var=old_caps_underscored_var.lower() | |
old_lower_dashed_var=old_lower_underscored_var.replace("_","-") | |
new_caps_underscored_var=sys.argv[2] | |
new_lower_underscored_var=new_caps_underscored_var.lower() |
This file contains hidden or 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 is *a* way to deploy kubernetes manifests with ansible but it doesn't currently work very well.. | |
# the python library that ansible uses to call kubernetes isn't up to date. See the following link for details | |
# https://github.com/ansible/ansible/issues/36676#event-1510125400 | |
#- name: "install requirements for ansible k8s_raw module" | |
# pip: | |
# name: "{{ item.name }}" | |
# version: "{{ item.version }}" | |
# state: present with_items: | |
# - { name: "openshift", version: "0.5.0" } |
NewerOlder