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
| All | Todos | |
| systemctl list-unit-files | |
| Enabled | Habilitados | |
| systemctl list-unit-files | grep enabled | |
| Disabled | Deshabilitados | |
| systemctl list-unit-files | grep disabled |
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
| #!/bin/bash | |
| # | |
| # usage: ./genhaproxypem.sh domain.com | |
| # Generate a unique private key (KEY) | |
| sudo openssl genrsa -out $1.key 2048 | |
| # Generating a Certificate Signing Request (CSR) | |
| sudo openssl req -new -key $1.key -out $1.csr | |
| # Creating a Self-Signed Certificate (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
| cat file.in | sed '/^$/d' >file.out | |
| # | |
| sed -i '/^$/d' file.in.place |
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
| https://mycolor.space/gradient | |
| http://paletton.com/ |
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
| REVIEW: timedatectl list-timezones | |
| GET: timedatectl status | |
| SET: timedatectl set-timezone America/Mexico_City | |
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
| Actualizar una imagen (p.ej myssql) | |
| docker pull mysql | |
| docker stop my-mysql-container | |
| docker rm my-mysql-container | |
| docker run --name=my-mysql-container --restart=always -e MYSQL_ROOT_PASSWORD=mypwd -v /my/data/dir:/var/lib/mysql -d mysql | |
| show current docker images running | |
| docker ps | |
| show last images running and stopped |
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
| remove first column | |
| cat stuff.txt | awk '{$1=""}1' | awk '{$1=$1}1' | |
| remove empty lines | |
| cat stuff.txt | sed '/^$/d' | |
| sed -i '/^$/d' stuff.txt |
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
| WebServer alternatives: | |
| h2o: https://h2o.examp1e.net/configure/fastcgi_directives.html#fastcgi.connect | |
| gwan: | |
| lwan: | |
| Json Restful Storage Engine: | |
| https://kronuz.io/Xapiand/docs/quickstart/ | |
| FB PHP login: | |
| https://github.com/justfede/php-simple-facebook-login | |
| WP | |
| https://docs.woocommerce.com/document/handle-multiple-regions-currencies-woocommerce/ |
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
| put'em on: /usr/share/fonts/truetype/ | |
| sudo fc-cache -f -v |
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
| $str = 'In My Cart : 11 12 items'; | |
| preg_match_all('!\d+!', $str, $matches); | |
| print_r($matches); |
OlderNewer