Tuesday, September 22, 2020

killsomething

 kill something.  anything.

#!/bin/bash

echo -n "what do you wish to kill? "
read var1
kill -9 `ps -ef|grep $var1| awk '{print $2}'`

Thursday, September 17, 2020

wp image import woes

oh sigh. wordpress wp image import sometimes has PHP dies messages when you are importing 700 images and they all need to be scaled.

php: time limit exceeded `No such file or directory' @ fatal/cache.c/GetImagePixelCache/2098.

a better way is to import them one-by-one.

for i in *.jpg ; do wp import image $i ; done