The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://love2.io Chinese site
| # === Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers) === | |
| # | |
| # by Fotis Evangelou, developer of Engintron (engintron.com) | |
| # | |
| # ~ Updated February 2021 ~ | |
| # | |
| # | |
| # The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
| # If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
| # |
https://github.com/PacktPublishing free to download books code by Packet
https://love2.io Chinese site
| # ------------------------------------------- | |
| # Simple PostgreSQL Configuration File v. 8.4 | |
| # ------------------------------------------- | |
| # This file provides a simple configuration with the most common options | |
| # which most users need to modify for running PostgreSQL in production, | |
| # including extensive notes on how to set each of these. If your configuration | |
| # needs are more specific, then use the standard postgresql.conf, or add | |
| # additional configuration options to the bottom of this file. | |
| # |
| SELECT | |
| tmp.ipAddress, | |
| -- Calculate how many connections are being held by this IP address. | |
| COUNT( * ) AS ipAddressCount, | |
| -- For each connection, the TIME column represent how many SECONDS it has been in | |
| -- its current state. Running some aggregates will give us a fuzzy picture of what | |
| -- the connections from this IP address is doing. | |
| FLOOR( AVG( tmp.time ) ) AS timeAVG, |
2019-06-03
Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.
| 1.0.0.0/24 | |
| 1.1.1.0/24 | |
| 1.2.3.0/24 | |
| 8.6.48.0/21 | |
| 8.8.8.0/24 | |
| 8.35.192.0/21 | |
| 8.35.200.0/21 | |
| 8.34.216.0/21 | |
| 8.34.208.0/21 | |
| 23.236.48.0/20 |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}'
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
| #!/bin/bash -e | |
| IFADDR="192.168.3.1/24" | |
| if [[ ! ip link show docker0 ]]; then | |
| ip link add docker0 type bridge | |
| ip addr add "$IFADDR" dev docker0 | |
| ip link set docker0 up | |
| iptables -t nat -A POSTROUTING -s "$IFADDR" ! -d "$IFADDR" -j MASQUERADE | |
| fi |
| mike@rbci:~$ psql -U postgres | |
| psql (9.0.3) | |
| Type "help" for help. | |
| postgres=# update pg_database set datallowconn = TRUE where datname = 'template0'; | |
| UPDATE 1 | |
| postgres=# \c template0 | |
| You are now connected to database "template0". | |
| template0=# update pg_database set datistemplate = FALSE where datname = 'template1'; | |
| UPDATE 1 |
| if [ "$(basename $0)" = "install-odoo.sh" ]; then | |
| echo "don't run install-odoo.sh, because it's not fully automated script. Copy, paste and execute commands from this file manually" | |
| exit 0 | |
| fi | |
| #### Detect type of system manager | |
| export SYSTEM='' | |
| pidof systemd && export SYSTEM='systemd' |