Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View waruboy's full-sized avatar

Taufiq Muhammadi waruboy

View GitHub Profile
rails:
configuration:
node_version: "16" # will install latest release of v16.x.x
production:
postgresql:
configuration:
version: 12.3
Add `form-control` class on the #card-element div
@waruboy
waruboy / gist:c988c813acd44c7af9e0095c685ebcee
Last active October 7, 2021 01:57 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pg:backups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get list of backups

Command: heroku pg:backups --remote production

Get url of backup download

require 'time'
class Person
attr_accessor :name, :age, :sex, :birth_date, :birth_place, :death_date
## class methods
def Person.load_with_info(n, bdate, ddate=nil)
a = Person.new
a.name = n
a.birth_date = bdate
a.death_date = ddate
@waruboy
waruboy / gist:9464182
Created March 10, 2014 12:30
Undangan Pernikahan
Dear plurkers,
Insya allah kami akan mengadakan resepsi pernikahan
Lafrania Taufik
dengan
Taufiq Muhammadi
pada