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
# get the duration (in minutes) of a to-be-burnt audio-cd, based on mp3 files | |
echo "$(sox --info -D * | awk '{s+=$1} END {print s}')/60" | bc | |
# after manual order, preview | |
ls -v | xargs -I {} mplayer {} |
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
# leapfroging tips from the past into the future | |
# workstation backup and restore checks | |
# 1. backup-tasks | |
# 2.0. shared-install | |
# 2.1. personal-install | |
# 2.2. work-install | |
# 3. firefox config |
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
# | |
# kubectl logic to launch a manual execution of a cronjob | |
# controlls that current cronjob is not active (non idempotent development) | |
# | |
echo "manual launch of cronjob ..." | |
try{ | |
echo "checking if cronjob is active..." | |
sh "if [[ \$(kubectl get cronjob.batch/processor-batch -o=jsonpath='{.status.active}' | wc -c) -gt 0 ]] ; then \$( return -1); fi" |
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
# | |
# dirty but easy k8s manifest deployment vía tf | |
# | |
# if ordered deployment is required, use numeric convention | |
# eg: | |
# $ ls -1 | |
# 0.namespace.yaml | |
# 1.crd.yaml | |
# 2.secrets.yaml | |
# 3.configmap.yaml |
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
``` | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: dashboard-viewonly | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- configmaps |
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
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: jenkins-pvc | |
namespace: tools | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
# | |
# $ python3 playmoss2mp3.py {playmoss_playlist_url} | |
# ex. | |
# $ python3 playmoss2mp.py https://playmoss.com/en/wideawakening/playlist/2019-wideawakening-legacy | |
# | |
# | |
import requests | |
import youtube_dl | |
import os,sys |