This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ grep '^menuentry' /boot/grub2/grub.cfg | |
| # Open '/etc/default/grub', and set GRUB_DEFAULT to the numeric entry value for the kernel you choose as the default. | |
| GRUB_DEFAULT=0 | |
| # Re-generate GRUB configuration. | |
| $ grub2-mkconfig -o /boot/grub2/grub.cfg | |
| $ reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm -Rf ~/Library/Caches/com.microsoft.VSCode.ShipIt | |
| sudo rm -Rf ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git pull --recurse-submodules | |
| git submodule update --remote --recursive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile more.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ./account/components/AccountLayout.js | |
| import React, { Component } from 'react'; | |
| class AccountLayout extends Component { | |
| render() { | |
| return ( | |
| <div className="EXEMPLE_ACCOUNT_LAYOUT"> | |
| {this.props.children} | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo nano /etc/NetworkManager/NetworkManager.conf | |
| ''' | |
| [device] | |
| wifi.scan-rand-mac-address=no | |
| ''' | |
| $ sudo ip link set <NETWORK_NAME> up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |