Skip to content

Instantly share code, notes, and snippets.

@remeika
remeika / csvParser.mjs
Created July 8, 2023 01:45
Parse CSVs in a Cloudflare Worker
// Since Cloudflare Workers do not support the Node.js threading API, we need
// to use the browser version of the CSV parser.
import {parse} from "csv-parse/browser/esm";
// Worker entrypoint
export default {
async fetch(request, env) {
return await handleRequest(request, env);
}
}
@remeika
remeika / apple-maps.proto
Last active February 2, 2020 18:02
Apple Maps Collections URL Scheme
syntax = "proto3";
package maps;
message Collection {
string name = 1;
message Coordinates {
double latitude = 1;
double longitude = 2;

Keybase proof

I hereby claim:

  • I am remeika on github.
  • I am remeika (https://keybase.io/remeika) on keybase.
  • I have a public key ASDOMXIqQ6p6Y00EceepN3BasZpOvOACb9LADJa7mYOligo

To claim this, I am signing this object:

@remeika
remeika / Caddyfile
Created September 12, 2017 05:11 — forked from citizenrich/Caddyfile
iHRIS docker (WIP)
localhost:8081
gzip
tls self_signed
fastcgi / 127.0.0.1:9000
@remeika
remeika / grep-logs.sh
Last active August 29, 2015 14:24
Grep through all log files, compressed and otherwise.
# Let's say you've got some log files that look like this:
# my.log
# my.log.1
# my.log.2.gz
# my.log.3.gz
# To seach for text across all log files, just do this:
find . -name "my.log*" -exec zcat "{}" + | grep 'log line text'