Monday, October 26, 2015

Git: cancel staged file update

With git log check which commit is one prior the update. Then you can reset it using:
git reset  filename
git checkout filename

Git: cancel merge

With git log check which commit is one prior the merge. Then you can reset it using:
git reset --hard commit_sha

Saturday, October 17, 2015

OSX: use Clover Configurator

First mount EFI partition:
Identify EFI device
diskutil list
Then mount device, e.g.
mkdir /Volumes/EFI
sudo mount_msdos /dev/disk0s1 /Volumes/EFI
Then select /Volumes/EFI/EFI/CLOVER/config.plist in Clover configurator

OSX: Errors in audio_cloverALC-110_v1.0h

See https://github.com/toleda/audio_CloverALC/issues/43

OSX: Clover install on El Capitan

How To Install OS X Yosemite Using Clover

Wednesday, October 14, 2015

PostgreSQL: compile pgloader

Compile SBCL with core compression support:
git clone git://git.code.sf.net/p/sbcl/sbcl
cd sbcl
./make.sh --with-sb-core-compression --with-sb-thread
sudo ./install.sh

Compile pgloader:
git clone https://github.com/dimitri/pgloader.git
cd pgloader
make
sudo cp ./build/bin/pgloader /usr/bin

Tuesday, October 13, 2015

PostgreSQL: generate create table SQL

pg_dump -t 'my_schema.my_table' --schema-only