>

Git: Setting Up and Accessing a New Remote Respoitory

Using Backwater as the remote server, su to gitpriv and change into the repo directory. $ sudo su - gitpriv $ cd gitrepo Here there are some top-level repos already, as well has some directories that contain like repos. These include “c-code” and “web.” If creating a repo to store a web app, change into the web directory and create an empty repo. Be sure it has a “.git” extension. Here I am creating a repo to store the pydio app for LiM. $ cd web $ git init --bare --shared lim.pydio.git Now that that is done, the empty repo must be copied to the system where work...
read more

Mavericks: Set SSH Port

Found the following script: #!/bin/bash ############################################# # AUTHOR: JONATHAN SCHWENN @JONSCHWENN # # MAC MINI VAULT - MAC MINI COLOCATION # # MACMINIVAULT.COM - @MACMINIVAULT # # VERSION 1.01 RELEASE DATE NOV 05 2013 # # DESC: CHANGES THE PORT SSH LISTENS ON # ############################################# #REQUIREMENTS: # OS X 10.8 or newer ############################################# #CHECK FOR OS X 10.8+ if [[ $(sw_vers -productVersion | grep '10.[8-9]') ]] then echo "THIS SCRIPT WILL CHANGE YOUR SSH PORT AND RESTART SSH." echo "THE DEFAULT...
read more

ColdStone Theme: Added Hardcoded Video Iframe Just Above Recent Posts

Added the following to includes/default.php: <!-- SUB POST DIVISIONS --> <div class="subpost_wrap2"> <div class="subpost_wrap"> <div class="subpost_left"> <!-- 2014-06-02 Added Video to top of recent posts --> <div align="center"> <iframe style="border-width:5px; border-style:solid; border-color:#615E56;" width="450" height="253" src="//www.youtube.com/embed/4zEi8p1ZwNI" allowfullscreen></iframe> </div> <!-- End of 2014-06-02 video add --> <?php while...
read more

ColdStone Theme: Using Pages Instead of Posts for Featured Image

Hi, please go to featured.php save the file just in case; there, find: $coldstone_featured_number= make this equal with the numbers of pages you will use for the slider, like: $coldstone_featured_number=3; find: $my_query = new WP_Query before this add: $args = array( ‘post_type’ => ‘page’, ‘post__in’ => array(2,78,55) ); where 2,78,55 are 3 id’s of the pages you want to show in the slider. You need to insert here the actual id’s of the pages you want to include in the slider; then replace the line: $my_query = new WP_Query(………...
read more

GPS Data Conversion

# cat * | grep ^T > Total.txt # cat Total.txt | sed 's/T //' > Tstriped.txt # grep -v '^Tr' Tstriped.txt > Total.txt # cat Total.txt | sed -e 's/ 1999//' -e 's/ Sun//' -e 's/ Mon//' -e 's/ Tue//' -e 's/ Wed//' -e 's/ Thu//' -e 's/ Fri//' -e 's/ Sat//' > Finished.txt # cat Finished.txt | sed -e 's/^\(.\{12\}\)/\1,/' -e 's/^\(.\{26\}\)/\1,/' -e 's/ ,/,/g' > Final.csv Extract Only Track Info Remove Track Label Remove Beginning and End lines Get rid of Days and Year Add Commas
read more

« Previous Entries Next Entries »