zgrep 'T18:' -r $PWD >> /tmp/logsawk '{print $2 "\t" $14 "\t" $9 "\t" $10}' /tmp/logsLet's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| [Unit] | |
| Description=Redis Datastore Server | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| PIDFile=/var/run/redis/redis.pid | |
| ExecStartPre=/bin/mkdir -p /var/run/redis | |
| ExecStartPre=/bin/chown redis:redis /var/run/redis |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| respawn limit 10 5 | |
| setuid ubuntu | |
| chdir /opt/myAplicacion | |
| env PORT=3000 |
| description "Server Name | |
| author "author" | |
| start on (local-filesystems and net-device-up IFACE=eth0) | |
| stop on shutdown | |
| respawn | |
| exec sudo -u ubuntu sh -c "NODE_ENV=production node /var/sites/stuff/app.js >> /var/log/stuff.log 2>&1" |
| [Unit] | |
| Description=Our cool Node.js App | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| Restart=always | |
| User=fooapp | |
| ExecStart=/var/appdata/fooapp/node_modules/pm2/bin/pm2 start /var/appdata/fooapp/app.js | |
| ExecStop=/var/appdata/fooapp/node_modules/pm2/bin/pm2 stop /var/appdata/fooapp/app.js |
| var container = document.querySelector('body'); | |
| var observer = new MutationObserver(function(mutations){ | |
| // Do something here | |
| mutations.forEach(function(mutation) { | |
| console.log('mutation.type = ' + mutation.type); | |
| for (var i = 0; i < mutation.addedNodes.length; i++) { | |
| console.log(' "' + mutation.addedNodes[i].textContent + '" added'); | |
| } | |
| if [ -f /etc/bash_completion ]; then | |
| . /etc/bash_completion | |
| fi | |
| xhost +local:root > /dev/null 2>&1 | |
| complete -cf sudo | |
| shopt -s cdspell | |
| shopt -s checkwinsize |