Skip to content

Instantly share code, notes, and snippets.

@mrfunctionC3
mrfunctionC3 / axios.ts
Created May 19, 2023 08:31
axios best practice
import axios from "axios";
impoprt http from "http";
import https from "https";
axios.create({
timeout: 30000,
httpAgent: new http.Agent({
keepAlive: true
@mrfunctionC3
mrfunctionC3 / download.sh
Last active August 4, 2020 08:11
download gdrive file
#!/bin/bash
fileid=$1
filename=$2
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
@mrfunctionC3
mrfunctionC3 / create-sshkey.sh
Last active August 3, 2020 10:36
ssh key generation
#!/bin/bash
ssh-keygen -o -a 100 -t ed25519