A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Folding@Home FAHClient on Mac OSX
Mac [23:49 ~$] pkgutil --file-info /usr/local/bin/FAHClient volume: / path: /usr/local/bin/FAHClient pkgid: org.foldingathome.fahclient.pkg pkg-version: 7.5.1 install-time: 1585049394 uid: 0 gid: 0 mode: 755 Mac [23:50 ~$] pkgutil --files org.foldingathome.fahclient.pkg Applications Applications/Folding@home Applications/Folding@home/Web Control.url Library Library/LaunchDaemons Library/LaunchDaemons/org.foldingathome.fahclient.plist usr usr/local usr/local/bin usr/local/bin/FAHClient usr/local/bin/FAHCoreWrapper
How to install libxmlsec1 via Alien::LibXMLSec on Mac OSX
- Make sure openssl is installed
- Download Alien::LibXMLSec (it's not on CPAN)
- Unzip it & change to dir
- perl Makefile.PL
- PKG_CONFIG_PATH=/usr/local/Cellar/openssl@1.1/1.1.1k/lib/pkgconfig make
- make
- make install
Note: To get the Makefile.PL to run (i.e. step 3½), you may also need to:
- git clone Alien::Build from its git repo
- do a `dzil build` on that
- then set the PERL5LIB to point to the built instance of Alien::Build
- ...and also make sure its deps are in PERL5LIB.
How to install DBD::Pg Perl module on Mac OSX
Make sure `pg_config` is in your path, and that's it! DBD::Pg will build normally.
How to use dbdeployer to easily deploy multiple versions of MySQL for testing
Download dbdeployer, it is awesome.
Caveat: For best results, you should have a recent version of your operating system installed.
dbdeployer cheat sheet
export PATH=/path/to/dbdeployer:$PATH
dbdeployer downloads tree --flavour mysql --OS linux
dbdeployer downloads get-unpack [filename here]
dbdeployer deploy single 8.0.22
dbdeployer sandboxes
dbdeployer use msb_8_0_22
dbdeployer sandboxes --full-info
Note: Your databases will be installed into e.g. ~/opt/mysql
And a special set of controls will be put in ~/sandboxes
Working with dbdeployer
~/sandboxes/msb_8_0_22/my sql -h 127.0.0.1 --port 8022 ...etc
~/sandboxes/msb_8_0_22/metadata socket
Labels:
database,
dbdeployer,
mysql,
socket,
testing
Subscribe to:
Posts (Atom)