ngreenstein / alfred-process-killer Goto Github PK
View Code? Open in Web Editor NEWAn Alfred 2 workflow that makes it easy to kill misbehaving processes. It is, in essence, a way to easily find processes by name and kill them using `kill -9`.
An Alfred 2 workflow that makes it easy to kill misbehaving processes. It is, in essence, a way to easily find processes by name and kill them using `kill -9`.
Whenever I kill a process I normally am killing a frozen Chrome tab using: kill chrome and then I scroll down to see the process, that is like at 99%. Adding this sort allows me to easily kill the process hog.
I changed:
origional processes = ps -A -o pid -o %cpu -o comm | grep -i [^/]*#{Regexp.quote(theQuery)}[^/]*$
.split("\n")
updated processes = ps -A -o pid -o %cpu -o comm | grep -i [^/]*#{Regexp.quote(theQuery)}[^/]*$ | sort -nr -k2
.split("\n")
by adding | sort -nr -k2 it will sort column 2 reverse numerical.
Would it be possible to add support for killing by PID?
You're probably wondering why I would want to kill by PID, well... GfxCardStatus shows me that a process with a certain PID is using my discrete videocard so I want to kill it ;)
Nevermind, wrong package.
Use something like lsof -i {port}
to kill process binding to port
Can you add auto update support. http://www.alfredforum.com/topic/1582-alleyoop-update-alfred-workflows/
PS I added a link to your project at https://github.com/willfarrell/alfred-workflows. Thanks for the awesome workflow.
I'm requesting this feature since I find myself killing multiple processes now and then. And right now the only way to do this is to kill one at a time. Not too bad though but it would be great to be able to kill multiple in one command, for example the very basic support I can think of like kill dash, chrome
. If there're multiple selection for both applications, we can just default to the most frequently selected one or simply do nothing.
Do hope that you are still on Github bro ๐
This is the error I'm getting in the debugger:
[2016-07-05 09:33:16][ERROR: input.scriptfilter] Code 1: -e:21:in block in <main>': undefined method
captures' for nil:NilClass (NoMethodError)
from -e:19:in each' from -e:19:in
It would be nice if you submit your workflow in Packal repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.