Skip to content

Instantly share code, notes, and snippets.

View 1token's full-sized avatar

Igor Zboran 1token

View GitHub Profile
@1token
1token / lingomarker.user.js
Last active July 15, 2025 15:06
LingoMarker
// ==UserScript==
// @name LingoMarker
// @namespace http://tampermonkey.net/
// @version 0.22
// @description Highlight and store selected words via LingoMarker backend
// @author 1token & AI Assistant
// @match https://*.reuters.com/*
// @match https://*.apnews.com/*
// @match https://apnews.com/*
// @match https://*.bbc.com/*
@1token
1token / lingea-dictionary.user.js
Last active April 21, 2025 12:05
Lingea Dictionary with Highlight
// ==UserScript==
// @name Lingea Dictionary with Highlight
// @namespace http://tampermonkey.net/
// @version 1.162
// @description Highlight and store selected words, open in Lingea dictionary
// @author 1token
// @include https://*.reuters.com/*
// @include https://*.apnews.com/*
// @include https://apnews.com/*
// @include https://*.bbc.com/*
@1token
1token / lingea-dictionary-translator.user.js
Last active March 27, 2025 16:52
Lingea Dictionary Translator
// ==UserScript==
// @name Lingea Dictionary
// @namespace http://tampermonkey.net/
// @version 1.10
// @description Open selected word in Lingea dictionary on any device
// @author Your Name
// @match *://*/*
// @grant none
// ==/UserScript==
@1token
1token / lingea-dictionary-lookup.user.js
Created March 27, 2025 07:11
Lingea Dictionary Lookup
// ==UserScript==
// @name Lingea Dictionary Lookup
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds a context menu item to translate selected text using Lingea dictionary.
// @author You
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_openInTab
// ==/UserScript==
@1token
1token / vscode-snakecase-to-camelcase.md
Created August 14, 2023 15:36 — forked from R3V1Z3/vscode-snakecase-to-camelcase.md
Convert all occurrences of snake_case to camelCase in VS Code. Windows/Linux walk-through here: https://youtu.be/vlHel1fN5_A

Convert snake_case to camelCase in VS Code

  • Press CTRL-H ( ⌥⌘F on Mac ).
  • Press ALT-R ( ⌥⌘R on Mac ).
  • Type _([a-zA-Z]).
  • Press TAB and type $1.
  • Press ALT-ENTER ( ⌥ENTER on Mac ).
  • Press F1 and type upper, then press ENTER.
  • Press CTRL-ALT-ENTER ( ⌥ENTER on Mac ).
@1token
1token / draft.txt
Created April 13, 2021 17:05
Decentralized Claims Provider
Let's say Alice has a video from the conference and she wants Bob to see it.
Prerequisites:
• Alice and Bob use independent, not federated providers.
• They both have signed-in into their Claims Provider and supplied some necessary information.
• Alice has set up her email provider to auto-forward emails from a specified Claims Provider email address e.g. claims@foo.com to another specified Claims Provider address e.g. dkim.signed.claims@foo.com.
• Alice knows where Bob's RS is.
• Alice has created a resource with her video and has given Bob access to this file.
• Bob has created a shared resource “Inbox” where any client that can demonstrate the ability to perform delegated tasks on behalf of RqP can create a small file.
@1token
1token / draft.txt
Last active April 4, 2021 11:09
Non-Interactive Claims Gathering / Verified RqP Client (UMA Deep Dive)
Non-Interactive Claims Gathering / Verified RqP Client (UMA Deep Dive)
Assume these pre-reqs:
• RO has shared a link with RqP.
• RO has set up his AS to anyone who can demonstrate control of RqP.
• RqP has presented his claims via the Webfinger (or Webfist as a fallback) protocol. One of the claims contains the URI of RqP's Client.
Flow steps:
1. The RqP uses a client to access an UMA protected resource at the RS.
2. Without an RPT, the RS returns 401 with a permission ticket and the URI of the AS.