Skip to content

Instantly share code, notes, and snippets.

View ardianys's full-sized avatar

Ardian Yuli Setyanto ardianys

  • Linguistees
  • Wonogiri, Indonesia
  • X @ardianys
View GitHub Profile
@ardianys
ardianys / setup.sh
Created August 6, 2021 10:16
Install Jitsi Meet Server + Apache + Certbot on Ubuntu from scratch
apt update
apt install apt-transport-https curl software-properties-common certbot ufw
apt-add-repository universe
curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c 'gpg --dearmor > /usr/share/keyrings/jitsi-keyring.gpg'
echo 'deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/' | sudo tee /etc/apt/sources.list.d/jitsi-stable.list > /dev/null
apt update
hostnamectl set-hostname YOUR_DOMAIN
# add new line
# x.x.x.x meet.YOUR_DOMAIN.org
source 'https://rubygems.org'
gem 'devise'
gem "cancan"
gem 'simple_form'
gem 'friendly_id', '~> 5.0.0'
gem "paperclip", "~> 4.1"
gem 'kaminari'
gem "bson_ext"
gem 'mongo'
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
id:
devise:
confirmations:
confirmed: 'Akun anda telah berhasil dikonfirmasi. Anda telah login.'
send_instructions: 'Anda akan menerima e-mail berisi instruksi untuk melakukan konfirmasi akun dalam beberapa menit lagi.'
send_paranoid_instructions: "Jika email anda benar-benar terdaftar, anda akan menerima email untuk mengkonfirmasi akun anda dalam beberapa menit lagi."
failure:
already_authenticated: "Anda telah login."
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by jay@gooby.org http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@ardianys
ardianys / watermark.rb
Last active August 29, 2015 14:02 — forked from pch/watermark.rb
Paperclip 4.1.1 watermark processor for Rails 4 and Ruby 2
class User
has_attached_file :photo,
processors: [:watermark],
styles: {
medium: {
geometry: "300x300>",
watermark_path: "#{Rails.root}/public/images/watermark.png",
auto_orient: false
},
thumb: "100x100>",