Skip to content

Instantly share code, notes, and snippets.

@0xNord
0xNord / css_reset_info.md
Last active May 20, 2023 18:41
some info about CSS Reset & Normalize

INFO

My reset.css

html {
    box-sizing: border-box; /* dimension of elements will include the border and padding */
}
*, *::before, *::after {
    box-sizing: inherit; /*  all elements preset in the Dom & pseudo-elements(::before, ::after) takes value of property from its parent element  */
}
h1, h2, h3, h4, h5, h6, p {
@0xNord
0xNord / postgres_localdb_to_heroku.md
Last active March 7, 2021 14:15
how to push postgres localdb to heroku using dropbox
  1. create dump of your localdb
  • PGPASSWORD=yourpass pg_dump -Fc --no-acl --no-owner -h localhost -U username localdb_name > mydb.dump
  1. download file to dropbox and get the link
  2. change your link from 'https://www.dropbox.com/s/xxx/mydb.dump?dl=0 to 'https://dl.dropboxusercontent.com/s/xxx/mydb.dump'
  3. push to heroku:

links

@0xNord
0xNord / pg_auth_local_fix.md
Last active March 7, 2021 12:01
authFailedForUser(node_heroku_postgres_localhost)FIXED
  • heroku postgres db,
  • installed postgres on local,
  • nodejs

/db route -> Error error: password authentication failed for user "username"

HOW TO FIX:

###################################### 1) create db user ################################

  • sudo -u postgres psql