Skip to content

Instantly share code, notes, and snippets.

View giodamelio's full-sized avatar
🏗️
Doing a thing

Gio d'Amelio giodamelio

🏗️
Doing a thing
  • Seattle, WA
View GitHub Profile
@giodamelio
giodamelio / index.html
Last active April 5, 2018 23:40
IPFS Simple Static Site
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello IPFS!</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<h1>Hello IPFS!</h1>
</body>
@giodamelio
giodamelio / no-visual-1.8.patch
Last active August 2, 2018 17:08
A patch to remove $VISUAL support from NNN
diff --git a/nnn.c b/nnn.c
index a3a422a..6b26138 100644
--- a/nnn.c
+++ b/nnn.c
@@ -2028,8 +2028,6 @@ show_help(char *path)
dprintf(fd, "SHELL: %s\n", getenv("SHELL"));
if (getenv("SHLVL"))
dprintf(fd, "SHLVL: %s\n", getenv("SHLVL"));
- if (getenv("VISUAL"))
- dprintf(fd, "VISUAL: %s\n", getenv("VISUAL"));
@giodamelio
giodamelio / key.md
Created February 27, 2019 23:15
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

healthCheckResponse.engine,
healthCheckResponse.status,
healthCheckResponse.version,
healthCheckResponse.deployOffset
@giodamelio
giodamelio / outline-bookmarklet.js
Last active April 4, 2022 13:01
A bookmarklet to process the current page to Outline.com and redirect afterwards.
fetch(
"https://outlineapi.com/v3/parse_article?source_url=" +
encodeURIComponent(window.location)
)
.then(res => res.json())
.then(body => {
if (body.error) {
return alert(`Outline Bookmarklet Error: ${body.error}`);
}
window.location.href = `https://outline.com/${body.data.short_code}`
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "OneShot",
"description": "Top-level data in `cmd.toml` files",
"type": "object",
"properties": {
"bin": {
"anyOf": [
{
"$ref": "#/definitions/Bin"