Skip to content

Instantly share code, notes, and snippets.

View webermn15's full-sized avatar
๐Ÿ”‹
full batt

Michael Weber webermn15

๐Ÿ”‹
full batt
View GitHub Profile
// saga.js
export function* processSaveAttachment(action) {
const files = action && action.payload;
const requestData = new FormData();
files.forEach((file) => requestData.append('upfile', file));
// console.log('[files]', files);
// for (const pair of requestData.entries()) {
// console.log(`${pair[0]}, ${pair[1]}`);
@webermn15
webermn15 / discord-markdown.md
Created January 24, 2019 18:27
Discord Markdown Guide

Discord Markdown

Spice and twist up your message using markdown, syntax highlighting, formats in Discord.

Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@webermn15
webermn15 / postgres-cheatsheet.md
Created January 20, 2019 18:50 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -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)