Clone Wars!

November 2008:

Clone wars!

At last back amongst the surviving packets on the grand isobaric terrain of the intArweb.  In my travels I have seen many lonely deserted packets, dropped needlessly from their groups… 8, 32, thousands… why do they not care for the feelings of a single packet, leaving them to separate into fragments of bits at our very feet.  But behold, I have before me packets folded to my bidding.  Networks staged on the very air over my living establishment are now mine, MINE, at my very bidding… my beckoned call to bow upon my every whim and desire.

Oh yes… I have internet access now.  Clandestinely perhaps, but I never claimed to be a Greenpeace activist.  I’m not armed enough for that role, yet.

June 2010:

Time progresses and this blog consists of things I have ran across and/or learned within the last 2 years.  In some cases, simply being a documentation for me to refer to later, along with sharing to the rest of the world.  I forget more than I ever type, sadly.
No longer am I clandestinely pirating airwaves to gain ‘net access.  I find my own connection to be far more sound.  That, and I can afford it now 😉

Advertisements

American Oak Wood Barrels for Kombucha

I’ve been making Kombucha off and on for the last 4 years.  Recently, I’ve decided I’d get into it a little more seriously, since I can feel my body needing all the help it can get.  After doing a few brews for 3-6 week stints to experiment with flavor and sourness, I’ve found that I have more energy in general when I drink it… the non-caffeine energy.  So, I decided to go with a bigger container, but wanted something unique.  After doing research, I decided to go the route of a continuous brew oak wood barrel.

There are lots of places to buy wooden barrels, however only a handful that make them sitting vertically like this and have a hole at the top, along with a spigot hole made for being a spigot hole and not simply a bung hole in the middle like horizontal barrels.

The place I purchased mine was from http://www.barrelsonline.com. ($128+shipping which was $29.99)  The reviews weren’t good, but I figured I’d give it a shot since the alternatives from other companies didn’t seem much different and were quite a bit more pricey.  This particular one is 5-Gallons, with galvanized steel hoops that wrap around the barrel, and the wood is charred American Oak.  They say the order takes 14 business days, and I’d say from start to finish it was about that time.  It was shipped from Mexico, and while I’m not happy about that it didn’t seem that it effected the quality.  I chose a full-wood spigot, and the barrel to not be varnished so it could breathe.  The lid I didn’t care about so I chose cork… even though it’s never on and I cover it with a cloth cover I bought from Kombuchakamp.com with elastic to hold it on.

Below you can see the wood residue floating in the water before it was emptied the first time.

barrel2

Prepping it wasn’t hard, for me at least.  I’m kinda redneck’ish, so bear with me.  I put the barrel in my shower, and filled it with super-hot water from my hand sprayer.  Once I filled it entirely, I let it sit for an hour or so to let the wood expand/swell.  Honestly, it didn’t leak much at all and I was surprised.  I picked it up (held the top and bottom), and flipped it to dump the water out into the shower, then sat it back down again.  I repeated the process 3-4 times, with the final time being cold water.  The last time I made sure the sides weren’t leaking at all, and they weren’t.  I wiped it down, then took it out the the kitchen.

kombucha barrel

I had 2 1-gallon glass containers with Kombucha already brewing, so I dumped those in as a starter batch.  I then brewed up a 2-gallon pot of black tea, threw 2 cups of sugar in and stirred it up, leaving it cool to room temp.  After, I tossed that into the barrel which made the level reach almost completely to the top!  I threw the cloth cover on that is in the picture, and left it go.

After a week, I came back to look at how things were going.  I was surprised to find a nice sized Kombucha SCOBY (symbiotic colony of bacteria and yeast) floating on the top already!  I left it go another week, and that SCOBY grew quite a bit, and lodged itself into the walls.  After pouring a cup from the spigot, the SCOBY looked like something from the movie Aliens, and gripping the walls ahah.  I knocked it off the walls and pushed it down into the kombucha to get wet, then covered it back up.

I am very happy with it so far.  The small line of moisture you see in the picture above appeared a couple days after I started brewing, and it was kombucha coming through.  It was simply moisture, and within a couple of days the wax filled the holes up and made everything perfect.  This barrel does a great job of keeping the sun and light away from the bacteria/yeast and lets everything do it’s job without any interruption.
The spigot does take a bit of muscle to twist due to being wood on wood, but it works nicely.

I have another barrel coming so I can have an uninterrupted barrel and another for brewing that can be emptied halfway into the other barrel for drinking.  This will allow the sugar to be added with the new tea, and not interrupt the content of the kombucha being drank.

