Skip to content

Instantly share code, notes, and snippets.

View tranphuquy19's full-sized avatar
🐢
Doraneko

Doraneko tranphuquy19

🐢
Doraneko
View GitHub Profile
@tranphuquy19
tranphuquy19 / libvirt-usage.sh
Created January 16, 2025 17:00
Show Memory and CPU usage of libvirt vms
#!/bin/bash
#
# RAM
#
echo "RAM"
echo "---"
SUM=0
@tranphuquy19
tranphuquy19 / sonarqube.docker-compose.yaml
Created January 15, 2025 18:05
sonarqube.docker-compose.yaml
version: '3'
services:
sonarqube:
image: sonarqube:latest
ports:
- "9000:9000"
environment:
- SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true
volumes:
@tranphuquy19
tranphuquy19 / Vagrant.shared_memory
Last active January 16, 2025 17:15
Libvirt Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
Vagrant.configure("2") do |config|
config.vm.box = "generic/debian12"
config.vm.box_version = "4.3.12"
config.vm.synced_folder ".", "/vagrant",
🔔 @all
🚀 Speed Test Results
📅 2025-01-02 20:55:32
━━━━━━━━━━━━━━━━━━━━
📊 Threshold - Download: 300 Mbps, Upload: 200 Mbps
━━━━━━━━━━━━━━━━━━━━
📍 Server ID: 44677 - FPT Telecom (Da Nang, Vietnam)
@tranphuquy19
tranphuquy19 / Ubuntu_Vagrant_libvirt.md
Created September 5, 2024 09:13 — forked from PaulNeumann/Ubuntu_Vagrant_libvirt.md
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS (and above) Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@tranphuquy19
tranphuquy19 / gh_runner_clean.md
Created August 16, 2024 21:12
Auto clean Github runner
#!/bin/bash

# Create the clean_runner.sh file
cat << 'EOF' > /home/actions-runner/clean_runner.sh
#!/bin/bash

# Check if any job is running
if pgrep -f "./run.sh" > /dev/null
@tranphuquy19
tranphuquy19 / search.js
Created August 14, 2023 15:18
Search value in a json object
function search(obj, value, checkedObjs = [], path = '') {
if (Array.isArray(obj)) {
for (var i = 0; i < obj.length; i++) {
if (obj[i] === value || (typeof obj[i] === 'string' && obj[i].includes(value))) {
return path + '[' + i + ']';
}
}
} else if (typeof obj === 'function') {
var str = obj.toString();
if (str.includes(value)) {
@tranphuquy19
tranphuquy19 / main.tf
Created April 28, 2023 16:34
aws s3 react app
provider "aws" {
access_key = "YOUR GENERATED ACCESS ID"
secret_key = "YOUR GENERATED SECRET KEY"
region = "us-east-1"
}
variable "root_domain_name" {
default = "frontend.domain.tld"
}
@tranphuquy19
tranphuquy19 / disable-defender.bat
Created April 26, 2023 02:23
Disable Windows Defender scripts
@echo off
rem A modified version of the disable defender script from: https://pastebin.com/kYCVzZPz
@echo on
rem ==========================================
rem This section will Disable Windows Defender
rem You can ignore error messages
rem 1 - Disable Real-time protection
reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
Tính năng Istio Linkerd Consul
Thông tin chung
Viết bằng Golang
Mã nguồn mở Có https://github.com/istio/istio Có https://github.com/linkerd/linkerd2 Có https://github.com/hashicorp/consul
Có bản hỗ trợ thương mại Tính năng beta sẵn có trên GCP
Tài liệu hướng dẫn
Được chống lưng bởi Google IBM Buoyant. Các CTO đều là những người làm hạ tầng cho Twitter tách ra để mở công ty riêng HashiCorp. CTO là những người rất trẻ và xây dựng được công ty thành công ty tỷ đô
Phiên bản hiện tại 1.6 2.8 1.8
Kiến trúc sử dụng
Môi trường áp dụng Kubernetes + VM Chỉ có Kubernetes Kubernetes + VM