Friday, October 30, 2015
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
Monday, October 19, 2015
Saturday, October 17, 2015
OSX: use Clover Configurator
First mount EFI partition:
Identify EFI device
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
Wednesday, October 14, 2015
PostgreSQL: compile pgloader
Compile SBCL with core compression support:
Compile pgloader:
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
Labels:
postgresql
Tuesday, October 13, 2015
PostgreSQL: generate create table SQL
pg_dump -t 'my_schema.my_table' --schema-only
Labels:
postgresql
Subscribe to:
Posts (Atom)