Let’s hope the second one is as good as the first.  Also, the words “kombucha” I had laser printed into the front by the company before sending it as a part of the purchase for free.  You can choose whichever words you want, and as you can see I’m very inventive.

Propane as an alternative fuel – 1994 Toyota Pickup 2wd

I was looking for an older truck to move heavy things around like a motor block, transmission, or anything bigger than my car trunk.  I’m not a picky person, and was aiming for an 80’s Ford F150 or Ranger.  I ran across a truck that caught my attention since I like to experiment.  A 1994 Toyota 2wd pickup that was converted to propane and turbocharged!

IMG_2171

This particular one is rather unique in that it’s been a test-bed demo truck most of it’s life.  For the last 5-8 years she’s been living the used-truck life in the hands of 2-3 people, however.  The conversion to propane is the awesome part – All of the vacuum tubes & emissions stuff in the engine bay is gone, with the EFI system capped & fuel injectors unplugged.  A 27-gallon ASME horizontal propane tank is bolted into the bed of the truck.

IMG_2184

A propane hose is mounted through the floor of the truck bed, running through the frame into the engine bay running through the firewall where it connects to a propane filter, propane regulator, propane vaporizer, & propane mixer/carburetor.  The mixer/carburetor feeds directly into a Garrett T3 turbocharger (mounted on the engine exhaust manifold), with the EFI system intake tube feeding directly from the turbocharger.  Below is a picture of my engine bay.

IMG_2247

The ignition coil & module on my setup (as seen in this photo below the mixer & vaporizer) is custom, with a higher amperage pass-through to detonate the propane with a solid spark.  I’m running NEW stock NGK plugs, distributor cap/rotor, & NGK ignition wires.

Since there is a turbocharger on the system, an HKS turbo timer is installed, and vacuum sensor to be able to detect boost/air fuel ratio (AFR)/PSI/etc.  It helps alot when tuning the mixer after installation!  Another thing to note is on my setup the turbocharger has a direct oil feed from the oil sensor on the engine block to the turbocharger bearing and back around through a filter dedicated to the turbocharger, and back around into the block.

IMG_2197

For those who don’t feel like worrying about installing vacuum sensors, etc, you can tune the mixer just as I did:  the air/fuel screw 4 1/4 turns out and the WOT knob just a hair under fully rich.

The plus side of propane in Arizona is the ability to get an Alternative Fuel plate which allows driving in the HOV lane!  Propane also has a much higher octane, which allows a much higher compression ratio (14:1 or higher).  It requires a hotter spark to ignite, but burns clean with far less CO2 exhaust.  Propane enters the engine as a vapor (non-liquid) gas, with none passing the piston rings into the oil.  Propane also is VERY stable, and will not go bad just sitting in the tank, unlike gasoline which rots.  The negative is that propane gets a lower MPG by 10% or so, but usually is negated to the same MPG with a turbocharger.

The 1994 Toyota pickup is a reliable vehicle, but is not smooth riding.  Due to it’s light body, a bump is really felt but it sustains nicely.  Driving to work (30 miles one way, freeway) is rather nice, however.  Since it is turbocharged, the life really shows above 55 MPH and with a 5-speed manual transmission (5th gear is overdrive) the RPMs aren’t very high at about 3300 RPM at 80 MPH.

I have a few fixes to do, with the lower engine needing to have seals replaced to stop oil leaks along with maintenance changes of coolant hoses & water pump before the summer comes.

 

New Addition To the Vehicles – 1988 Pontiac Formula Fiero

Since life has been dull recently, I decided I to pick up an older vehicle that I’ve wanted for some time now, a Pontiac Fiero.  They came out about the same time as Toyota’s MR2 mid-engine car, and are also mid-engine design with the engine behind the driver.

The one I picked up actually is in pretty good shape for being 29 years old.  The seats are pristine aftermarket leather with a fiero logo on them, and the gauges are all digital instead of the stock analog.  Below is the center console…

C3BF8AD8-9AE1-4072-AE65-70746674D38D-21234-0000147C08526977

And these are the driver console gauges.  (speedometer & tachometer are stock)

0A837E43-D07D-4850-AF9B-F35348BDE42E-21234-0000147BD4B499FC

