This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while : | |
do | |
clear | |
/usr/local/gearman/bin/gearadmin --status | |
echo "Press [CTRL+C] to stop.." | |
sleep 1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
PACKAGES_TO_INSTALL=$( npm list --depth=0 2>&1 > /dev/null | grep "ERR! missing" -c ) | |
PACKAGES_TO_PRUNE=$( npm list --depth=0 2>&1 > /dev/null | grep "ERR! extraneous" -c ) | |
if [ ${PACKAGES_TO_PRUNE} != "0" ] | |
then | |
echo "Prune ${PACKAGES_TO_PRUNE} NPM package(s)..." | |
npm prune | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace common\queue; | |
use PhpAmqpLib\Channel\AMQPChannel; | |
use PhpAmqpLib\Connection\AMQPStreamConnection; | |
use PhpAmqpLib\Message\AMQPMessage; | |
use Yii; | |
use yii\base\Component; | |
use yii\base\Exception; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var gaglio = require('gulp-aglio'); | |
var aglio = require('aglio'); | |
var fs = require('fs'); | |
var request = require('request'); | |
var apiaryApiKey = 'api-key'; | |
var apiaryApiName = 'api-name'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMPFILE='/tmp/rofi-dmenu-taskwarrior' | |
task rofi rc.verbose=nothing > $TMPFILE | |
TASK=`rofi -dmenu -p "Task: " -i -input $TMPFILE` | |
TASK_ID=`echo $TASK | cut -f1 -d' '` |