Skip to content

Instantly share code, notes, and snippets.

View theowenyoung's full-sized avatar

Owen theowenyoung

View GitHub Profile
@leyafo
leyafo / schema.sql
Last active May 19, 2024 00:05
slippod sql schema
CREATE TABLE IF NOT EXISTS cards (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
entry TEXT NOT NULL,
created_at TIMESTAMP DEFAULT (strftime('%s', 'now')) NOT NULL,
updated_at TIMESTAMP DEFAULT (strftime('%s', 'now')) NOT NULL
);
CREATE VIRTUAL TABLE IF NOT EXISTS cards_fts USING fts5(
entry,
content='cards',
@khalidx
khalidx / node-typescript-esm.md
Last active July 3, 2024 18:04
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@cld4h
cld4h / README.md
Last active July 22, 2024 08:51
Bypass the GFW; clash fake-ip and tproxy; iptables and transparent proxy on Linux; 在Linux上通过 iptables 以及 clash 配置透明代理用于本机及局域网翻墙网关; Linux 翻墙路由器配置

This article show you the ultimate way to set up a transparent proxy on Linux using clash and iptables to bypass the GFW in China.

We use:

You can go to github gist to download all files mentioned in this article.

@xiaopc
xiaopc / gaWorker.js
Last active April 29, 2024 02:25
Google Analytics 4 Proxy with Cloudflare Workers
// 2023.4.23 更新,修复 gtag.js 加了个回车导致失效的问题
// 2023.3.2 更新,修复上报到 region*.google-analytics.com 未被代理的问题
addEventListener('fetch', (event) => {
// 这里可以加 filter
return event.respondWith(handleRequest(event));
});
// worker 应用的路由地址,末尾不加 '/'
const DOMAIN = 'https://example.workers.dev/routerpath';
@ityonemo
ityonemo / test.md
Last active July 19, 2024 06:53
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@keerok
keerok / README.md
Last active October 17, 2021 14:51
client-side prototype pollution gadget using cross-origin embedded reddit posts
Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
@briandominick
briandominick / asciidoc-static.adoc
Last active July 6, 2024 19:39
Static Site Generators with AsciiDoc Support

There are 28 static site generators that support AsciiDoc sourcing.

<!--
# sandbox url
https://jsfiddle.net/quaeadk1/
-->
<style>
.confetti-container {
perspective: 700px;
position: absolute;
@stungeye
stungeye / crypto_news.json
Created December 18, 2017 04:42
News Site RSS Feeds
[
{
"url": "http://money.cnn.com",
"rss": "http://rss.cnn.com/rss/money_topstories.rss"
},
{
"url": "http://thehill.com",
"rss": "http://thehill.com/rss/syndicator/19110"
},
{