I’m finding it fun to drive, but it definitely gives you a quick view of the differences we’ve seen in vehicles over the last 30 years.  Granted, Pontiac didn’t design the Fiero as a luxury model car, since it was created for commuters.  This particular model has a 2.8 liter V6, happily sitting right behind the driver’s back.  The sound from the engine is deadened quite a bit, surprisingly.  I can only hear exhaust and not engine noises, while in the passenger compartment of the car.

This is the engine compartment under the trunk lid behind the driver’s seat.  Notice the storage space right behind the engine at the rear for groceries or whatever. ( 😉 )
Actually, from my examination of it I could probably put groceries in there and not have any issues since it is heat-shielded very well.

img_1986.jpg

The only issue I’m seeing right now is rattle, mirrors that need to be replaced, and a ground issue with the digital gauges.  Other than that, this car is in great shape.

Now, the car itself isn’t a contender against today’s vehicles in road racing, since it’s a small 2.8 liter V6 with about 140 horsepower and 170 ft-lb torque.  Though it has been tuned to show it’s colors at higher RPMs.  Driving from where I bought it to my home last night (at about 75-80 MPH average traffic) the manual steering took a bit to get used to with the bumps in the freeway.  The engine held it’s own though, seeming to have more life over 65-70 MPH.  With the speedometer gauge being so small compared to how car speedometers are today, visually it seems to be moving slow… until I see that 20 and 40 aren’t far from each other…

This is a picture in comparison to my other vehicles, for size comparison… as you can see, My 2000 R6’s (right behind the Fiero) front window is almost as tall.

IMG_1993

Ketogenic Diet – Week 2

Just an update that I’m on week two of the ketogenic diet with Keto Chow as the base.  I won’t lie and say I’m on a miraculous “only ketochow” meal prep, but it is still the majority of the days.  I have however done studies and found Chipotle taco bowls a great substitute for a meal as well.  Minus rice and beans with just a small touch a salsa and double sour cream with cheese and lettuce, it works great.  I’ve also found burgers with lettuce wraps work great as well since lettuce has very little carbohydrates.

Drinking water to flush your body is a wonderful thing.  I’ve been going through 1/2-1 gallon water per day along with coffee and tea of course.  I have been using decaffeinated tea/coffee to avoid any issues.  As far as sodas, I still drink diet but I try to limit it a bit.  I also try and have decaffeinated when I can.

On to week 2, but this time I’m going to try to use more ketochow through the week, and use outside food as a treat or social thing.  Keeping things keto the whole time, of course.  The sugar ups and downs feel like they are dieing down a bit as well.  I’ve lost 5 lbs since last monday, which I’ll attribute to water.

Ketogenic diet – start week 1

In a nutshell, ketogenic diet is replacing your diet structure with the following:
70-80% fat
20-25% protein
5-10% carbohydrate

Since most people eat much larger carbohydrates and sugars, it’s quite a change.  It takes 3-4 weeks for the body to fully adapt to the diet properly but most people are faster than that.

I’ve studied the human body and it’s digestive and metabolic processes for quite a number of years, superficially.  I’ve also studied the energy distribution when I was working out as a weight lifter 10+ years ago.  Age has a way of losing information it seems, and also throwing a curve ball.  I’m not liking the curve ball I’m being thrown since it seems my metabolism has changed quite a bit.  Being an amputee, I’ve done various other athletics but after a while it damages my leg and makes me take a hiatus which starts a cycle of not working out then working out then not working out… <insert cycle>.  This is not good, and I am gaining weight while eating semi-regularly, and while reducing my food also.  That is scary.
Normally (before being broken) to fix this I would simply increase my cycling and run after work either at the gym or on the road.  I’ve gained weight to the point that it is an issue since the weight causes quicker damages to the limb and is starting to effect internal readings like blood pressure and most noticeably cardio.  Not working your lungs makes them weak, etc.

My goal is to get my blood readings in check, and this will be a foundation to help my body be more prepped for weight loss since lipid levels and various other readings are causing blood pressure increase.  You can really feel it when the blood pressure becomes and issue, and you know when to stop.  It’s a death feeling, not cool.  Since I’m in an office environment 8 hours a day, I figure I’ll use the ketogenic food style.  Since I have more than just that to worry about, I’m going with a tried-and-true method: meal replacement shakes.  Most people are all like “oh, you’re into that fad, I’ll wait til you stop and eat your big mac” or something else ridiculously tacky.  I tried it before as a trial and it was doable but never followed through long-term.  I need to now.

