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
# reset branch | |
git checkout production | |
git reset --hard origin/master |
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 | |
echo | |
echo "**** get changes for TEST App" | |
echo | |
cd /var/www/html/testapp || exit | |
unset GIT_DIR | |
git pull origin master | |
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
/* | |
center align ul inside DIV | |
*/ | |
<div id="menu"> | |
<ul> | |
<li>One</li> | |
<li>Two</li> | |
<li>Three</li> |
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
document.getElementById("MyElement").className = " MyClass"; | |
// To add a class to an element: | |
document.getElementById("MyElement").className += " MyClass"; | |
// To remove a class from an element: | |
document.getElementById("MyElement").className = document.getElementById("MyElement").className.replace(/\bMyClass\b/','') | |
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
$filaname = 'file.jpg'; | |
if (!@imagecreatefromjpeg($filename)){ | |
echo "bad image"; | |
} | |
else{ | |
echo 'ok'; | |
} |
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 | |
# xvfb - this script starts and stops Xvfb | |
# | |
# chkconfig: 345 95 50 | |
# description: Starts xvfb on display 99 | |
# processname: Xvfb | |
# pidfile: /var/log/xvfb/xvfb.pid | |
# Source function library. |