228 karma · joined Mar 23, 2012 (14y ago) · 83 submissions
Sysadmin, Dev, Voider of Warranties.
Projects: http://dev.cbcdn.com/
irc:cbdev:irc
comment 11y ago · link · parent
https://github.com/cmail-mta/cmail if you're interested.
33.
Rtl2dot – Generate C callgraphs from gcc rtldumps(github.com ↗)
8 points · by _cbdev · 11y ago · discuss
comment 11y ago · link · parent
As for the implementation by mhodgson, one thing I noticed is that it uses the slightly newer PQexecPrepared API, which only works from protocol version 3.0 and upwards (which was introduced with PostgreSQL 7.4, so not really a problem). He also seems to use some more calls to the libgit2 API, mainly for copying and creating buffers for SQL statements (which I did with static allocation, at the expense of having hardcoded schema and table names).
All in all, mhodgson's implementation seems more feature-complete (and well-tested) than mine, yet also considerably more complex.
As for submitting it, I'd like to have some confirmation that it works first :) Unfortunately, I'm currently too busy to really set up some tests for it, but once I have the time, I just might ;)
comment 11y ago · link · parent
https://github.com/cbdevnet/libgit2-backends/blob/master/pos...
comment 11y ago · link · parent
https://github.com/cbdevnet/libgit2-backends/blob/master/pos...
Caveat Emptor: I did not test this since somehow the Debian package of libgit2-dev seems not to include the GIT_* constants. It should probably work, though.
37.
Yahoo Chat – A Eulogy (2013)(ridiculousfish.com ↗)
2 points · by _cbdev · 11y ago · discuss
comment 11y ago · link · parent
Archiveopteryx I did not know, but thanks for the tip!
Using their databases as the basis for new tools has the obvious benefits of cross-compatibility, though there's always the drawback of database cruft that accumulates by virtue of differences in implementation or project goals.
comment 11y ago · link · parent
SQLite has a pretty great C API making it really easy to programmatically store, modify and retrieve data, which made it my first choice for runtime configuration data. Adding another storage backend for the mail data would have meant a lot more code paths to support.
SQLite also has a lot of tools surrounding and supporting it (I particularly like SQLiteStudio) which allows querying/modifying/analyzing your mails with a huge number of programs, and using SQL - something I've found really useful!
With a sufficiently sane schema (which I hope we've achieved), transforming from the database format to any other format becomes really easy!
Also, since cmail is not really being developed with the intent to have people access their mail with a shell account (the main reason being that cmail users should not have to map to system users), supporting access formats on the server side is less of a priority - preferred access is via POP (already available) and IMAP (once it's done). The user database feature allows cmail users that ARE system users to control their own database.
An exporter to convert to/from Maildir is a planned feature :)
comment 11y ago · link · parent
Each user can optionally be assigned a "user database", storing only the mails in her own inbox (which also allows users to have direct control over their own mail database).
If this is not used, mail is stored in the master database.
As you said, most normal deployments should not run into those limits, but its worth keeping them in mind.
comment 11y ago · link · parent
That was my impression of the whole thing, too. I've long had an exim configuration I could decorate my walls with, without understanding what most of it did or if it was secure.
Recently, I got so fed up I began writing my own mail server suite. It's still pretty basic and in development, but it does have some of the features you mention, namely
> SMTP
> POP3
> WebMail (though rudimentary)
> WebAdmin
> Multi-Domain support
In the pipeline, but not yet ready
> IMAP
> Plugins
Some of the goals of the project are to have a mail processing suite with a clear interface between the modules, as well as easy extensibility and configuration.
Me and some people I've talked into testing it already run some instances, and so far it has proved pretty stable.
Caveat: The backend is an SQLite database, so if your use-case is serving a lot of clients, there might be some lock contention.
If you're interested, check out https://github.com/cmail-mta / http://cmail.rocks/
comment 11y ago · link · parent
When comparing to other education text books though I'd not be able to complain. Neither am I, as I still think it was worth it, if just to support the author and to have an addition to the bookshelf.
comment 11y ago · link · parent
It's the guide I recommend to everyone who wants to learn about network programming in C. I actually purchased the (slightly expensive) printed version and never regretted it :)
http://www.lulu.com/shop/brian-hall/beejs-guide-to-network-p...
45.
Extremely lightweight git+ssh access control(github.com ↗)
1 points · by _cbdev · 11y ago · discuss
comment 11y ago · link · parent
Generate a keypair on an airgapped machine, keep the private part on a secure external medium (eg. CF Card in a bank safe).
Have the public key on your normal machine, write your journal in normal text files (use a ramfs if you worry about it being restored by forensics) and encrypt against the public journal key. Decryption is only possible with the private part, the public part can even be, well, public. :)
comment 12y ago · link · parent
http://sshkeybox.com/img/keybox_dia.jpg
Not only does it create a single point of failure in the Administration, but the third case illustrates that this is some kind of feature, advertising blocking normal SSH traffic to the server network, instead replacing it with HTTPS traffic.
Please don't do this. Just accept SSH and learn to deal with it. If you can't, maybe systems administration is not for you and you should pay someone to do it.
comment 12y ago · link · parent
Uh-Huh. Pretty strong words there. Lets for a moment ignore the fact that this claim is ridiculous and companies or individuals making it should never be trusted, I can't find anything on your webpage that goes beyond marketing copy and "it's Magic!" rhetoric.
Seriously, not one technical statement?
To stand any chance in that market I'd strongly advise you to include more detailed descriptions of how your "magic" works. And you can't use full-page photographs in it.
comment 12y ago · link · parent
Actually, most Switches are just fine and don't need replacing. IPv6 is a Layer 3 Protocol, most "Normal" Switches operate on Layer 2 (The Ethernet Level, which stays the same and (in the best case) does neither know nor care what goes on in Layers above). These can stay and most wouldn't even need to be reconfigured.
As for Layer 3 Switches (The ones that do some amount of Routing, too), most "brand-name" Models purchased in the last 10 Years should support IPv6.
comment 12y ago · link · parent
So, while I agree with your 'Or at least, it's supposed to :)', there's an awful lot of people whose claim to 'Hackerdom' is going to some kind of 'Hacker School' or '-Weekend'.
comment 12y ago · link · parent
The barrier of entry to this thing seems to be the goodwill of "someone".
comment 12y ago · link · parent
Second: The 'Learn more' presentation actually says nothing, nevermind that the start page is equally uninformative. Not a single word about techniques used or what makes this service supposedly 'safe' or why I should trust it with my data.
I am highly suspicious of anything claiming to be "safe" or "secure", expecially when it is this dodgy around details. I'd not advise anyone to actually use this for anything sensitive.
EDIT: Just noticed the tiny light-grey 'About' link at the bottom, which gives a little more info. Still, I absolutely dislike the site design.
comment 12y ago · link · parent
This also has the side effect of this implementation not supporting IPv6, among others.
So please, don't use this as anything other than an example how not to do sockets.
If you want to learn how to do it right, I can recommend the excellent "Guide to Network Programming Using Internet Sockets" by Brian "Beej Jorgensen" Hall (You should definitely buy the printed version, just to support him :)).
54.
1 points · by _cbdev · 12y ago · discuss
comment 13y ago · link · parent