Skip to content

Instantly share code, notes, and snippets.

View namhikelo's full-sized avatar
😀
Hello

Phan Hoang Nam namhikelo

😀
Hello
View GitHub Profile
@afriza
afriza / proxmox-mikrotik.md
Last active May 7, 2025 01:16
install Mikrotik CHR on ProxMox Virtual Environment 8.3.0
  • create bridges for use by mikrotik CHR
  • create VM with VM ID 100 without any media (also delete existing scsi0 disk in the wizard)
ver=7.16.2
wget https://download.mikrotik.com/routeros/$ver/chr-$ver.img.zip
apt update
apt install unzip
unzip chr-$ver.img.zip
qemu-img resize -f raw chr-$ver.img 256M
# number 100 below is the VM ID
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
# update the Apt cache and upgrade the current packages of system
sudo apt update && sudo apt upgrade
# nstall few dependencies required
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
# Add the Ondrej PPA
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
@kalaspuffar
kalaspuffar / ceph-rados-gateway.md
Last active August 20, 2024 06:18
Simple installation of a Ceph RADOS gateway
sudo apt install radosgw

sudo mkdir -p /var/lib/ceph/radosgw/ceph-rgw.`hostname -s`
sudo ceph auth get-or-create client.rgw.`hostname -s` osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.`hostname -s`/keyring

[client.rgw.n1]
host = n1
keyring = /var/lib/ceph/radosgw/ceph-rgw.n1/keyring
log file = /var/log/ceph/ceph-rgw-n1.log
@Ademking
Ademking / README.md
Last active March 17, 2025 13:15
How to install acunetix (linux)
@dahlsailrunner
dahlsailrunner / SSL-nginx-Docker.md
Last active June 30, 2025 18:16
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@anpleenko
anpleenko / install_wimbox.sh
Created June 10, 2020 09:14
Winbox on Ubuntu 20.04 Desktop
sudo apt-get install wine -y
wget http://www.mikrotik.com/download/winbox.exe
sudo mv winbox.exe /bin
wine /bin/winbox.exe
# alias winbox='wine /bin/winbox.exe'
@moaj257
moaj257 / DigitalOcean-LAMP-Wordpress-Ubuntu.md
Last active November 13, 2023 06:27
Install WordPress with LAMP on Ubuntu 18.04

After configuring your Digital Ocean Server using my previous gist, you may follow this. Else go to my previous gist https://gist.github.com/moaj257/2d1a602fcec3f3dd9afd5f667119d342.

Step 1: Create a MySQL Database and User for WordPress

To get started, log into the MySQL root (administrative) account by issuing this command:

mysql -u root -p

Create a new database for a new wordpress installation. I am using wordpress as the database name.

@linuxkathirvel
linuxkathirvel / mysql57-in-centos7.md
Last active June 21, 2025 02:38
Install MySQL 5.7 in CentOS7/RHEL7

MySQL 5.7 installation in CentOS 7

sudo su

# Remove MariaDB packages
yum list installed | grep -i maria
yum remove mariadb.x86_64
yum remove mariadb-libs.x86_64

# Download MySQL 5.7 RPM tar
@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active June 30, 2025 19:16
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program