- Created doc while stumbling upon this PR / issue in https://github.com/night/betterttv
- Also kudos Chrome network panel
Tmux is a terminal multiplexer. Using tmux we can create, access and control terminals from a single terminal. Tmux sessions can be detached, continue running in the background, and then reattached. This is extremely helpful and it is one of the coolest features of tmux. To get up and running with tmux, you need to learn some tmux commands.
Every major distribution has tmux in their repositories, so you google them up. Below I listed the install commands for arch based and ubuntu distribution.
# Copy and paste this in a Powershell window. Enter the userId at the prompt. Follow instruction below to get your userId | |
# download all PlaysTv videos of a user | |
# To find the user id, navigate to the your profile while logged in (IMPORTANT!) | |
# View source of the page, In the <html> tag there's data-conf attribute. | |
# The json in there will have the user id under [login_user.id] | |
function Safe-Title { | |
param ( | |
$Description, | |
$EpochMilliseconds |
import { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
@Entity() | |
export class MyEntity { | |
@PrimaryGeneratedColumn() | |
id?: number; | |
@Column() | |
name?: string; |
import * as React from 'react' | |
// routing, etc. | |
import { Reset } from '~/ui/shared/Reset' | |
export class App extends React.Component { | |
public render() { | |
return ( | |
<div> | |
<title>Dashboard</title> |
by 0xabad1dea September 2018
You may notice a decidedly Nintendo bias to the examples. I can't change who I am.
Speedrunning is:
- Completing a video game
const AWS = require('aws-sdk'); | |
AWS.config.logger = console; | |
const dynamodb = new AWS.DynamoDB({ apiVersion: '2012-08-10' }); | |
let val = 'some value'; | |
let params = { | |
TableName: "MyTable", | |
ExpressionAttributeValues: { |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
// 9: object-literals - basics | |
describe('The object literal allows for new shorthands', () => { | |
const x = 1; | |
const y = 2; | |
describe('with variables', () => { | |
it('the short version for `{x: x}` is {x}', () => { | |
const short = {y}; |