How to make and apply SVN patch?

By default, patch ignores the directory portion of the target filename; it’s just looking for “httpd.conf” in your current working directory. If you want it to use the full path, you have to explicitly ask it to do so with the -p option: patch -p 0 < httpd.patch The number after -p is how many levels to remove from the filename … Read more

mv: cannot stat error : No such file or directory error

Normally, when a glob which does not match any filenames is expanded, it remains unchanged. Thus, you get results like this: $ rm .bak rm: cannot remove `.bak’: No such file or directory To avoid this we need to change the default value of nullglob variable. Read more about it here: http://mywiki.wooledge.org/NullGlob Hope this helps!

Extract file basename without path and extension in bash

You don’t have to call the external basename command. Instead, you could use the following commands: Note that this solution should work in all recent (post 2004) POSIX compliant shells, (e.g. bash, dash, ksh, etc.). Source: Shell Command Language 2.6.2 Parameter Expansion More on bash String Manipulations: http://tldp.org/LDP/LG/issue18/bash.html

What is difference between arm64 and armhf?

armhf stands for “arm hard float”, and is the name given to a debian port for arm processors (armv7+) that have hardware floating point support. On the beaglebone black, for example: Although other commands (such as uname -a or arch) will just show armv7l The vfpv3 listed under Features is what refers to the floating point support. Incidentally, armhf, if your processor supports it, basically supersedes Raspbian, which … Read more

How to open some ports on Ubuntu?

I know little about Linux.Today I create a VPN server on My ubuntu according to https://github.com/philplckthun/setup-simple-ipsec-l2tp-vpn But when I finish the installation. I use my iphone to connect the ipsect vpn,bur it shows the VPN Server has no response. The github document shows Ports 1701, 500 and 4500 must be opened for the VPN to work! So … Read more

Verify return code: 20 when testing OpenSSL

Your first error is – you need a certificate file. Or at least path to them, so that you can verify the OpenSSL.org certificate. Your second error – you don’t specify a file and -CAfile requires a single certificate (PEM or DER encoded). The easiest way to perform connection with OpenSSL.org: Download mozilla certificate bundle from here: http://curl.haxx.se/docs/caextract.html … Read more

How to cat <> a file containing code?

You only need a minimal change; single-quote the here-document delimiter after <<. or equivalently backslash-escape it: Without quoting, the here document will undergo variable substitution, backticks will be evaluated, etc, like you discovered. If you need to expand some, but not all, values, you need to individually escape the ones you want to prevent. will produce … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)