Skip to content

Instantly share code, notes, and snippets.

@jimmywarting
jimmywarting / readme.md
Last active March 23, 2026 04:07
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@snosrap
snosrap / HTMLTableElement.prototype.fp_toTable.html
Last active June 25, 2025 09:39
Convert HTMLTableElement (with rowSpan and colSpan) into a JavaScript Array
<script type="text/javascript">
HTMLTableElement.prototype.fp_toTable = function(nullvalue = null) {
var columnCount = Array.from(this.rows).map(row => Array.from(row.cells).reduce((sum, cell) => sum + cell.colSpan, 0)).reduce((max, row) => Math.max(max, row), 0);
var itemCount = Array.from(this.rows).reduce((rsum, row) => rsum + Array.from(row.cells).reduce((csum, cell) => csum + (cell.colSpan * cell.rowSpan), 0), 0);
var rowCount = itemCount / columnCount;
var items = Array.apply(null, Array(itemCount));
tds = Array.from(this.getElementsByTagName('td'));
for(var i=0, ii=0; i<tds.length; i++, ii=items.indexOf(undefined, i)) {
items[ii] = tds[i].innerText;
for(var j=0;j<tds[i].colSpan;j++) {
@hoangmirs
hoangmirs / deploy-pm2.md
Last active January 12, 2026 16:30
Deploy pm2 guide

1. Preparing the server

Install git

sudo apt install git-all

Generate Server's SSH public key

ssh-keygen -t rsa -b 4096 -C "deploy"
cat ~/.ssh/id_rsa.pub
@Sauerstoffdioxid
Sauerstoffdioxid / googleurlparams.md
Last active April 1, 2026 09:18
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active April 2, 2026 20:36
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.