Find the pid of the running process if you don't know it:
$ ps ax | grep node
1012 ? Ssl 0:03 node /usr/bin/signalhub listen -p 8000
In this case we're running a node program and it's pid is 1012
// invert all colors on the page | |
export default function invert() { | |
let css = 'html {-webkit-filter: invert(100%);' + | |
'-moz-filter: invert(100%);' + | |
'-o-filter: invert(100%);' + | |
'-ms-filter: invert(100%); }', | |
head = document.getElementsByTagName('head')[0], | |
style = document.createElement('style') | |
if (!window.counter) { |
Find the pid of the running process if you don't know it:
$ ps ax | grep node
1012 ? Ssl 0:03 node /usr/bin/signalhub listen -p 8000
In this case we're running a node program and it's pid is 1012