Skip to content

Instantly share code, notes, and snippets.

@anhvandev
anhvandev / basic_security.sh
Last active May 28, 2025 16:42
Basic security vps
#!/bin/bash
# Linux Server Hardening Script for AlmaLinux and Ubuntu
# Author: DevOps Expert
# Version: 1.0
set -euo pipefail
# Colors for output
RED='\033[0;31m'
@anhvandev
anhvandev / install.sh
Last active March 29, 2025 07:21 — forked from mscribellito/install.sh
Install GUI and XRDP for AlmaLinux 9
#!/bin/bash
dnf update -y
adduser your_username && passwd your_username # create and change password
usermod -aG wheel your_username
dnf groupinstall "Server with GUI" -y
systemctl set-default graphical.target
# Cài đặt
sudo apt-get install fcitx-unikey
# Config cho hệ thống dùng fcitx thay cho ibus.
# Nếu sau này muốn đổi lại dùng ibus thì chạy tương tự.
im-config -n fcitx
# Nếu bạn dùng Ubuntu 14.04 hoặc một distro dựa trên
# bản đó thì phải cài thủ công một file nữa do gói
# cài đặt của repo bị thiếu. Các bản sau không bị.
@anhvandev
anhvandev / package.json
Created July 28, 2020 03:16 — forked from adamreisnz/package.json
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",