sudo lxc config device override sup eth0 ipv4.address=10.120.245.106This tutorial provides a step-by-step walkthrough for installing the Frappe Framework and ERPNext v14/15. While it is best compatible with Ubuntu 22.04 LTS for Production or development usecase, these steps also support Ubuntu 24.04 for development which i dont recommend anyway but you can try also with help of uv/pipx.
sudo apt-get update && sudo apt-get upgradesudo apt-get install software-properties-common \
nginx wget zip unzip git nano curl file certbot python3-pip \
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
| # first install required package | |
| sudo apt-get install ippserver | |
| # create working directory for example PDF | |
| mkdir PDF | |
| # example for working virtual printer | |
| ippserver -2 -M "HP" -P -d /home/pop/PDF -k -c /home/pop/PDF -m "XM80" -n 127.0.0.1 -l "ipp://127.0.0.1:8085" -p 8085 -vvv "Dev Printer1" |
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
| --first install: | |
| sudo apt install v4l2loopback-dkms | |
| sudo apt install ffmpeg | |
| --then run: | |
| ffmpeg -loop 1 -re -i /path/to/picture.png -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video0 | |
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
| var temp = $.event.dispatch; | |
| $.event.dispatch = function(event, arg2, arg3){ | |
| // the event that is passed is the native event, if you want the jquery | |
| // event, you need the fixed event. | |
| console.log(jQuery.event.fix( event ), arg2, arg3); | |
| temp.call(this, event, arg2, arg3); | |
| } |
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
| #!/usr/bin/python3 | |
| import datetime | |
| import os | |
| import subprocess | |
| import tempfile | |
| import shutil | |
| from dateutil.parser import parse | |
| # Container names which you want to backup |
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
| first install xdebug: | |
| sudo apt-get install php7.4-xdebug | |
| edit config file with the following, also check the zend version (20190902) if it is different on your machine: | |
| sudo nano /etc/php/7.4/mods-available/xdebug.ini | |
| zend_extension="/usr/lib/php/20190902/xdebug.so" | |
| xdebug.mode = debug | |
| xdebug.start_with_request = yes |
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 certbot certonly --manual --preferred-challenges=dns-01 --email email@gmail.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.site1.com -d *.site2.net |
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 this code in your theme functions.php | |
| add_filter( 'wpwhpro/run/actions/custom_action/return_args', 'wpwh_fire_my_custom_logic', 10, 3 ); | |
| function wpwh_fire_my_custom_logic( $return_args, $identifier, $response_body ){ | |
| //If the identifier doesn't match, do nothing | |
| if( $identifier == 'update_status' ){ | |
| $order_id = WPWHPRO()->helpers->validate_request_value( $response_body['content'], 'order_id' ); | |
| $new_status = WPWHPRO()->helpers->validate_request_value( $response_body['content'], 'new_status' ); | |
| $order = new WC_Order($order_id); | |
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 apt-get update | |
| sudo apt install php-xdebug | |
| # [7.2] path may be different on your system, check it. | |
| sudo nano /etc/php/7.2/mods-available/xdebug.ini | |
| Add the following code into xdebug.ini file: | |
| zend_extension=/usr/lib/php/20151012/xdebug.so # [20151012] path may be different on your system, check it. |
NewerOlder