A basic installation of Node.js, Express, and Socket.io served over https:// using a Letsencrypt SSL certificate.
- Spin up DO droplet
- Set up DNS
- Access the server via SSH
| #!/bin/sh | |
| # vim: ts=8 | |
| ######################################################################### | |
| # # | |
| # MySQL performance tuning primer script # | |
| # Writen by: Matthew Montgomery # | |
| # Report bugs to: https://bugs.launchpad.net/mysql-tuning-primer # | |
| # Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) # | |
| # Version: 1.6-r1 Released: 2011-08-06 # |
| # Optimized MySQL configuration for cPanel servers by Kani Baspinar - Updated June 2016 | |
| # | |
| # The settings provided below are a starting point for a 24GB RAM server with 8 CPU cores. | |
| # If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
| # To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
| # Test your configuration ; https://launchpad.net/mysql-tuning-primer | |
| # or | |
| # http://blog.mysqltuner.com/download/ | |
| # Note that if there is NO comment beside a setting, then you don't need to adjust it. | |
| # |
| // MIT License | |
| // | |
| // Copyright (c) 2019 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
A basic installation of Node.js, Express, and Socket.io served over https:// using a Letsencrypt SSL certificate.
| FROM php:7.4-alpine | |
| # Install dev dependencies | |
| RUN apk add --no-cache --virtual .build-deps \ | |
| $PHPIZE_DEPS \ | |
| curl-dev \ | |
| imagemagick-dev \ | |
| libtool \ | |
| libxml2-dev \ | |
| postgresql-dev \ |
| // Use the Parola library to scroll text on the display | |
| // | |
| // Demonstrates the use of the scrolling function to display text received | |
| // from the serial interface | |
| // | |
| // User can enter text on the serial monitor and this will display as a | |
| // scrolling message on the display. | |
| // Speed for the display is controlled by a pot on SPEED_IN analog in. | |
| // Scrolling direction is controlled by a switch on DIRECTION_SET digital in. | |
| // Invert ON/OFF is set by a switch on INVERT_SET digital in. |
| # A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows | |
| # | |
| # Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only: | |
| # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
| # | |
| # To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ ) | |
| # .\WhateverScriptName.ps1 | |
| # ------------------------------------------------------------------------------------------- | |
| # Script by ThioJoe - https://github.com/ThioJoe | |
| // Set Telegram bot webhook url | |
| https://api.telegram.org/bot<Your-Bot-token>/setWebhook?url=<Your-webhook-url> | |
| // Get Telegram bot webhook url info | |
| https://api.telegram.org/bot<Your-Bot-token>/getWebhookInfo | |
| // Get Telegram bot file path | |
| https://api.telegram.org/bot<Your-Bot-token>/getFile?file_id=<Your-file-id> | |
| // Download Telegram bot file / Image |
| void main(){ | |
| ExampleReq exampleReq = ExampleReq( | |
| items: [ | |
| Item( | |
| idProduct: 1, | |
| isWholesaler: 1, | |
| quantity: 12, | |
| variants: [1,2,3], | |
| ), |