GitLab recently decided to silently delete any repositories that hadn't been accessed in the last year. The announcement didn't go over well and they soon caved to public pressure and decided to instead back up inactive repos to object storage instead of unilaterally deleting them. I'm glad they reconsidered, but the experience left me with a bad taste in my mouth, so I decided to look into (relatively) low
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 | |
# Fetch emails from Amazon S3 (deposited by the Amazon SES receiver's S3 action) | |
# and feed to procmail. In the spirit of fetchmail, but using S3 instead of SMTP. | |
BUCKET=my-bucket-name | |
export AWS_PROFILE=my-aws-profile | |
PROCMAIL="/usr/bin/procmail" |
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
# Starter pipeline | |
# Start with a minimal pipeline that you can customize to build and deploy your code. | |
# Add steps that build, run tests, deploy, and more: | |
# https://aka.ms/yaml | |
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' |
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
from email.parser import Parser | |
import quopri | |
def decode_email(msg_str): | |
p = Parser() | |
message = p.parsestr(msg_str) | |
decoded_message = '' | |
for part in message.walk(): | |
charset = part.get_content_charset() | |
if part.get_content_type() == 'text/plain': |
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
yum -y install bzip2-devel libtiff-devel giflib-devel ghostscript-devel libwmf-devel jasper-devel libtool-ltdl-devel libXext-devel libXt-devel librsvg2-devel OpenEXR-devel libwebp-devel | |
rpm -ivh http://vault.centos.org/centos/7/updates/Source/SPackages/ImageMagick-6.7.8.9-15.el7_2.src.rpm | |
sed -i '/BuildRequires:\tghostscript-devel/a BuildRequires:\tlibwebp-devel' /root/rpmbuild/SPECS/ImageMagick.spec | |
sed -i '/Requires: pkgconfig/a Requires: libwebp' /root/rpmbuild/SPECS/ImageMagick.spec | |
rpmbuild -ba /root/rpmbuild/SPECS/ImageMagick.spec | |
# actual install | |
rpm -Uvh --force /root/rpmbuild/RPMS/x86_64/ImageMagick-6.7.8.9-15.el7.centos.x86_64.rpm |
Prerequisites:
- Run
minikube
withkvm
driver by$ minikube start --vm-driver kvm
Minio FS mode:
- Deploy minio in fs mode with below yaml in a file like
$ kubectl create -f my-minio-fs.yaml
## Create persistent volume claim for minio to store data.
apiVersion: v1
kind: PersistentVolumeClaim
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
# Generates list of jenkins plugins compatible with /usr/local/bin/install-plugins.sh (distributed in jenkins Docker) | |
# The output of this command (colon-separated list of items like 'htmlpublisher:1.23') should be | |
# passed as an input for /usr/local/bin/install-plugins.sh script | |
curl -u $JENKINS_USER:$JENKINS_PASSWORD \ | |
"http://localhost:8080/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins" | \ | |
perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)(<\/\w+>)+/\1 \2\n/g' | \ | |
sed 's/ /:/' | sort |
https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS158x+2T2019
CNCF: Graduated projects:
Kubernetes for container orchestration
Prometheus for monitoring
Envoy for service mesh
CoreDNS for service discovery
containerd for container runtime
NewerOlder