Skip to content

Instantly share code, notes, and snippets.

View cirfi's full-sized avatar
💭
废物

缘代码 cirfi

💭
废物
  • FOR PERSONAL USE
  • Hangzhou, Zhejiang, China
View GitHub Profile
@cirfi
cirfi / tg.sh
Created June 10, 2017 06:44
Tdesktop Auto Restarter
#!/bin/bash
for ((;;))
do
mem=$(ps -C telegram-desktop -o rss= | tail -1)
if ((!mem)); then
echo 'Starting Telegram Desktop...'
telegram-desktop &
sleep 300
continue
fi

Keybase proof

I hereby claim:

  • I am cirfi on github.
  • I am cirfi (https://keybase.io/cirfi) on keybase.
  • I have a public key whose fingerprint is 55B5 0C66 7BD1 D9FF 399C E71E 8633 DC91 3CFD D4CD

To claim this, I am signing this object: