Skip to content

Change application core dump directory with c program

I have one scenario where I want to change directory for core dumps by current application using c program. I have one option to do chdir() to specified directory. But this changes the home directory of application. And I am looking for some APIs which can change directory for core dumps only. Answer You can …

How to install libvips on Alpine 3.8?

I try to install vips-dev package to alpine linux 3.8. But get following error: How to solve it? Answer This is a known packaging issue of vips-dev on edge/testing: https://bugs.alpinelinux.org/issues/9561 As a workaround, make sure to add both edge/main and edge/testing repositories to your apk command: Upda…

L2CAP IOS + Linux (Bluez)

I’m trying to make a simple L2CAP Socket communication between IOS and a Linux PC. I’ve been able to: Create an L2CAP connection between two Linux machines (using example code from https://github.com/atwilc3000/sample/tree/master/Bluetooth) Create an L2CAP connection between two Iphones (using exa…

How do I pass –homedir to git when signing using GPG?

I have a custom location where I have my GPG keys, which is different from the default ~/.gnupg directory. I need to sign a git commit using GPG, but I can’t find any option to specify the custom location to Git: it always searches in the default one. Is there an option for this? I tried modifying: prog…

`sudo` with command substitution

I’m working with a remote machine that requires sudo for most docker commands. I often have to perform multiple repetitive commands to stop docker containers, etc: sudo docker stop <container_name>. Normally, I’d use docker stop $(docker ps -q) to stop all the results of docker ps -q, but si…