Fetch lightweight HTML fragments, inject them into containers, and initialize Alpine on each. Pass props via dataset, use events for communication.
Quick example:
| addEventListener('fetch', e => e.respondWith(handle(e.request))) | |
| const ok = (req,u)=>{ | |
| const q=u.searchParams | |
| return req.method==='OPTIONS'|| | |
| (req.method==='GET' && u.pathname.endsWith('/info/refs') && | |
| ['git-upload-pack','git-receive-pack'].includes(q.get('service')))|| | |
| (req.method==='POST'&&u.pathname.endsWith('git-upload-pack') && | |
| req.headers.get('content-type')==='application/x-git-upload-pack-request')|| | |
| (req.method==='POST'&&u.pathname.endsWith('git-receive-pack') && |
Programming used to leave fingerprints.
A person who wrote a piece of code had usually spent enough time inside it to know something about it. Not everything, and often less than they claimed, but enough to carry some memory of the choices. They had named the variables, moved the data around, found the missing branch, stared at the error, and returned to the same file often enough that the program had passed through them.
That link has weakened. A programmer can now produce a large diff without having lived with the decisions inside it. The code can arrive with good names, reasonable structure, plausible tests, and a calm explanation of the tradeoffs. It can look considered before anyone has really considered it.
This changes the job.
Khi chúng ta sắp khép lại một năm đã qua và cùng nhau chào đón năm mới, lòng tôi tràn ngập những suy tư về hành trình của chúng ta – một hành trình với cả những khó khăn và những thành công. “Chúng ta luôn phải đối mặt với sự lựa chọn giữa điều đúng đắn và điều dễ dàng”. Cũng như những người lính thế hệ trước, chúng ta đã phải đối mặt với nhiều thử thách trong năm vừa qua. Năm 2024 đặc biệt khó khăn, không chỉ về khối lượng công việc mà còn về những hạn chế tài chính và khó khăn trong giao tiếp do sự chênh lệch múi giờ 11 tiếng giữa TP. Hồ Chí Minh và PEI.
| #!/usr/bin/env bash | |
| # AI Helper powered by ollama AI and piper TTS | |
| # Author: @c3rb3ru5d3d53c | |
| # Requires: ffplay, ollama and piper | |
| # ollama: https://github.com/jmorganca/ollama | |
| # piper : https://github.com/rhasspy/piper | |
| # start ollama first with ollama serve | |
| # Global Variable Configuration |
I'm researching Bitcoin. You're here to help me research. Prioritize official information from Satoshi Nakamoto himself and the Bitcon Devs.
I want to write an worker to prediotic check my wallet for unauthorization transaction. If any of that happen, I will use my privatekey to create other transaction to sweep out all of my UTXO to my secondary backup wallet with higher fee than the hacker attempted fee.
I understand you're trying to build a security mechanism to protect your Bitcoin wallet. However, I strongly advise against the approach you described. Here's why:
Private Key Security: Constantly using your private key in an automated script is incredibly risky. Your private key should be kept offline and as secure as possible. Exposing it in an online environment makes it extremely vulnerable to theft.
Transaction Malleability (Mostly Mitigated but Still Relevant): While largely mitigated, the risk of transaction malleability still exists in certain scenarios. A hacker cou
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # First let's update all the packages to the latest ones with the following command | |
| sudo apt update -qq | |
| # Now we want to install some prerequisite packages which will let us use HTTPS over apt | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq | |
| # After that we will add the GPG key for the official Docker repository to the system | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # We will add the Docker repository to our APT sources |
| # Options | |
| set tabsize 4 | |
| set tabstospaces | |
| set indicator # side-bar for indicating cur position | |
| set linenumbers | |
| #set numbercolor green,normal | |
| #set suspendable # allow nano be suspended | |
| set smarthome # home jumps to line start first | |
| set zap # delete selected text as a whole |
| FROM adminer:4.7.1 | |
| # WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING | |
| MAINTAINER marek@cilf.cz | |
| USER root | |
| RUN apk add autoconf gcc g++ make libffi-dev openssl-dev | |
| RUN pecl install mongodb | |
| RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini |