LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Cloning a git repository in an idempotent way

Posted 05-20-2015 at 02:08 AM by sag47
Updated 05-20-2015 at 02:25 AM by sag47

In config management, it is best to do setup in an idempotent way. After some basic research here's a way to clone a repository in an idempotent way. In this example we'll be cloning my home repository into ${HOME}/git/home.

First, check to see if the repository directory exists. Then change the working directory to it.

Code:
#variables
repo="https://github.com/samrocketman/home.git"
local_repo_location="${HOME}/git/home"
...
Senior Member
Posted in Uncategorized
Views 402 Comments 1 sag47 is offline
Old

Quick Init for CODE::BLOCKS IDE.

Posted 05-19-2015 at 07:16 PM by rainbowsally
Updated 05-20-2015 at 11:07 AM by rainbowsally (possible memory leak fixed)

[Revised May 20, 2015. Deleted "outfile" string list at end of main(), fixed bug in 'srcdir=<dir>' automatic files loader]

Note: Currently still testing. Likely to add switches to include target options, such as the output from wx-config --cflags, pkg-config <blah> --libs, and so forth.

Today's amazing feat of Computer Mad Science is the creation of a commandline utility that will quickly create a relocatable codeblocks project file right where...
Member
Posted in Uncategorized
Views 248 Comments 0 rainbowsally is offline
Old

Generic scrapes.

Posted 05-19-2015 at 01:38 PM by peonuser
Updated 05-19-2015 at 02:17 PM by peonuser

Look at astrology as an intellectual cartoon and an insight into human thinking. So I will peek at it once in a while. Also gave a chance to play with page scraping again.

$ ./horoscope.sh Virgo

Daily Horoscope for Tuesday 19th May 2015

Share :

Through friends of someone close, you could learn more about their
background. This extra information, particularly if it's related to how
they acquired their qualifications, and the...
Member
Posted in Uncategorized
Views 199 Comments 0 peonuser is offline
Old

siduction tips for beginners!

Posted 05-18-2015 at 06:28 AM by beachboy2
Updated 05-19-2015 at 04:38 PM by beachboy2

From its outward appearance, siduction may appear to be just another Debian-based Linux distribution, but don't let that fool you. Here be dragons!

I have put together a few short, but essential, tips for newcomers wishing to install and use siduction which is a full rolling Linux release based on Debian Unstable (sid).

Tip #1:
As an absolute minimum, it is essential to read the siduction Quick Start Guide before even thinking about proceeding further.
...
Member
Posted in Uncategorized
Views 376 Comments 1 beachboy2 is offline
Old

in route to testing KDE 5 : Part 1 , the minimal slack install

Posted 05-17-2015 at 02:15 PM by jheengut

Last time I visited , a major uphaul
Member
Posted in Unix, Linux, Slackware
Views 183 Comments 0 jheengut is offline

  



All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration