Skip to content

Instantly share code, notes, and snippets.

View hawkrives's full-sized avatar
🦋
Butterflies

Hawken Rives hawkrives

🦋
Butterflies
View GitHub Profile
@hawkrives
hawkrives / userscript.js
Last active February 23, 2024 10:10
Automated AWS SSO CLI - Login
// ==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==
@hawkrives
hawkrives / cmus-mediakeys.py
Last active May 7, 2024 00:41 — forked from drslump/mediakeys.py
Act upon media keys in a Mac under OSX
#!/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",
@hawkrives
hawkrives / README.md
Last active March 15, 2024 09:49 — forked from JoelBesada/README.md

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:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. 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.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
This file has been truncated, but you can view the full 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
@hawkrives
hawkrives / dabblet.css
Created March 19, 2012 15:04 — forked from JoelBesada/dabblet.css
CSS States
/* 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;
}