Skip to content

Instantly share code, notes, and snippets.

View dragonde's full-sized avatar
💭
Ready, Steady & Go!

dragonde

💭
Ready, Steady & Go!
View GitHub Profile
@dragonde
dragonde / MathJax.ipynb
Created February 8, 2019 10:38 — forked from cyhsutw/MathJax.ipynb
Grabbed from https://github.com/odewahn/ipynb-examples, converted to v3 for GitHub to render.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
docker run -p 8088:8088 --name ignition -d kcollins/ignition
docker run -p 3306:3306 --name mysql -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=db -e MYSQL_USER=user -e MYSQL_PASSWORD=pass -d mysql
@dragonde
dragonde / 03-pod.sh
Last active January 10, 2024 13:09 — forked from vfarcic/03-pod.sh
wwwminikube start --vm-driver=virtualbox
kubectl get nodes
git clone https://github.com/vfarcic/k8s-specs.git
cd k8s-specs
kubectl run db --image mongo
@dragonde
dragonde / gitlab-upgrade.md
Last active June 15, 2022 12:18
gitlab upgrade

perl -pi -e 's|stretch|buster|g' sources.list

cd sources.list.d

perl -pi -e 's|stretch|buster|g' google-cloud.list perl -pi -e 's|stretch|buster|g' backports.list perl -pi -e 's|stretch|buster|g' gitlab_gitlab-ee.list perl -pi -e 's|stretch|buster|g' google-cloud-monitoring.list perl -pi -e 's|stretch|buster|g' runner_gitlab-runner.list

@dragonde
dragonde / gitlab-fix-commit-graf.md
Last active June 20, 2022 12:42
gitlab: fix commit graf

view last repo failed https://git.yexir.com/admin/projects?last_repository_check_failed=1

root@gitlab-yexir:/var/log/gitlab/gitlab-rails# sudo /opt/gitlab/embedded/bin/git -C /var/opt/gitlab/git-data/repositories/@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.git fsck Checking object directories: 100% (256/256), done. Checking objects: 100% (176419/176419), done. dangling blob ccfcc9f7acbfb9025244e8865d92c71179384ae5 Verifying commits in commit graph: 100% (77/77), done. Verifying commits in commit graph: 100% (507/507), done.

@dragonde
dragonde / aletas.md
Last active July 7, 2022 14:12
alertas.md
  • Redis Servers storage

  • Blackbox monitoring redis, services app, messages/all,

  • Celery Queues

  • Redis: BM 3Minutes + Storage over 650M ALL

  • SQL: daisho, BM 3minutos + CPU alert over 80% for 2 minutes daisho-replica

@dragonde
dragonde / resource-config.md
Last active September 1, 2022 14:11
terraform resource config from GCP

resource config for terraform

gcloud beta resource-config bulk-export --project unique-voice-156214 --resource-types SQLInstance --resource-format terraform

resource "google_sql_database_instance" "daisho_yexir_dup" {
  database_version = "MYSQL_5_7"
  name             = "daisho-yexir-dup"
  project          = "unique-voice-156214"
@dragonde
dragonde / sre-roadmap.md
Last active May 26, 2024 05:17
SRE Roadmap

SRE Roadmap

  1. Scripting and Programming

    • Bash
    • Python
    • Go
  2. Documentation tools

    • Markdown
  • Serializers: YML,JSON
@dragonde
dragonde / binary-logs-error.md
Last active July 13, 2022 08:44
binary logs error

13 Jul 2022

Full re-sync needed due to binary log failure

SHOW BINARY LOGS;

@dragonde
dragonde / utils-linux.md
Last active July 26, 2022 06:49
Utils Linux