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
tar -pczf repo.tar.gz repo/ |
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 printAD($id,$ip){ | |
$r=@mysql_query("select LiveAdHTML from schedule_items where schedule_id = '$id'"); | |
$d=mysql_fetch_array($r,MYSQL_ASSOC); | |
$myFile = "/data/auction/adMaster/$id.html"; | |
$fh = fopen($myFile, 'w') or die("can't open file"); | |
fwrite($fh, $d[LiveAdHTML]); | |
fclose($fh); | |
passthru('/usr/local/bin/html2ps /data/auction/adMaster/'.$id.'.html > /data/auction/adMaster/'.$id.'.ps'); | |
$file = /data/auction/adMaster/$id.'.ps'; | |
$remote_file = $id.'.ps'; |
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
<? | |
ini_set('error_reporting',E_ERROR | E_WARNING | E_PARSE); | |
ini_set('display_errors','On'); | |
include 'dptc.log.php'; | |
mysql_connect(); | |
mysql_select_db('intranet'); | |
function addNote($id,$note){ | |
$q1 = "SELECT notes FROM schedule_items WHERE schedule_id = '$id'"; | |
$r1 = @mysql_query ($q1) or die(mysql_error()); | |
$d1 = mysql_fetch_array($r1, MYSQL_ASSOC); |
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
Right click on folder “Git Bash Here” | |
git init | |
(this will get the folder ready for git usage) | |
git pull [repo ssh string] master | |
(this will pull the master/head from github) | |
git add -A | |
(this will add all new files) |
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
Review: | |
At this point you should have a local copy of the master, up to date. | |
Create the branch, push it, use it | |
$ git branch nightly | |
$ git push [git@github.com:...] nightly | |
$ git checkout nightly | |
(work your files) |
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
cd /downloads | |
wget http://kernel.org/pub/software/scm/git/git-1.6.6.tar.gz | |
tar xvzf git-*.tar.gz | |
cd git-* | |
make configure | |
./configure --prefix=/usr --without-tcltk | |
make all | |
make install |
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
In order to install EPEL take the following steps: | |
1. rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm |
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
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2 |
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
const int redPin = 11; | |
const int greenPin = 10; | |
const int bluePin = 9; | |
void setup() { | |
// Start off with the LED off. | |
setColourRgb(0,0,0); | |
} | |
void loop() { |
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
hello world |
OlderNewer