I’ve tried many ways of doing it, including making my own.  Making your own powder mix takes quite a bit of time, so I stopped that idea.  The one that I’ve had success with and will be using is named “Keto Chow”, made by a guy in Utah named Chris Bair.  Well, not just him since it’s a company now, but he’s the founder and his family runs it with him.  He also eats ketogenic, and has for years now with very nice results.  He’s even recently done a real-life study of only eating Keto Chow and drinking only water for 4 weeks during his work trip.  It has helped him quite a bit, and he’s going to soon be doing a press release on this once he gets the final write-up finished.  Here are the informal week blogs posted:
https://www.ketochow.xyz/2017/11/nme-experiment-4-weeks-keto-chow-1st-week-tests-back/
https://www.ketochow.xyz/2017/11/nme-experiment-4-weeks-keto-chow-2nd-week-tests-back/
https://www.ketochow.xyz/2017/11/nme-experiment-4-weeks-keto-chow-3rd-week-tests-back/
https://www.ketochow.xyz/2017/11/nme-experiment-final-results-daves-making/

Anyway, I’ve babbled way too much, on to the meat of it.
This is my first week starting the ketogenic diet, primarily with Keto Chow as my food.  Now, I’m not yet going to drink only water since I like tea and coffee.

Today (November 27th) was my first day of the week being keto-only.  It did take a bit to tell my work friends I’m not going to lunch with them to <insert random Mexican restaurant>, but I explained to them later what I was doing.

With Keto Chow, it comes in a week sized bag of pre-made powder that contains everything but the “fat” and water.  Each meal is one scoop (49.52g) of powder with the addition being heavy cream (or heavy whipping cream), avocado oil, coconut oil, etc.  That is varied depending on how many calories you want to have in your meal.  Their website explains it but it’s basic math.  Keto Chow powder has 135 calories per serving/scoop.  Multiply that by the number of meals you want in a day (3), then subtract that number from the number of calories you want in a day.  That’s the number of calories you add in heavy cream. (or alternatives I’ve mentioned)

Making it for the day (or 2 days) is pretty much simple math as well.  You can use blender bottles or any other sealed bottle that will hold 16-20 oz liquid.  An immersion blender (stick blender) is amazing for this.  I make mine by the day, so I have 3 bottles… blender bottles right now, but I have Hydro Flasks coming to keep them cold for the day without refrigeration.  Here’s an example:

  • My day’s calories: 1200 kcal
    • Keto Chow powder (135 calories & 49.52g per serving/scoop):
      • 3 meals so multiply 49.52g by 3 = 148.56g powder for the day which is 405 calories
    • Heavy cream (I’m using Trader Joe heavy cream, 50 calories & 15 ml per serving):
      • Take the day’s calories (1200) and subtract the calories of the Keto Chow powder (405), in this case it is 795 calories
      • Divide that calorie amount (795) by the amount of calories in a heavy cream serving (50), which in this case is 15.9 servings of heavy cream. (or 15 ml times 15.9 = 238.5 ml total)

From the above, we now have our day’s calculated needs for 1,200 calories:
148.56g Keto Chow powder
238.5 ml heavy cream

The next step is to take a gallon (or close) container and mark about 48 oz on it.  How I did was simply pour 16 oz of water into one of the blender bottles 3 times, then used a sharpie.
Now, to measure heavy cream to that amount the blender bottle will help a lot.  The side of the bottle has ml marks, and averaging is fine.  Pour heavy cream until it’s just a touch below the 250 ml mark between 200 ml & 300 ml.  Then pour that heavy cream into the gallon container.

Then, fill about half of the container with water with the heavy cream and also measure the Keto Chow powder on a scale to the nearest whole number.  (149 in this case)
Dump the Keto Chow powder into the water after measuring it out, then blend it until everything is well mixed.  This doesn’t take long, but make sure it’s thorough since some can stick to the sides and the bottom.

Pour the container equally into the 3 blender bottles (or whatever you are using), refrigerate for at least an hour to let everything mix properly naturally, and that’s it!  Keep refrigerated, or if using a Hydro Flask it’s good for the day.

The above measurements can be multiplied by the number of meals you want to use, of course.  If doing 2 days (6 meals), just multiply by 6 and have 6 bottles.  If you want more water in the bottles, it’s fine to add it in after as you wish and shake it up.  Since it’s water, nothing is harmed.

