$ oc describe AppliedClusterResourceQuota
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 | |
[ -e $XDG_RUNTIME_DIR/OVMF_VARS.fd ] || cp /usr/share/OVMF/OVMF_VARS.ms.fd $XDG_RUNTIME_DIR/OVMF_VARS.fd | |
kvm -smp 2 \ | |
-m 4096 \ | |
-cpu host \ | |
-M q35 \ | |
-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \ |
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
Kerberos + Apache + SVN | |
======================= | |
I did this on Ubuntu server 10.10. Based on this: https://help.ubuntu.com/community/Kerberos | |
1) Make sure the server has appropriate DNS info, e.g.: (/etc/hosts) | |
10.0.1.147 draco.madebysofa.com | |
127.0.0.1 localhost ubuntu |
As configured in my dotfiles.
start new:
tmux
start new with session name:
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/sh | |
# https://bit.ly/2L80Ojm | |
POD=$( oc get pod -n glusterfs | grep heketi | cut -f1 -d' ' ) | |
eval $(oc rsh $POD set | grep -i heketi ) | |
oc rsh $POD heketi-cli --server $SERVER --user admin --secret $HEKETI_ADMIN_KEY |
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
package memcached | |
import ( | |
"context" | |
"reflect" | |
cachev1alpha1 "github.com/example-inc/memcached-operator/pkg/apis/cache/v1alpha1" | |
appsv1 "k8s.io/api/apps/v1" |
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
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
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
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM/PSRemoting configuration and makes the | |
# necessary changes to allow Ansible to connect, authenticate and execute | |
# PowerShell commands. | |
# | |
# Set $VerbosePreference = "Continue" before running the script in order to | |
# see the output messages. | |
# |
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit