Skip to content

Instantly share code, notes, and snippets.

@kkasaei
kkasaei / meta-tags.md
Created January 28, 2016 23:20 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@kkasaei
kkasaei / sqlite3-cheat-sheet.md
Created February 16, 2016 08:01 — forked from vincent178/sqlite3-cheat-sheet.md
sqlite3 cheat sheet
<!doctype html>
<html>
<head>
<title>Index DB DEMO</title>
<!-- https://code.tutsplus.com/tutorials/working-with-indexeddb--net-34673-->
</head>
<body>
<script>
@kkasaei
kkasaei / Git Commands
Created March 1, 2016 03:54
Git commands i refer to them time to time
# User Config
git config user.name "<your name>"
git config user.email "<your email>"
git config --globaluser.name "<your name>"
git config --global user.email "<your email>"
function searchWikipedia (term) {
return $.ajax({
url: 'https://en.wikipedia.org/w/api.php',
dataType: 'jsonp',
data: {
action: 'opensearch',
format: 'json',
search: term
}
}).promise();
@kkasaei
kkasaei / postgres-cheatsheet.md
Created December 16, 2017 12:10 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@kkasaei
kkasaei / README.md
Created January 3, 2018 23:33
Sequelize + Express + Migrations + Seed Starter
SHOW TABLE:
Postgres psql needs escaping for capital letters.
Database=# \d+ "TestTable1"
Describe Table:
\d "myTable" describe table
\d+ "myTable"
Switch Database
\c tableName
https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac