Skip to content

Instantly share code, notes, and snippets.

View baonq-me's full-sized avatar
🏠
Working from home

quocbao baonq-me

🏠
Working from home
  • Zalo
  • Ho Chi Minh city, Vietnam
View GitHub Profile
@baonq-me
baonq-me / smart_questions.md
Created October 30, 2019 16:06 — forked from hoangtuan151/smart_questions.md
Cách đặt hâu hỏi thông minh

Đặt một câu hỏi thông minh như thế nào

Tác giả

Eric Steven Raymond, Rick Moen

Biên dịch

Hoàng Tuấn Quỳnh, Nguyễn Tiến Hải Bình, Nguyễn Minh Hương

@baonq-me
baonq-me / svg2pdf.bash
Created October 20, 2021 09:37 — forked from s417-lama/svg2pdf.bash
Reliable way to convert an SVG file to a PDF file using headless Chrome
#!/bin/bash
#
# Convert an SVG file to a PDF file by using headless Chrome.
#
if [ $# -ne 2 ]; then
echo "Usage: ./svg2pdf.bash input.svg output.pdf" 1>&2
exit 1
fi
@baonq-me
baonq-me / Ubuntu_Debian_Cloud_images_in_Proxmox.md
Last active November 16, 2021 05:00 — forked from chriswayg/Ubuntu_Debian_Cloud_images_in_Proxmox.md
Ubuntu and Debian Cloud images in Proxmox
@baonq-me
baonq-me / simplerelay.py
Created March 30, 2022 09:55 — forked from JCotton1123/simplerelay.py
Start of simple SMTP relay service in Python
#!/usr/bin/env python
import os
import re
import daemon
import asyncore
import smtpd
class SimpleRelayService(smtpd.PureProxy):
"""Handles processing mail for relay"""
@baonq-me
baonq-me / PVE-HP-ssacli-smart-storage-admin.md
Created July 8, 2022 00:08 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@baonq-me
baonq-me / nginx.conf
Created July 27, 2022 13:47 — forked from baskaran-md/nginx.conf
NginX allow POST on static pages.
# ...
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
@baonq-me
baonq-me / Makefile
Created July 29, 2022 02:22 — forked from huxuan/Makefile
Hello World for LuaJIT FFI/C++ binding.
all: lib run
lib:
g++ -shared -fPIC -o libhello.so libhello.cpp hello.cpp
run:
luajit main.lua
clean:
rm *.so
@baonq-me
baonq-me / build-git.md
Created December 7, 2022 09:54 — forked from egorsmkv/build-git.md
Build git from source code on CentOS 7

Build git from source code

1) Go to https://git-scm.com/ and check out the latest version of Git

Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/
@baonq-me
baonq-me / build-git.md
Created December 7, 2022 09:54 — forked from egorsmkv/build-git.md
Build git from source code on CentOS 7

Build git from source code

1) Go to https://git-scm.com/ and check out the latest version of Git

Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.20.5.tar.gz
tar xf git-2.20.5.tar.gz
cd git-2.20.5/

Download CMake from: https://cmake.org/download/

wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.tar.gz

Compile from source and install

tar zxvf cmake-3.*