Trending
  • Lua: Retrieve partial ftp file at specific range – Method 2
  • Lua Nginx|Openresty: use session with redis sentinel
  • Lua / Openresty: work with redis master-slave replication and redis sentinel
  • Ubuntu 20.04: Setup redis master – slave replication and redis sentinel
Skip to content
May 21, 2022

Free Online Tutorials

Tutorials, Resources and Snippets

Skip to content
  • About us
  • Contact
  • Privacy Policy
  • Terms and Conditions

Category: Uncategorized

  • Uncategorized
lua

Lua: Retrieve partial ftp file at specific range

phptuts April 22, 2022
Read more: https://tools.ietf.org/id/draft-bryan-ftp-range-03.html We use extension library luasocket Edit file: https://github.com/lunarmodules/luasocket/blob/master/src/ftp.lua Local location: /usr/share/lua/5.1/socket/ftp.lua Add function: Edit function tget , add line if gett.rang then…
Continue Reading
  • Uncategorized
lua

Lua Nginx|Openresty: use session with redis cluster

phptuts April 15, 2022
Require: lua-resty-redis , lua-resty-lock , lua-resty-redis-cluster , lua-resty-session Example nginx.conf Now test http://localhost:8080/test/session
Continue Reading
  • Uncategorized
lua

Lua Nginx | Openresty: how to get POST data

phptuts April 14, 2022
Case 1: client_body_in_file_only off; Case 2: client_body_in_file_only clean; client_body_in_file_only on; We recommend using client_body_in_file_only clean; and read binary file when PUT content of file to…
Continue Reading
  • Uncategorized
lua

Lua snippet: check file exists

phptuts April 14, 2022
Lua snippet: check file exists Example: Online demo: here
Continue Reading
  • Uncategorized
lua

Lua snippet: copy file

phptuts April 12, 2022
Lua snippet: copy file Source: https://forum.cockos.com/showpost.php?&p=2360581&postcount=3 In this snippet we see method to get file size: new_file_sz = new_file:seek( "end" )
Continue Reading
  • Uncategorized
lua

Lua Nginx | Openresty : lua-resty-string error: undefined symbol: EVP_CIPHER_CTX_init

phptuts April 12, 2022
Sample code: Check log: tail /var/log/nginx/error.log Reason: lua-resty-string v0.15 remove EVP_CIPHER_CTX_init Check here Check version in file: /usr/local/share/lua/5.1/resty/string.lua lua-resty-string Version 0.09 You must update to…
Continue Reading
  • Uncategorized
Git logo

Luarocks/git error: The unauthenticated git protocol on port 9418 is no longer supported.

phptuts April 11, 2022
Example error: Fix: run this command first: git config --global url."https://".insteadOf git:// Done, retry: now, we have two files xmodem.lua rediscluster.lua in folder /usr/local/share/lua/5.1/resty/
Continue Reading
  • Uncategorized
openresty

Openresty: Difference between ngx.var.arg and ngx.req.get_uri_args

phptuts April 8, 2022
Both ngx.var.arg_x and ngx.req.get_uri_args["x"] are to get the parameters in the request uri, for example: https://tutorialspots.com/?test=1 In order to get the input parameter test, either…
Continue Reading
  • Uncategorized
mongodb-logo

MongoDB: how to bind ip with multiple ip address

phptuts December 12, 2021
MongoDB: how to bind ip with multiple ip address Solution for binding multiple IP Addresses bindIp: "127.0.0.1,xxx.xxx.xxx.xxx" Note: No spaces after commas
Continue Reading
  • Uncategorized
chrome stop redirect https 2

How to stop Chrome from redirecting to HTTPS

phptuts November 6, 2021
Step 1: navigate to chrome://net-internals/#hsts Step 2: scroll to the end of page: Delete domain security policies Enter your domain then click Delete
Continue Reading

Posts navigation

Previous page Page 1 Page 2 Page 3 … Page 20 Next page

Categories

  • ANDROID
  • CSS
  • golang
  • HTML
  • JS
  • LINUX
  • MYSQL
  • PHOTOSHOP
  • PHP
  • Uncategorized

Recent Search Terms

  • chicken9k2
  • installing libreoffice on centos 7
  • download repository remi remi-safe
  • php ssh2 centos 7
  • PM2][ERROR] Error: Script not found: /home/triton/index js [PM2][ERROR] Error: Script not found:service-worker
  • Windows 7 Error
  • install play on linux x86_64 xfce4
  • play on linux install x86_64 linux
  • letsencrypt r3 pem
  • Android 11 CLEARTEXT net permitted by network security policy for localhost

Archives

  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • January 2015
  • October 2014
  • September 2014
  • June 2014
  • March 2014
  • February 2014
  • August 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012

Blogroll

  • PHP official site
  • Free ebooks download

Ads

Recent Comments

  • Use Docker to run MongoDB Replica Set | Free Online Tutorials on How to fix docker and ufw security problem
  • How to fix docker and ufw security problem | Free Online Tutorials on Use Docker to run MongoDB Replica Set
  • Ubuntu: use Haproxy + Lua agent Mongodb replica set | Free Online Tutorials on Install Docker on Ubuntu 20.04.3
  • Use Docker to run MongoDB Replica Set | Free Online Tutorials on How To Set Up a Firewall with UFW on Ubuntu 20.04
  • Top 12 cách tạo tài khoản google drive unlimited không giới hạn dung lượng 2018 mới nhất năm 2022 - draculemihawk on How to register an unlimited storage account Google Drive

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Free Online Tutorials © 2022 - Designed By BfastMag Powered by WordPress