Skip to content

Instantly share code, notes, and snippets.

View kesavanm's full-sized avatar
🏠
Working from home

Kesavan Muthuvel kesavanm

🏠
Working from home
View GitHub Profile
@kesavanm
kesavanm / uscis-status.sh
Created September 14, 2022 02:56
Command line tool to check USCIS status
#!/bin/bash
# curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=WAC2290072020&initCaseSearch=CHECK+STATUS"| grep -A1 'Your Current Status'|tail -1
curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=WAC2290072020&initCaseSearch=CHECK+STATUS" | tee >(grep -oh '[On|As].*Number \w.*[0-9]' 1>&2) |grep -C1 'Your Current Status'|tail -1|tr -d "\t" |tr -s " "
echo
curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=IOE8718023615&initCaseSearch=CHECK+STATUS" | tee >(grep -oh '[On|As].*Number \w.*[0-9]' 1>&2) |grep -C1 'Your Current Status'|tail -1|tr -d "\t" |tr -s " "
@kesavanm
kesavanm / index.html
Created September 4, 2019 21:14
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Password Gen!</title>
</head>
<body>
<h1> Password Gen!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,