Skip to content

Instantly share code, notes, and snippets.

Install LAMP environment on Amazon Linux 2023 with latest NextCloud.

This userdata is only for Amazon Linux 2023 on EC2

With this script, you can install a full LAMP environment with auto Let's Encrypt credential issuing on Amazon Linux 2023 without any 3rd party repository.

Requirements

  • Operation System: Amazon Linux 2023
  • Domain Name: Hosted your domain name on Route 53. How to use Amazon Route53 API
  • Instance Type: t3.small or above.
  • fill thes arguments:
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v "ShowSecondsInSystemClock" /t reg_dword /d 1 /f >nul 2>nul1
ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc
@fuyuanli
fuyuanli / rem_proxmox_popup.sh
Created November 12, 2019 08:27 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
deb https://packages.openmediavault.org/public usul main
@fuyuanli
fuyuanli / 10-opcache.ini
Last active March 27, 2019 06:41
OMV+NextCloud
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
#!/bin/sh
# GET Recore ID
#curl -x get "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/dns_records" \
#-h "x-auth-email:YOUR_EMAIL@gmail.com" \
#-h "x-auth-key:YOUR_GLOBAL_API_KEY" \
#-h "content-type: application/json"
NEW_IP=`curl -s http://ipv4.icanhazip.com`
@fuyuanli
fuyuanli / cloudflare-pve-acme.sh
Last active July 23, 2024 02:01
acme.sh + Proxmox VE
# CloudFlare API
#
# Please install "acme.sh" before runnung this script.
# curl https://get.acme.sh/ | sh
#
export CF_Email="Your_CloudFlare_Account@example.com"
export CF_Key="Your_CloudFlare_API_Key"
/root/.acme.sh/acme.sh --issue \
-d $DOMAIN \
@fuyuanli
fuyuanli / getAdobeCC2018.sh
Created November 4, 2018 03:47
透過 Aria2 下載 Adobe CC 2018 試用板
aria2c -x16 http://prdl-download.adobe.com/Photoshop/66A1D1E00DE44601B041A631261EC584/1507846032938/AdobePhotoshop19-mul_x64.zip
aria2c -x16 http://prdl-download.adobe.com/LightroomCC/B739B5BBE924450E85E3CCA3F4E58DF2/1507817913973/LRCC_1.0_20170919-1412-ccb76bd_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Lightroom/C92BB55D87554077A61FB4B39229DF85/1509474343363/LR_7.0.1_1142117_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Illustrator/C1208DBFE1D04A81A21C62CDF6A96AC6/1509968804429/AdobeIllustrator22_HD_win64.zip
aria2c -x16 http://prdl-download.adobe.com/InDesign/0AE9CC3E24054F7CAAEF89371F6B8E8E/1507852089154/InDesign_13_LS20_Win64.zip
aria2c -x16 http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508138997522/Acrobat_DC_Web_WWMUI.exe
aria2c -x16 http://prdl-download.adobe.com/Dimension/BA884A82C5AB47569685C2BD7D1289AD/1508226581127/Dimension_1.0-20170927.r.672-f179c9c-ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Bridge/FA969603
@fuyuanli
fuyuanli / auto-snap.sh
Last active October 5, 2019 05:00
ZFS 自動快照
#!/bin/bash
# 目標 Dataset
DATASET="data/home"
# 要保留的 Snapshot 數量
SNAP_NUM=168
# 日期
TODAY=$(date +"%Y-%m-%d-%H%M%S")