Skip to content

Instantly share code, notes, and snippets.

View pl0xy's full-sized avatar
:octocat:

Declan pl0xy

:octocat:
View GitHub Profile
@pl0xy
pl0xy / generate-ssh-key.sh
Last active July 18, 2022 13:34 — forked from denisgolius/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
cd
cd~
cd .ssh
ssh-keygen -t rsa -b 4096 -N '' -C "pl0xy@users.noreply.github.com" -f ./id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "pl0xy@users.noreply.github.com" -f ./github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "pl0xy@users.noreply.github.com" -f ./mozilla_rsa
@pl0xy
pl0xy / getSignedUrl.ts
Last active July 18, 2022 13:31
Typescript promise wrapper for s3.getSignedUrl with correct type definitions
import { S3 } from 'aws-sdk';
const s3 = new S3();
interface GetSignedUrlExpires {
/**
* Number of seconds before the URL expires
*
* Defaults to `900`
*