Collection of helper tools for working with SB apps
composer --global config repositories.patrick vcs https://github.com/SentryBayLtd/patrick
composer global require sentrybayltd/patrick
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
#!/usr/bin/perl -w | |
# act as a KSysGuard sensor | |
# provides NVIDIA GPU info via `nvidia-settings` | |
# Usage (e.g. add gpu temperature sensor) | |
# 1. save this file, make sure it has a exec permission | |
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine` | |
# 3.1 in new dialog, type `Host` whatever you want | |
# 3.2 set `Connection Type` to `Custom command` |
openssl x509 -noout -text -in /etc/kubernetes/pki/etcd/server.crt |grep Validity -A2 | |
kubeadm alpha certs check-expiration |
kubectl -n kube-system describe secret `kubectl -n kube-system get secret|grep replicaset|cut -d\ -f1`|awk '/^token/{print $NF}' |
- name: remove and recreate directory | |
file: | |
state: "{{ item }}" | |
path: "/path/to/directory/" | |
# owner: 1000 set owner, group, and mode if necessary | |
# group: 1000 | |
mode: '0777' # make it full read and writeable | |
with_items: | |
- absent | |
- directory |
hdiutil mount XQartz.dmg | |
#sudo cp -R "/Volumes/XQartz-X11/XQartz-X11.app" /Applications | |
sudo installer -package /Volumes/XQartz-X11/XQuartz-X11.pkg -target "/Volumes/Macintosh HD" | |
cd ~ | |
hdiutil unmount "/Volumes/XQartz-X11" |
for j in `seq 45`;do for i in `seq 40 1 47`;do echo -e "\e[${i}m\e[2J\e[1;1H";sleep 5;done;echo -e "\e[0m \e[2J";done |