lil/extras/lil

1#!/bin/sh 2 3# this is a handy script to invoke lil 4# from your terminal via cURL. 5 6# cp lil ~/bin 7 8# assuming ~/bin is in your $PATH 9 10# invoke like so 11# lil "https://www.warp.dev/pricing" 12# lil "https://www.warp.dev/pricing" warp 13 14# get your own token 15TOKEN=YlvNTLQLPPV7CKB 16 17# replace http://localhost:3000 18# with your instance of lil 19HOST=http://localhost:3030 20# HOST=https://one0.xyz 21 22curl -X POST \ 23-H "x-auth-token: $TOKEN" \ 24-H "Content-type: application/x-www-form-urlencoded" \ 25-d "full_url=$1" \ 26-d "short=$2" \ 27$HOST 28 29echo