I hereby claim:
- I am macfreek on github.
- I am macfreek (https://keybase.io/macfreek) on keybase.
- I have a public key whose fingerprint is 1062 DBF1 AFBE 51B6 A293 F7BA 5F14 E385 D0EE 5BEA
To claim this, I am signing this object:
These two files should help you to export passwords from a Mac OS X keychain for import into 1password. | |
Assumptions: | |
1) You have some experience with scripting/are a power-user. These scripts worked for me | |
but they haven't been extensively tested and if they don't work, you're on your own! | |
Please read this whole document before starting this process. If any of it seems | |
incomprehensible/frightening/over your head please do not use these scripts. You will | |
probably do something Very Bad and I wouldn't want that. | |
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous | |
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they |
// Test how open() or ifstream() behave when reading a directory, file or stream. | |
// Written 2015 by Freek Dijkstra | |
// Contributed to public domain | |
// See http://stackoverflow.com/questions/29310166/check-if-a-fstream-is-either-a-file-or-directory | |
#include <iostream> | |
#include <fstream> | |
#include <cerrno> | |
#include <cstring> |
I hereby claim:
To claim this, I am signing this object: