Quick Gentoo help

If you ever accidentally delete /usr/bin/emerge (happened to me when I ran emerge -aC dev-lang/python-exec), don't panic. That file is just a wrapper for /usr/lib/python-exec/python2.7/emerge. So you can fix your system by temporarily using /usr/lib/python-exec/python2.7/emerge.

Yes, it's that simple. This is also a useful way to execute pylint and pyflakes on python3 files while still having your system's default python be python2. Simply run /usr/lib/python-exec/python3.3/pyflakes (substituting whichever version of python you use instead of 3.3) and you're set. Yes, it was actually designed to work that way.

In case you want more to read, read this. In case you're more interested in playing than reading, click here.

Read more »

Automating Let's Encrypt No Sudo for 9 Domains

Let's Encrypt Nosudo Scripts 0.1 [sig]

Let's Encrypt is a free SSL certificate authority that is designed to let users encrypt their website correctly. This has let me save around $81 creating certificates for all my domains (9 domains with Let's Encrypt, one without). Let's Encrypt was designed for the overly-trusting user who is willing to run code they download off github as root. Experience and paranoia teaches us not to run untrusted code as root or even as a user that isn't fully sandboxed. How do we deal with this? This technical document is for the admin who can read code and find vulnerabilities in Bash, Python, and protocols, not for the faint of heart.

Let's Encrypt Nosudo was designed for that. It takes a few hours to sign 10 certificates, so maybe 30 minutes per cert. But Let's Encrypt only issues certs with duration of 3 months which means that every 2-3 months you have to spend 30 minutes per cert. If you have 9 certs, that's a huge time investment. So like me you want to automate Let's Encrypt so that you don't have to spend 5 hours every 2-3 months. This is what these scripts are for.

Read more »

Links

Sono.us: link shortener for the author
AltSci Network: sites by same author
AltSci Blog: Unified blog for Javantea. Search this blog and others by the same author

Read more »

New Bicycle

I just bought a beautiful new bicycle. I've been riding my previous bike for nearly a decade. It's seen some tough time and I've tried to replace it more than once but it has been the only one to survive. Perhaps it's sunny disposition has turned potential thieves hearts or perhaps its resale value (less than scrap) has never attracted them. Of course wheels, brakes, and seats have been stolen from my old bike, mostly while parked outside Kinokuniya overnight which have made the bicycle fairly expensive to keep running while I lived in the International district in Seattle. I spent a small fortune on tubes when I accidentally put presta tubes in a rim sized for schrader. Anyway, the bicycle was on the heavy side (35 lbs, 77 kg), the shocks never really worked properly besides lightening the blow from some road features, and the bottom bracket is making a terrible noise despite replacing it. If I didn't buy a new bike I suspect that it would outlast me, but since I am prepared to the point of paranoia to prevent theft of this new bicycle, I am going to recycle the old bicycle. Perhaps someone can make odds or ends of the pieces or maybe the bottom bracket problem is not as bad as it seemed. This bicycle proves that cheap bicycles can survive a long time, but also that they are as expensive as expensive bicycles when you factor in maintenance and theft. The obvious benefit of a new bicycle is weight. This bicycle is 28 lbs (62 kg), a savings of 7 lbs (15 kg). Along with the bicycle I bought clipless pedals and shoes to go with them. While this adds a few pounds (since I'll have to carry shoes) it makes up for that in spades by delivering effective power to the pedal. There is some some dispute about the value of clipless pedals but certainly practically every serious cyclist can't be wrong (and yet still we test).

So what bicycle, what mods, and what changes will I plan to make? I bought the Black Kona Dew, which is a hybrid, has no suspension, v brakes, and stock everything. I added Shimano PD-M520 clipless pedals and I plan to switch out the quick release for allen and add a nice bike computer to track my progress. I'm going to add a front light when I start riding in the dark. For now I'll just jerry-rig a flashlight if I find myself out too late or too early. No other modifications? I plan to add a few dozen grams of paint so that is isn't just black. That's right, I'm going to make it three colors. One of my favorite bicycle colors was a purple/green pearlescent but I don't want my bike to stand out as much as that. Instead, I will be trying to make it a little less flat. I'm normally fine with matte black but there's something about a black bicycle. You can track the bicycle's progress here: Bike index link. Unless something bad happens, the page should just be a brief description of the bike with maybe a photo.

Cycling is for many people a recreation but for me it is a mode of transportation from one place to another. This bicycle isn't supposed to get me in shape, but I suppose it will. This bicycle isn't supposed to be a fast mode of transport in case of emergency, but it can be that. This bicycle isn't supposed to make it so I can spend time with friends away from civilization because getting away from civilization without a car isn't something a person can do very easily. Not just here, anywhere. The furthest from civilization you can get without a car anywhere is how far you can ride minus your current depth in civilization, so a place like Seattle which is very deep in civilization might not be possible to reach nature. For example, riding from Seattle Ferry Terminal to Falls View Campground in Olympic National Forest is a 42.6 mile ride with a huge elevation change. Though it would probably take 10 hours, it would be possible for me in my current shape. Without the elevation change, this was cake for 16-year-old me, riding 80 miles per day for 4 days in a row on a well-tuned mountain bike (yes, with shocks) was not a big problem.

Read more »

« previous next »