Skip to content

Instantly share code, notes, and snippets.

@alexkuang0
Created February 26, 2021 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexkuang0/f36a6fa683c59aa679c84ca7df137a03 to your computer and use it in GitHub Desktop.
Save alexkuang0/f36a6fa683c59aa679c84ca7df137a03 to your computer and use it in GitHub Desktop.
cnmzdk
delete
djx
ethan2000
ewuzxl
extrastu
fack
feiyu
feng
forfunfor
format
fqy12300
freebacao
g
glmd
hacave7336
hainan
haiyan
hb0730
heimiao
henry1
iHao
iHaoo
imozart
itabas016
jasper2007111
jh_personal@163.com
jingyu
k960128
king
kotone
lanruosi
lcq
ldc
leela
lengthmin
leslie
lonelyfish
longvase
lpp
lsxxwsy
lyzf0413
moe
moron
myuser
nan_include
neoyu
nianhongmin
none
onll12
pilipala
pqlwzs
proxy
ray
rsalive
rssalex
ryanldun
samot
shpkng
shyray
slain
snsnko
sorke
tao
tudouni
tuzhq
user
userrss
v2ch
wddzzz
wendao
wendaoliu
wendell
wghai
wps352
wr
wssx
xderam
xioaka
xiongjunhan
ydx@outlook.my
yfgeek
yingu
zwandlp
@alexkuang0
Copy link
Author

alexkuang0 commented Feb 26, 2021

Cron:

30 4 * * 5 php ./cli/user-info.php | awk -F '|' '/\|/{ gsub(/(^[ \t]+|[ \t]+$)/, "", $2); gsub(/(^[ \t]+|[ \t]+$)/, "", $8); gsub(/(^[ \t]+|[ \t]+$)/, "", $9); if ($8 == 1 && $9 == 0 ) { print $2 } }' | xargs -n1 php ./cli/delete-user.php --user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment