Skip to content

Instantly share code, notes, and snippets.

@tcminh1987
tcminh1987 / container_update.rsc
Created June 19, 2025 08:37 — forked from belthesar/container_update.rsc
Mikrotik Container Update Script
:local containerToUpdate
:set $containerToUpdate "name-of-container"
:local containerVeth
:set $containerVeth "container-veth-interface"
:local containerImage
:set $containerImage "org/image:tag"
:local containerEnvlist
@tcminh1987
tcminh1987 / hosts
Last active July 12, 2025 01:36
DNS
This file has been truncated, but you can view the full file.
# Title: StevenBlack/hosts
#
# This hosts file is a merged collection of hosts from reputable sources,
# with a dash of crowd sourcing via GitHub
#
# Date: 05 April 2025 23:36:51 (UTC)
# Number of unique domains: 133,640
#
# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
# Project home page: https://github.com/StevenBlack/hosts
@tcminh1987
tcminh1987 / vmware.md
Created December 6, 2024 07:18 — forked from ayebrian/vmware.md
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
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/
@tcminh1987
tcminh1987 / custom-telegram.py
Created October 23, 2024 01:34 — forked from vncloudsco/custom-telegram.py
Wazuh config integration alert telegram
#!/usr/bin/env python
import sys
import json
import requests
import logging
import urllib
import urllib2
from requests.auth import HTTPBasicAuth
reload(sys)
@tcminh1987
tcminh1987 / enterprise_token.rb
Created July 24, 2024 01:49 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@tcminh1987
tcminh1987 / ubuntu-hardening.md
Created June 15, 2024 13:13 — forked from lokhman/ubuntu-hardening.md
List of things for hardening Ubuntu

WARNING

May contain out of date information. Check the comments below!

The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

@tcminh1987
tcminh1987 / ubuntu-server-hardening.md
Created June 15, 2024 13:12 — forked from mirajehossain/ubuntu-server-hardening.md
ubuntu-server-hardening checklist

Ubuntu-Server-Hardening

1. Secure Shared Memory

What is shared memory?

Shared memory is an efficient means of passing data between programs. Because two or more processes can use the same memory space, it has been discovered that, since shared memory is, by default, mounted as read/write, the /run/shm space can be easily exploited. That translates to a weakened state of security.

If you’re unaware, shared memory can be used in an attack against a running service. Because of this, you’ll want to secure that portion of system memory.