Skip to content

Instantly share code, notes, and snippets.

View mirzalazuardi's full-sized avatar
🙃

Mirzalazuardi Hermawan mirzalazuardi

🙃
View GitHub Profile
@mirzalazuardi
mirzalazuardi / 01.md
Created March 18, 2024 04:50 — forked from acfatah/01.md
How to set up Rails 6 production on Digital Ocean One Click Ruby on Rails Droplet

How to set up Rails 6 production on Digital Ocean One Click Ruby on Rails Droplet

1. Clone The Source

Clone the source repository.

2. Generate Secret Key

Run rails secret to generate secret key and set SECRET_KEY_BASE to the value later in ~/.profile.

@mirzalazuardi
mirzalazuardi / README.md
Created October 31, 2023 05:07 — forked from equivalent/README.md
Rails 7 importmaps dropzone.js direct upload ActiveStorage

This is simple implementation of technologies in hobby project of mine built in Rails7 where I need direct upload to S3.

@mirzalazuardi
mirzalazuardi / .rspec
Created April 6, 2023 22:43 — forked from alistairtweed/.rspec
Testing Rails with RSpec, Factory Bot, Faker and Shoulda Matchers
--require spec_helper
@mirzalazuardi
mirzalazuardi / nginx.conf
Created December 30, 2017 12:27 — forked from terrywang/nginx.conf
nginx config file template for Debian and Ubuntu
# User and group used by worker processes
user www-data;
# Ideally # of worker processes = # of CPUs or cores
# Set to auto to autodetect
# max_clients = worker_processes * worker_connections
worker_processes auto;
pid /run/nginx.pid;
@mirzalazuardi
mirzalazuardi / .htaccess
Last active August 29, 2015 14:20 — forked from steffenr/.htaccess
# KILL THEM ETAGS
# http://www.askapache.com/htaccess/apache-speed-etags.html
FileETag none
# set expires header
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|woff|eot|svg|ttf)$">
Header set Expires "Tue, 16 Jun 2020 20:00:00 GMT"
</FilesMatch>
# turn on gzip compression