Skip to content

Instantly share code, notes, and snippets.

View namhikelo's full-sized avatar
😀
Hello

PHAN HOANG NAM namhikelo

😀
Hello
View GitHub Profile
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 April 24, 2024 14:00
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 April 24, 2024 12:05
How to install acunetix (linux)
@dahlsailrunner
dahlsailrunner / SSL-nginx-Docker.md
Last active June 17, 2024 20:25
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.

@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active June 17, 2024 06:45
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
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active June 19, 2024 00:04
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux