I hereby claim:
- I am rbudiharso on github.
- I am rbudiharso (https://keybase.io/rbudiharso) on keybase.
- I have a public key whose fingerprint is CFCA 9858 2F54 B3F1 980C C4CF A23F C685 7A9A CEB9
To claim this, I am signing this object:
#!/bin/sh | |
# @describe Backup postgresql database | |
# @meta version v1.0.0 | |
# @env DB_URI | |
# @option -d --database $DB_URI database name | |
# @option -f --filename=. folder name to store the backup | |
# @option -r --recipient pgp public key used for encrypting the backup file | |
eval "$(argc --argc-eval "$0" "$@")" |
#!/bin/bash | |
echo "********PROMTAIL SETUP************" | |
promtail_file_config="/etc/promtail/promtail.yml" | |
mkdir -p /etc/promtail | |
promtail_version_manual="v1.6.1" | |
LOKI_URL="http://utilities.usetada.dev:3100/loki/api/v1/push" | |
cat > /etc/systemd/system/promtail.service <<END | |
[Unit] | |
Description=Promtail service |
INFO global: Vagrant version: 2.3.4 | |
INFO global: Ruby version: 2.7.6 | |
INFO global: RubyGems version: 3.1.6 | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/bin/vagrant" | |
INFO global: VAGRANT_LOG="debug" | |
WARN global: resolv replacement has not been enabled! | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/plugins/synced_folders/nfs/plugin.rb |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -x | |
chmod 400 $HOME/.ssh/* | |
git clone [email protected]:rbudiharso/dotfiles.git .dotfiles | |
chmod +x $HOME/.dotfiles/setup.sh | |
$HOME/.dotfiles/setup.sh |
#!/bin/sh | |
set -x | |
# Manual | |
# download dotfiles from gdrive and put them in homedir except config | |
# Automatic | |
chmod 600 $HOME/.kube/config | |
chmod -R 400 $HOME/.ssh/* |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: debug | |
spec: | |
containers: | |
- name: doks-debug | |
image: 'rbudiharso/debug-pod:latest' | |
command: |
#!/bin/bash | |
# create mongodb_exporter.service | |
cat > /etc/systemd/system/mongodb_exporter.service <<END | |
[Unit] | |
Description=mongodb exporter service | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/mongodb_exporter --collect.database --collect.collection --collect.topmetrics --collect.indexusage --mongodb.uri=mongodb+srv://<username>:<password>@<host:port>/?ssl=false |
#!/bin/bash | |
cat > /etc/init.d/node_exporter <<END | |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: node_exporter | |
# Required-Start: \$local_fs \$network \$named \$time \$syslog | |
# Required-Stop: \$local_fs \$network \$named \$time \$syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
#!/bin/bash | |
# create node_exporter.service | |
cat > /etc/systemd/system/node_exporter.service <<END | |
[Unit] | |
Description=node_exporter service | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/node_exporter --collector.systemd |