This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#################################################################################### | |
# Slack Bash console script for sending messages. | |
#################################################################################### | |
# Installation | |
# $ curl -s https://gist.githubusercontent.com/andkirby/67a774513215d7ba06384186dd441d9e/raw --output /usr/bin/slack | |
# $ chmod +x /usr/bin/slack | |
#################################################################################### | |
# USAGE | |
# Send message to slack channel/user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
!(() => document.querySelectorAll('.easy-card-list').length < 1 | |
? window.alert('EasyRetro board columns not found') | |
: (() => { | |
/* show all the comments first */ | |
document.querySelectorAll('[aria-label="New comment"]').forEach(el => el.click()); | |
navigator.clipboard.writeText( | |
[...document.querySelectorAll('.easy-card-list')] | |
/* for each column: get column header */ | |
.map(l => [`# ${l.querySelector('.column-header').textContent.trim()}\n`] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- create a table to track failed MFA verification attempts | |
create table if not exists hub_admin.mfa_failed_verification_attempts( | |
user_id uuid not null references auth.users(id) on delete cascade | |
, factor_id uuid not null | |
, failed_at timestamp with time zone not null default now() | |
, deleted_at timestamp with time zone | |
); | |
create index if not exists idx_mfa_failed_verification_attempts_user_id on hub_admin.mfa_failed_verification_attempts(user_id); | |
-- a database function that takes a jsonb event and returns a jsonb response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::HashMap; | |
use std::env; | |
use std::fs::File; | |
use std::io::{Read, Write}; | |
fn predefined_symbols() -> HashMap<&'static str, u16> { | |
let mut symbols: HashMap<&str, u16> = HashMap::new(); | |
symbols.insert("SP", 0); | |
symbols.insert("LCL", 1); | |
symbols.insert("ARG", 2); |
OlderNewer