This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Production Docker Host Hardening Script v2 | |
# For Ubuntu Server 24.04 LTS (Noble) | |
# Suitable for both Kamal deployment and builder hosts | |
set -euo pipefail | |
IFS=$'\n\t' | |
# --- Constants --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
en: | |
devise: | |
confirmations: | |
confirmed: "تم تأكيد حسابك الشخصي بنجاح." | |
send_instructions: "سوف تصلك رسالة خلال دقائق على بريدك الإلكتروني تتضمن الخطوات اللازمة لتأكيد حسابك." | |
send_paranoid_instructions: "إذا كان بريدك الإلكتروني موجود بالفعل اذا سوف تصلك رسالة خلال دقائق تتضمن خطوات اللازمة لتأكيد حسابك." | |
failure: | |
already_authenticated: "تم تسجيل دخولك مُسبقاً." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://raw.github.com/hipchat/hipchat-cli/master/hipchat_room_message | |
git clone https://github.com/hipchat/hipchat-cli.git . | |
sudo mv hipchat_room_message /usr/local/bin/ | |
sudo chmod +x /usr/local/bin/hipchat_room_message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove wkhtmltopdf | |
wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
sudo mv wkhtmltopdf-amd64 /usr/local/bin/wkhtmltopdf | |
chmod +x /usr/local/bin/wkhtmltopdf | |
wkhtmltopdf http://google.com google.pdf | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.map($(".dm"),function(e){var t=$(e);return(t.hasClass("received")?"Received":"Sent")+"("+t.find("._timestamp").text().trim()+"):"+t.find(".dm-message p").text()}).join("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mount -o loop path/to/iso/file/YOUR_ISO_FILE.ISO /media/iso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo extundelete --restore-directory ~/Pictures/ /dev/sda6 |