I hereby claim:
- I am iamcryptoki on github.
- I am cryptoki (https://keybase.io/cryptoki) on keybase.
- I have a public key ASBIMoe475AgBX5AuLGPQPYE9NyyYKTQY6H8OlbXi4FlBgo
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Plugin Name: Kubernetes Liveness Probe Exception | |
| */ | |
| add_filter('redirect_canonical', function($redirect_url, $requested_url) { | |
| $K8S_POD_IP = getenv('K8S_POD_IP'); | |
| $LIVENESS_URL = "http://" . $K8S_POD_IP . ":8080/index.php"; | |
| if ($requested_url == $LIVENESS_URL) { |
I hereby claim:
To claim this, I am signing this object:
| # Export dump particular database. | |
| $ kubectl exec {{podName}} -n {{namespace}} -- mysqldump -u {{dbUser}} -p{{password}} {{DatabaseName}} > <scriptName>.sql | |
| # Export dump all databases. | |
| $ kubectl exec {{podName}} -n {{namespace}} -- mysqldump -u {{dbUser}} -p{{password}} --all-databases > <scriptName>.sql | |
| # Restore a database from a dump. | |
| $ kubectl exec -it {{podName}} -n {{namespace}} -- mysql -u {{dbUser}} -p{{password}} {{DatabaseName}} < <scriptName>.sql |
| $ modprobe bridge | |
| $ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf | |
| $ sysctl -p /etc/sysctl.conf | |
| sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory | |
| # SOLUTION | |
| $ modprobe br_netfilter | |
| $ sysctl -p /etc/sysctl.conf |
| $ sudo nano /etc/NetworkManager/NetworkManager.conf | |
| ''' | |
| [device] | |
| wifi.scan-rand-mac-address=no | |
| ''' | |
| $ sudo ip link set <NETWORK_NAME> up |
| firewall-cmd --permanent --add-port=2376/tcp | |
| firewall-cmd --permanent --add-port=2377/tcp | |
| firewall-cmd --permanent --add-port=7946/tcp | |
| firewall-cmd --permanent --add-port=80/tcp | |
| firewall-cmd --permanent --add-port=7946/udp | |
| firewall-cmd --permanent --add-port=4789/udp | |
| firewall-cmd --reload | |
| systemctl restart docker |
| $ cd path/to/your/package | |
| $ python setup.py sdist | |
| $ pip install twine | |
| # twine upload --repository-url https://test.pypi.org/legacy/ dist/* | |
| $ twine upload dist/* | |
| # twine upload --repository testpypi dist/* | |
| # pip install --index-url https://test.pypi.org/simple/ <YOUR_PACKAGE> | |
| $ pip install <YOUR_PACKAGE> |
| // ./account/components/AccountLayout.js | |
| import React, { Component } from 'react'; | |
| class AccountLayout extends Component { | |
| render() { | |
| return ( | |
| <div className="EXEMPLE_ACCOUNT_LAYOUT"> | |
| {this.props.children} | |
| </div> |
| openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile more.crt |
| git pull --recurse-submodules | |
| git submodule update --remote --recursive |