Moved to a repo at https://github.com/Geczy/coolify-migration
| -- mod-version:1 -- lite-xl 1.16 | |
| -- NAME : helloworld | |
| -- GOAL : to render some text to the top right corner of the editor. | |
| -- import the lite-xl "core" package | |
| local core = require "core" | |
| local command = require "core.command" | |
| local style = require "core.style" | |
| local config = require "core.config" |
| const WebSocketProxy = new Proxy(window.WebSocket, { | |
| construct(target, args) { | |
| console.log("Proxying WebSocket connection", ...args); | |
| const ws = new target(...args); | |
| // Configurable hooks | |
| ws.hooks = { | |
| beforeSend: () => null, | |
| beforeReceive: () => null | |
| }; |
This gist is an example of how you can simply install and run and extended Postgres using docker-compose. It assumes that you have docker and docker-compose installed and running on your workstation.
- Requires
dockeranddocker-compose - Clone via http:
git clone https://gist.github.com/b0b7e06943bd389560184d948bdc2d5b.git - Make
load-extensions.shexecutable - Build the image:
docker-compose build
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
Sublime Merge includes a command line tool, smerge, to work with git, subversion, mercurial projects on the command line. This can be used to open projects in Sublime Merge using the command line.
- Sublime Merge installed in your system within
Applicationsfolder
Setup
If you're reading this, you probably suggested to somebody that a particular technical problem could be solved with a blockchain.
Blockchains aren't a desirable thing; they're defined by having trustless consensus, which necessarily has to involve some form of costly signaling to work; that's what prevents attacks like sybil attacks.
In other words: blockchains must be expensive to operate, to work effectively. This makes it a last-resort solution, when you truly have no other options available for solving your problem; in almost every case you want a cheaper and less complex solution than a blockchain.
In particular, if your usecase is commercial, then you do not need or want trustless consensus. This especially includes usecases like supply chain tracking, ticketing, and so on. The whole *p
⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates
What this will cover
- Host a static website at S3
- Redirect
www.website.comtowebsite.com - Website can be an SPA (requiring all requests to return
index.html) - Free AWS SSL certs
- Deployment with CDN invalidation
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |