Category Archives: Scripting & Coding
samba-tdb: automating Samba .tdb backups

I’ve been playing with the idea of running a standalone Samba server to replace an old NAS device that I’d like to repurpose. So I looked for some Samba best-practice ideas and one of them mentioned the periodic backing up and checking the small database files Samba uses for storing config and running info. I figured I’d automate the task with a script, and here we are.

Automaton.

Read More…

SELECT partOne FROM it ORDER BY howHard ASC

Oh geez, that was laboured…

Anyway. Who knew building a mere web page to make a quick SQL query to a database would would be something I thought warranted me waffling about it?
So here’s the deal: over the last few weeks I worked on a small side project at work to build a web page that would display the results of a SQL query/lookup.
This was new for me, since I’m far more used to maintaining the servers that host these things, not building the things themselves. Still, building this has been, dare I say, a rather fun time. After all the troubleshooting (though that holds its own appeal in satisfaction).

Image, uh, kind of related…

Read More…

Everyday Scripting: Launch ALL the game clients

You know what really grinds my gears? Opening game clients one by one when I want them all to open and update. So I engaged in a little every-day-scripting to stop the grinding. “Code” inside.

00-everyday-scripting-launch-all-the-game-clients

Read More…

Theme the Night

Let’s see just how much we can narrow the target audience for this post, shall we?

Do you use RSS feeds to keep up with the news? Do you host your own TT-RSS server to monitor those RSS feeds? Are you running a Sandstorm instance (bonus question: on the Oasis platform)? Do you run your TT-RSS server as a grain on your Sandstorm instance? Do you use the night.css TT-RSS theme? Finally, do the greyscaled images of the theme annoy you?

If you answered yes to /all/ of those questions, you are probably one of these: a) you are me (hello), b) you follow, and use, the news-upkeep methods I describe alarmingly closely, c) the internet brought you here when you searched for a solution to your annoyance and somehow we do the same things and this is exactly what you were looking, and we’re clearly cosmically connected or whatever (make of that what you will).

I knew it, from the Mormont we met...

I knew it, from the Mormont we met…

All that is a very long way of saying that I have made startlingly basic CSS modifications to my TT-RSS theme to stop it greyscaling the images in my feeds, and I’m about to describe just how I did it.

Read More…

Something about something…

something about me
Bet’cha thought I’d skip a month, ‘eh? Well you’d have bet wrong, and you’d have owed money to someone. But you probably didn’t bet, which is probably good. So good, in fact, you might feel generous enough to give, oh, half of what you would have bet to me instead? Except you can’t, because I haven’t put any way of accepting stranger’s money on here. So, yeah… Better luck next time.

Anyway, this post’s less free-game and more personal-blog (except my life is games and tech so, obviously, there’ll be some of that). Sorry. That’s just a little heads-up to the freebie-watchers so they don’t waste their time. You’re welcome.

something-about-something-01

Read More…

Roping rocks and snipping paper with Codecadamy

So for the last two weeks or so I have been monkeying about with injecting some coding knowledge into my skill set (or something…). This has primarily been through the Stanford CS106A (Programming Methodology) course and lectures on Udemy/YouTube, and resuming my long-abandoned and meagre progress on Codecademy. I spent an inordinate amount of time fiddling with the Rock, Paper, Scissors exercise on the latter’s JavaScript track, and because I want to feel like it was worthwhile I’m dropping it here, after the jump.

roping-rocks-and-snipping-paper-with-codecadamy

Read More…

SELECT partTwo FROM it ORDER BY howHard ASC

no this one’s not done yet but soon okay

thxbai

css.php