I get “fatal: unable to create threaded lstat” error when I run “git status” command

If the resource limit can’t be removed by the hosting provider, you could consider using git config to disable preloading of the index (threaded lstat). git config core.preloadIndex false If you need that setting when cloning the initial repository, then you will need to set it globally. git config –global core.preloadIndex false

How to display only different rows using diff (bash)

a.txt: 1;john;125;3 1;tom;56;2 2;jack;10;5 b.txt: 1;john;125;3 1;tom;58;2 2;jack;10;5 Use comm: comm -13 a.txt b.txt 1;tom;58;2 The command line options to comm are pretty straight-forward: -1 suppress column 1 (lines unique to FILE1) -2 suppress column 2 (lines unique to FILE2) -3 suppress column 3 (lines that appear in both files)

How to find which Yocto Project recipe populates a particular file on an image root filesystem

This is exact use case for oe-pkgdata-util script and its subcommand find-path. That script is part of openembedded-core. See this example (executed in OE build environment, i.e. bitbake works): tom@pc:~/oe/build> oe-pkgdata-util find-path /lib/ld-2.24.so glibc: /lib/ld-2.24.so You can clearly see that this library belongs to glibc recipe. oe-pkgdata-util has more useful subcommands to see information about … Read more

Golang: How to cross compile on Linux for Windows

To build from Linux to Windows, you need to set the environment variables GOOS to Windows and GOARCH to amd64. On Bash or ZSH: % GOOS=windows GOARCH=amd64 go build For more details see: https://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5 A description of possible values for GOOS and GOARCH is available here: https://golang.org/doc/install/source#environment If your package requires CGO then you need … Read more

How can I capture network packets per PID? [closed]

Not directly a tcpdump, but can give you info about the network traffic, check https://bytefreaks.net/gnulinux/how-to-capture-all-network-traffic-of-a-single-process strace -f -e trace=network -s 10000 <PROCESS WITH ARGUMENTS>; If the process is already started and you know its PID you can use the following 1 strace -f -e trace=network -s 10000 -p <PID>; Another alternative is more complex, using … Read more

Pass private key password to openvpn command directly in Ubuntu 10.10 [closed]

In my openvpn.conf: … askpass /etc/openvpn/jdoe.pass <<< new line here ca /etc/openvpn/jdoe_ca.crt cert /etc/openvpn/jdoe.crt key /etc/openvpn/jdoe.key … The file /etc/openvpn/jdoe.pass just contains the password. You can chmod this file to 600. This method save my life… 😉 Ubuntu 12.04.4 LTS OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built … Read more