Skip to content

Instantly share code, notes, and snippets.

View tsujp's full-sized avatar
💻
Making 1s and 0s work

Jordan Ellis Coppard tsujp

💻
Making 1s and 0s work
View GitHub Profile
interface TypedResponse<T = any> extends Response {
/**
* this will override `json` method from `Body` that is extended by `Response`
* interface Body {
* json(): Promise<any>;
* }
*/
json<P = T>(): Promise<P>
}

Keybase proof

I hereby claim:

  • I am tsujp on github.
  • I am tsujp (https://keybase.io/tsujp) on keybase.
  • I have a public key whose fingerprint is 8B36 485D EB88 68BA FE21 A81E 4F7F 8C4D 2D12 D94E

To claim this, I am signing this object:

// Network Packet Struct
typedef struct {
int fd;
struct sockaddr_in cli_addr;
int length;
char buffer[];
} NET_PACKET;
void receive_payload( int fd, struct sockaddr_in cli_addr, char buffer[], int length ) {
@tsujp
tsujp / youtube-dl-mux.md
Last active August 29, 2015 14:19
You Are A Pirate

How To Become A Pirate

  1. Install youtube-dl via Homebrew. Don't have Homebrew? Follow the easy one-step instructions here)
  2. Install ffmpeg via Homebrew.
  3. Execute the following command to determine available formats to download as: youtube-dl -F [link to video]
  4. Select format type and execute: youtube-dl -f [format] [link to video]
  5. You now have a downloaded (and automatically-converted-to standard-m4a rip)
  6. For an MP3 version execute: