Automated SSL/TLS Cert in CVP
Although CloudVision runs on CentOS 7 and uses nginx as a front end for the services, you can’t just use letsencrypt to issue a cert, as it seems like CV will overwrite it each time....
/home/rabin.io/notes
Although CloudVision runs on CentOS 7 and uses nginx as a front end for the services, you can’t just use letsencrypt to issue a cert, as it seems like CV will overwrite it each time....
I love using a dark theme on my system, currently I’m running the Adapta theme. But not all applications looks great in dark themes, some need tweaking, this is a quick hack to overwrite...
Convert a PEM file to DER (crt etc)
|
1 |
$ openssl x509 -outform der -in certificate.pem -out certificate.crt |
Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM
|
1 |
$ openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes |
Convert a PEM certificate file and a private key to...
This is a more specific use case of running GUI application with Docker, the procedure is pretty simple (and most option are common for most GUI application), You mount the UNIX socket for the...
The Setup Having this setup where Machine A like to connect the Internet via Machine B.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
+-------------------+ +-----------------+ | | | Machine B | | Machine A | | (the gateway) | | (the client) | | | | | | | | eth0 +----------+ eth0 eth1 | +-------------------+ +-------------+---+ | | .-~~~-. | .- ~ ~-( )_ _ | / ~ -. | | internet \<----+ \ .' ~- . _____________ . -~ |
Add the following lines to the iptables
|
1 2 3 |
iptables -I FORWARD -o eth0 -m comment --comment "NAT" -j ACCEPT iptables -I FORWARD -i eth0 -m comment --comment "NAT" -j ACCEPT iptables -I POSTROUTING -o eth1 -m comment --comment "NAT" -j MASQUERADE -t nat |
and make sure to enable forwarding on Machine B
|
1 |
sysctl -w net.ipv4.ip_forward=1 |
GitKraken is a very nice tool to work with git, it really simplify some of the common tasks which most users need to work with git, and the nice GUI is another plus. Long...
This is a short story of how Ansible and SSH (using the default ControlMaster path format) bite me. Lets take this network layout for example, where we have the same IP behind different machines....
I need to manage several insensate of WordPress installations, some of them are in Hebrew and one in Arabic, and when using wp-cli to manage the installation, e.g when running plugin update, wp-cli will...
TL;DR Set your IDE to listen for incoming connections On the CLI set the session key,
|
1 |
export XDEBUG_CONFIG="idekey=netbeans-xdebug" |
Set XDEBUG configuration (can be set as environment variables or in-line parameters)
|
1 2 3 4 5 6 7 8 |
# in-line php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 \ -dxdebug.remote_host=127.0.0.1 -dxdebug.remote_connect_back=0 /path/to/script.php # Using an environment variable export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0" # Next, start our script like we would normally do: php /path/to/script.php |
PS. set remote_host IP...
I needed to have comment in a PHP ini file where the prefix for commenting is ; , This is something I didn’t find in the documentation for the comment filter, so I looked...