Skip to content

Instantly share code, notes, and snippets.

View Odogwudozilla's full-sized avatar
🏠
Working from home

Chidozie Nnachor Odogwudozilla

🏠
Working from home
View GitHub Profile
@zulhfreelancer
zulhfreelancer / heroku_pg_db_reset.md
Last active January 29, 2024 10:09
How to reset PG Database on Heroku (for Rails app)?

It's important to note that running this reset will drop any existing data you have in the application

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

@n8henrie
n8henrie / countdown.js
Created August 8, 2014 14:23
My wedding countdown timer all-in-one (essentially the same as [code.gs](https://gist.github.com/n8henrie/e9b044b79987f5e5931f)).
<style>
p {
font-family: 'Bad Script', cursive;
color: #469280;
font-size: 24px;
text-align: center;
}
body {
background-color: transparent;
}