Skip to content

Instantly share code, notes, and snippets.

View paveljurca's full-sized avatar
🎯
Focusing

Pavel paveljurca

🎯
Focusing
View GitHub Profile
@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active August 8, 2026 06:13
The truth about Svelte

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:

@zbeekman
zbeekman / GH-CF-strict-SSL-w-CDN.md
Last active July 26, 2026 15:23
Setting up GH-pages with custom domain, strict (end-to-end) SSL with CloudFlare DNS & CDN

Custom domains, GH-pages, Cloudflare and strict SSL end-to-end encryption

Why I wrote this

Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active September 11, 2026 08:40
set -e, -u, -o, -x pipefail explanation
@markiv
markiv / LeanCanvasTemplate.md
Created February 20, 2018 13:24
A simple lean canvas template in Markdown

Lean Canvas

Problem

List your top 1-3 problems.

Existing Alternatives

List how these problems are solved today.

@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active August 24, 2026 12:55
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@hhhenry
hhhenry / .bat
Last active September 22, 2023 15:45
bat
@echo off
:menu
echo 1. mojo_data
echo 2. mojo_activity
echo 3. android_data
echo 4. ci_mojo_data
echo 5. ci_mojo_activity
echo 6. ci_android
echo 7. add image
@DoNotSpamPls
DoNotSpamPls / gist:6a94317cdb4265906dfc9243cc847678
Last active July 8, 2023 18:27
Why Discord will (probably) never get a self-hosted server option.
  1. It's not a lot of times when Discord has a major outage. Most of the months have 100% uptime, and most of the outages are minor, and don't affect a lot of users. With self-hosted servers, it's unlikely you'll ever reach that high uptimes. Also, the Discord team can't guarantee the stability of the whole service if there are lurking self-hosted servers.
  2. You will lose a lot of the versatility of having a cloud-hosted server. You won't be able to change the region in less than a second if something goes wrong, you'll have to fix it yourself.
  3. Discord works on the rolling release model, which means they push a lot of code daily to make the service better. This means that, if you had a self-hosted servers, you'd have to upgrade the server pretty much daily, which will get annoying really quickly, and a lot of fragmentation between server versions will occur.
  4. By self-hosting servers, there is the possibility of a security breach. Some unscrupulous server owners could get their users' IPs and sell them,
@koorchik
koorchik / perl6-consistency.md
Last active December 7, 2017 19:20
Perl6 consistency example

In most programming languages you have a shorter form for incrementing a value

In JavaScript you can write:

a = a + 10; // original form
a += 10; // shorter form

a = a * 10; // original form
a *= 10; // shorter form
@Rhynorater
Rhynorater / XSSbookmarklet.js
Last active May 18, 2020 04:23
XSS Discovery Bookmarklet
javascript:(function()%7Bvar j %3D document.getElementsByTagName("input")%3Bif (document.location.href.indexOf("%3F")>-1)%7Bvar l %3D "%26"%3B%7Delse%7Bvar l %3D "%3F"%3B%7Dfor (i%3D0%3Bi<j.length%3Bi%2B%2B)%7Bl%2B%3Dj%5Bi%5D.getAttribute("name")%2B'%3D"><test1234>%26'%7Ddocument.location %3D document.location%2Bl%7D)()
@nolanlawson
nolanlawson / index.html
Created November 3, 2017 18:19
Repro Edge console issue
<html>
<pre id=display></pre>
<script>
try {
console.log.apply(console, ['this', 'should', 'work'])
display.innerText = 'successfully wrote to console'
} catch (e) {
display.innerText = 'failed to write to console: ' + e
}
</script>