Skip to content

Instantly share code, notes, and snippets.

@aqabawe
aqabawe / kamal-production-server-setup.sh
Created February 2, 2025 22:02 — forked from rameerez/kamal-production-server-setup.sh
Set up a Ubuntu server to deploy Kamal 2.x Docker containers to, hardened security and production ready
#!/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 ---
@aqabawe
aqabawe / devise.ar.yml
Last active October 20, 2020 22:09 — forked from Samidahlawi/devise.ar.yml
devise.ar.yml v4.7.1
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
en:
devise:
confirmations:
confirmed: "تم تأكيد حسابك الشخصي بنجاح."
send_instructions: "سوف تصلك رسالة خلال دقائق على بريدك الإلكتروني تتضمن الخطوات اللازمة لتأكيد حسابك."
send_paranoid_instructions: "إذا كان بريدك الإلكتروني موجود بالفعل اذا سوف تصلك رسالة خلال دقائق تتضمن خطوات اللازمة لتأكيد حسابك."
failure:
already_authenticated: "تم تسجيل دخولك مُسبقاً."
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
@aqabawe
aqabawe / gist:fda055a08d2a47e3c896
Last active January 4, 2016 13:09
wkhtmltopdf 64 bit
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
@aqabawe
aqabawe / gist:7647748
Last active December 29, 2015 09:08
Back up your Twitter DMs as text, just paste the code in your browser console.
$.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")
@aqabawe
aqabawe / gist:6967018
Created October 13, 2013 20:22
Mount File
sudo mount -o loop path/to/iso/file/YOUR_ISO_FILE.ISO /media/iso
@aqabawe
aqabawe / gist:6670787
Created September 23, 2013 14:00
undelete
$ sudo extundelete --restore-directory ~/Pictures/ /dev/sda6