That’s about it.  It might look semi-complicated with how I describe it, but once read a couple of times it will make sense.  The Keto Chow website (http://www.ketochow.xyz) is a better site to read about it, and find other links to sites with more information there.

I’ll post weekly about my results and anything I find out along the way.  Wish me luck.

Bitcoin & How To Buy Easily

I’m not a huge Bitcoin fan, I just enjoy dabbling in playing with it.  I know it’s a bit convoluted in how to get into it, and I also know it seems like it’s built to absorb money in fees.  With research, it’s possible to not only avoid fees (mostly), but to dictate your trade exactly as you wish.

I personally try to keep everything I do on the K.I.S.S. method.  (keep it simple, stupid)
I do complicate things at times, but only when it makes other things easier.  This we’ll keep it simple.  There are many bitcoin exchanges, but this will rotate around one named Coinbase.  Coinbase exchanges various cryptocurrencies including bitcoin, litecoin, and ethereum.  This will deal strictly with bitcoin, but could be applied to other cryptocurrencies.

What will be needed is a bank account, and signing up for a free account on Coinbase.com.  Once an account on Coinbase is created, on their website once logged on go into the Settings tab at the top and choose the Linked Accounts sub-tab.  Add your bank account by choosing the “Link a new account” button and walk through the steps.  After everything is complete, the account will be available to trade currency with.

Next will be going to the website http://www.gdax.com which is the more advanced trading platform owned by Coinbase.  The authentication is the same userid & password as Coinbase.com.

While the interface may seem VERY complicated, the parts we will be focusing on are as follows:

  • The top bar holds “Last trade price”, “24 hour price”, and “24 hour volume”.
    The last trade price is the current price of 1 bitcoin on the market at that current time.  The 24 hour volume is simply a percentage (positive or negative) price change throughout the last 24 hours that the market price of bitcoin has changed.
  • The lefthand vertical bar holds balance information on your current gdax wallets (USD along with bitcoin BTC), and the tool below it to perform the trades.
  • In the center is the dynamic chart of trades being performed.  It may seem complicated at first, but is used as a general high view of the trends.
    The first thing is to know what the colors mean.

    • green = Trades being sold
    • red = Trades being purchased
  • The rest is great for information while researching trends, such as the Order book which holds more details on the trades in the general center chart, along with the Trade History which holds information on the historic purchases on the market. (If you want to view it, I never worry about it).

Before doing anything, simply watching the graph change for a bit and getting a feel for the flow of buys/sells is best.  It will give you an idea of how at times sudden surges in buying and selling occurs, along with the patterns that can evolve at times.  That is useful if you intend on using this for sudden purchases.

If you are like I am and intend to buy/sell at a particular price on the market, the way to handle that is with simple math before making any trades.  The first thing you will need to know is how much money you are wanting to use for this trade.  In this example, I will use $100.00.  Then, the price that 1 bitcoin would be during your purchase.  For this example, I will use $6500.00.

  • First, we will break down the current market price of 1 bitcoin into the how much $0.01 would buy in bitcoins
    • 1/$6,500.00 (1 divided into 6500.00) which is “0.00015384”.  This is the amount of bitcoins $0.01 will buy currently.
  • Second, multiply the money you’re using with the value we calculated last
    • $100.00 * 0.00015384 = 0.01538400  This is the amount of bitcoins that your money will be purchasing.

We now know we will be using $100 to purchase 0.01538400 bitcoins (BTC).

The next step is to move money from your bank account to Coinbase.  Once logged into coinbase.com, select the “Accounts” tab at the top, then next to “USD Wallet” is “deposit”.  Select that, choose which account to withdraw from if you have more than one bank account inserted, type the amount, then “continue”.  Bank account transfer is free, however it takes 5-7 days to complete.  Once that is complete…

The next step is to move money from your Coinbase account to your GDAX USD wallet.
This is done by first logging onto dgax.com and on the top of the left bar under Balance, choose the Deposit button.  In the popup, select “Coinbase Account” in the top bar, then choose “USD account” in the dropdown, then insert the amount to be used and select the “deposit funds” button.  The transfer will be instant, since it is within the Coinbase network.

The final step is the trade!
Within GDAX, ‘limit’ trades are free.  This will be a non-immediate trade that will occur once the bitcoin market price reaches the price chosen.  In our calculations above we will be using $100 and trading with the market price at $6,500.  That’s all we need to know to perform the trade.
To set the limit trade in place, on the left bar saying “Market” “Limit” and “stop”, choose “Limit”.
Select “Buy” underneath the Limit button.  Now we enter the information into the fields below.  Within “Amount”, place the amount of bitcoins to purchase.  In our case, it will be “0.01538400”.  Within “Limit Price”, place the market price you want the purchase to occur at.  In our case, it will be “6500.00”.  With the information entered, underneath will show the total amount of cash that will be used.  Select “place buy order”, and the trade is set.

This will not instantly trade until the market reaches the amount chosen.  If it did instantly meet that, there would be a fee applied so it’s best to give it a little room for motion.  The same technique is used on selling, except you are selling existing bitcoins within the BTC wallet.

After all transactions are performed and you have BTC, they can be moved to your Coinbase wallet with the “withdraw” button and choosing “UTC Wallet” under coinbase account”.  If the vault is used, there will be more time needed to withdraw since it is meant as long-term storage and also meant to be harder to access to avoid theft.

That’s the basics.  If you wish to withdraw from gdax directly to your bank account, this can be performed as well.  I did it this way and it was a free movement of ~
$2,200, so it bypassed any fees Coinbase did show.

Hope all this helps.

Crontab Not Working in MacOS Sierra

Having used Linux and Unix since 1995, I find myself pretty much locked at the hip with crontab to keep my jobs working on a given schedule.  Go figure, as soon as I update my MacOS machine to Sierra and at the same time want to get Clam antivirus configured to auto-scan, I find out it’s not working in there.  It was a bit of a rabbit hole situation, where one thing lead to another.  In the end, I found out that cron has been deprecated in OS X/MacOS, and now Launchd is default and supported.  One of those things that rubs me the wrong way, but it is what it is since it’s not designed to be a server or a Unix system really.

I found /usr/lib/cron to be symlinked to /var/at, and /var/at has a cron.allow file (/var/at/cron.allow).  ‘At’ is also disabled by default.  ‘Atrun’ controls it.  I vi’ed /System/Library/LaunchDaemon/com.apple.atrun.plist and found out that cron was deprecated.

Here’s the skinny on Launchd.  plist files handle the applications that will run within it.  It’s an XML based file which tags a string name for it, the program application that will run, arguments, when it will run, and how frquently.  A description and logs are designated in there as well.  Once one is seen, it’s relatively simple to edit and create your own for any script or application you’d like to run.  That’s what I did.

/Library/LaunchDaemons – holds plist files for global services running as root
/Library/LaunchAgents – Holds plist files only used while users are logged on. (Run as ‘root’)
$HOME/Library/LaunchAgents – Hold plist files used when users are logged on. (run as the userid)

And on to the commands to control launchd… which kinda reminds me of systemd on newer Linux systems, disturbingly.
  • launchctl list – view currently registered plists
  • launchctl load -w <plist file> – adds and registers plist file, starting it.
  • launchctl unload -w <plist file> – remove and deregister plist file.

So, I wanted to have freshclam (clam antivirus script that updates clamav) run regularly.  I created this plist file (/Library/LaunchDaemons/net.clamav.freshclam.plist):

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”&gt;
<plist version=”1.0″>
<dict>
<key>Label</key>
<string>net.clamav.freshclam.plist</string>
<key>LowPriorityIO</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/freshclam</string>
<string>–quiet</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceDescription</key>
<string>Checks for and downloads updates to the ClamAV virus database.</string>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>60</integer>
</dict>
<key>StandardErrorPath</key>
<string>/tmp/freshclam.err</string>

<key>StandardOutPath</key>
<string>/tmp/freshclam.out</string>
</dict>
</plist>

 

And a script I wrote that uses clam antivirus to scan my directories is run by this plist (/Library/LaunchDaemons/net.clamav.clamscan.plist):

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”&gt;
<plist version=”1.0″>
<dict>
<key>Label</key>
<string>net.clamav.clamscan.plist</string>
<key>LowPriorityIO</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/clamscan.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceDescription</key>
<string>Runs a clamscan on the /Users subdirectories</string>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>60</integer>
</dict>
<key>StandardErrorPath</key>
<string>/tmp/clamscan.err</string>

<key>StandardOutPath</key>
<string>/tmp/clamscan.out</string>
</dict>
</plist>

 

After all is said and done, Launchd runs clam antivirus to scan my /Users subdirectories on a regular basis just in case I have something on here I shouldn’t.

It’d be nicer if there would just be an integrated scheduler with the Apple clam antivirus that would translate the scheduling into something that wouldn’t require learning how to build a Launchd script from the beginning.  I can see why they didn’t since it started on Linux and it’s easier to just toss something like this into crontab:

*/60 * * * * freshclam 2>&1 > /tmp/freshclam.log