Skip to content

Instantly share code, notes, and snippets.

View acomagu's full-sized avatar

Yuki Ito acomagu

  • The Designium, Inc.
  • Musashimurayama-shi, Tokyo, JAPAN
  • X @acomagu_u
View GitHub Profile
@kepano
kepano / obsidian-web-clipper.js
Last active July 16, 2024 14:14
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@foriequal0
foriequal0 / StableNameStack.ts
Last active March 7, 2024 05:05
CDK StableNameStack
import { CfnElement, CfnResource, Stack } from "@aws-cdk/core";
import { makeUniqueId } from "@aws-cdk/core/lib/private/uniqueid";
import { Node } from "constructs";
import * as assert from "assert";
const PINNED_RESOURCE_NAMES_CONTEXT_KEY = "pinnedLogicalIds";
type PinnedLogicalIds = { [segment: string]: PinnedLogicalIds | string };
export class StableNameStack extends Stack {
@pastleo
pastleo / nm_l2tp_ipsec_vpn.md
Last active June 23, 2024 21:21
setup L2TP IPSEC VPN in archlinux using NetworkManager