red and black.
red?
| // ==UserScript== | |
| // @name Automated AWS SSO CLI - Login | |
| // @namespace http://glencoakley.org | |
| // @match https://*.awsapps.com/start/user-consent/authorize.html?clientId=* | |
| // @grant none | |
| // @version 1.0 | |
| // @author Glen Coakley | |
| // @description Automatically presses the "Sign in to AWS CLI" button. Inspired by Nicholas Hawkes' "Auto AWS SSO CLI - Login" at https://gist.github.com/hawkesnc/ae9fc22fc5d17ac250f6376b0591161c | |
| // @homepage https://gist.github.com/GlenCoakley/d3a82a41b2e578b29875625ec6ffa11e | |
| // ==/UserScript== |
red and black.
red?
| #!/usr/bin/python | |
| import subprocess | |
| # PyObjC-related imports | |
| from AppKit import NSApplication, NSSystemDefined, NSApplicationActivationPolicyProhibited | |
| from PyObjCTools import AppHelper | |
| KEY_UP = 11 |
| command: "echo Hello World!", | |
| refreshFrequency: 5000, | |
| render: function (output) { | |
| return "<div><h1>" + output + "</h1></div>"; | |
| }, | |
| style: [ | |
| "top: 20px", |
This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
Create a new Gist with a command.js and command.json file, or simply fork this one.
Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.
Add some metadata to the command.json file:
| (?:s(?:(?:u(?:b(?:(?:s(?:t(?:a(?:n(?:t(?:i(?:a(?:l(?:(?:i(?:s(?:m|t)|a|ty|ze)|ly|ness))?|t(?:i(?:on|ve)|e|or)|bility)|v(?:e(?:(?:ly|ness))?|al(?:ly)?|i(?:ty|ze))|fy|ous|ze))?|c(?:e(?:less)?|h)|dard(?:ize)?)|lagmit(?:e|ic)|ge|tion)|r(?:a(?:t(?:o(?:s(?:pher(?:e|ic)|e)|r)|i(?:ve)?|al|e|um)|ct(?:ion)?)|uct(?:(?:ion(?:al)?|ur(?:al|e)))?|iate)|itu(?:t(?:i(?:on(?:a(?:l(?:ly)?|ry))?|ng(?:ly)?|ve(?:ly)?)|e(?:(?:d|r))?|able)|ent)|o(?:r(?:eroom|y)|ck)|yl(?:ar|e)|ernal)|e(?:r(?:v(?:i(?:en(?:t(?:(?:ly|ness))?|c(?:e|y))|ate)|e)|o(?:sa|us)|ies|rate)|c(?:u(?:t(?:e|ive)|rity)|retar(?:ial|y)|t(?:ion)?|ive)|quen(?:t(?:(?:ial(?:ly)?|ly|ness))?|c(?:e|y))|ns(?:u(?:al|ous)|ation|ible)|pt(?:uple)?|mi(?:fusa|tone)|xtuple|wer|t|ssile|gment|a)|i(?:d(?:i(?:ar(?:i(?:e|ly|ness)|y)|z(?:a(?:ble|tion)|e(?:r)?)|ng|st)|e(?:(?:n(?:c(?:e|y)|t)|r))?|y)|st(?:(?:en(?:c(?:e|y)|t(?:ial)?)|ingly))?|l(?:ic(?:ate|ic)|l)|m(?:i(?:lation|ous)|ple)|zar(?:ship)?|nuous)|c(?:ri(?:pt(?:(?:i(?:on(?:ist)?|ve(?:ly)?)|ure))?|b(?:e(?:r(?:ship)?)?|able)|ve(?:r)?)|apu |
| /* CSS States */ | |
| body { | |
| background: url(http://dabblet.com/img/noise.png); | |
| background-color: #F5F2F0; | |
| font-family: Georgia, serif; | |
| font-size: 18px; | |
| line-height: 1.6em; | |
| text-shadow: 0 2px 0 white; | |
| color: #222; | |
| } |