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
<!-- | |
//#1569 deltatre.com demo | |
Jujhar@buto.tv | |
--> | |
<html> | |
<body> | |
<h1>#1569 deltatre.com player interaction demo</h1> |
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 | |
#####log stuff with info and error convenience methods | |
readonly log='/var/log/my_log_file.log' | |
if [ ! -f "$log" ];then #attempt to create log file | |
touch $log | |
if [ ! -f "$log_file" ];then #log file still not there (permissions?) | |
echo "Could not create a log file at ${log}" | |
exit 1 | |
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
#!/bin/bash | |
PROCCOUNT=`ps -Afl | wc -l` | |
PROCCOUNT=`expr $PROCCOUNT - 5` | |
GROUPZ=`groups` | |
if [[ $GROUPZ == *irc* ]]; then | |
ENDSESSION=`cat /etc/security/limits.conf | grep "@irc" | grep maxlogins | awk {'print $4'}` | |
PRIVLAGED="IRC Account" | |
else |
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 | |
# /etc/init.d/selenium-grid | |
# centos-compatible selenium-grid startup script. | |
# Eugene Zakharchenko <z.evgeniy[at]gmail.com> | |
### BEGIN INIT INFO | |
# Provides: selenium-grid | |
# Required-Start: $remote_fs $syslog $network | |
# Required-Stop: $remote_fs $syslog $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
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
@echo off | |
rem For git merging of branches into the branch you specify, for my covenience and possibly yours | |
rem created 2012-09-06 by jujhar@jujhar.com | |
rem ********* | |
rem will get the current branch name, checkout the branch you specify and merge | |
rem the original branch into the specified branch, and check | |
rem ********* | |
rem get the current branch name #http://stackoverflow.com/questions/6245570/get-current-branch-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
rem 2013-01-04 jujhar@jujhar.com | |
rem will run git commit and add yoru message and then append it with some random text from whatthecommit.bat | |
rem you'll need CURL in your path | |
for /f "tokens=* delims= " %%a in ('curl -s http://whatthecommit.com/index.txt') do ( | |
git commit --verbose -a -m "%1 %%a" | |
) |
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
# Ubuntu upstart file at /etc/init/yourservice.conf | |
pre-start script | |
mkdir -p /var/log/yourcompany/ | |
end script | |
respawn | |
respawn limit 15 5 | |
start on runlevel [2345] |
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
{ | |
"resources": [ | |
"error::error", | |
"auth::login", | |
"auth::logout", | |
"index::index", | |
"video::index" | |
], | |
"acl": { | |
"guest": [ |
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
(function(d, conf) { | |
var b = d.createElement('script'); | |
b.setAttribute('async', true); | |
b.src = '//embed.buto.tv/js/' + conf.object_id; | |
if (b.addEventListener) { //for IE<9 | |
b.addEventListener("load", function() { | |
if (window.buto) | |
buto.addPlayer(conf); | |
}, false); | |
} else if (b.readyState) { |
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/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js init.d script /home/nodejs/sample/app.js | |
# see http://labs.telasocial.com/nodejs-forever-daemon/ and https://gist.github.com/nariyu/1211413 | |
# jujhars13 2013-10-15 | |
# | |
. /etc/rc.d/init.d/functions | |
USER="root" |
OlderNewer