Skip to content

Instantly share code, notes, and snippets.

@mohno007
mohno007 / _slack_permalink_auto_redirect_README.md
Last active January 18, 2022 03:37
Open a Slack permalink automatically; not open in Slack App
@mohno007
mohno007 / google_meet_audio_control.user.js
Last active August 6, 2021 18:02
Add volume and mute controls for Google Meet
// ==UserScript==
// @name Google Meet Audio Control
// @namespace http://tampermonkey.net/
// @version 0.2.0
// @description Add volume and mute controls for Google Meet
// @author mohno007
// @license CC0-1.0
// @downloadURL https://gist.github.com/mohno007/49611fbf8f4675562e53cda2783cb0fa/raw/google_meet_audio_control.user.js
// @updateURL https://gist.github.com/mohno007/49611fbf8f4675562e53cda2783cb0fa/raw/google_meet_audio_control.user.js
// @match https://meet.google.com/*

Google Meet Push-to-Talk

Google Meetで、トランシーバやDiscordの同等機能のようにキーを押している間だけ通話ができるようにする拡張機能です。

This browser extension allow you to unmute a microphone while you are pressing a key. (like a transceiver or Discord Push-to-talk feature)

How to install

  1. Install one of these extensions you like in order to execute UserScript.
// ==UserScript==
// @name Search Siita with Google
// @namespace https://gist.github.com/mohno007/b426a347237d2b5454e6467d9eb512a1/
// @version 0.1
// @description Googleの検索結果にSiitaの検索結果も出してくれます
// @author You
// @match https://www.google.co.jp/search?*
// @match https://www.google.com/search?*
// @grant GM.xmlHttpRequest
// @connect siita.atware.co.jp
#!/bin/sh
. ~/.bin/mylib.sh
require_commands netstat
IPV4ADDR_REGEX='((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'
IPV6ADDR_REGEX='((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\
// ==UserScript==
// @name Hangout Comment
// @namespace https://gist.github.com/mohno007/9579408a62c34dc385458a75406381ec
// @version 0.1
// @description Emoji Reaction
// @author M
// @match https://meet.google.com/*
// @grant none
// ==/UserScript==
@mohno007
mohno007 / mf_cloud_keihi_missing_checker.js
Last active January 16, 2020 10:26
マネーフォワード経費(MF経費) で経費一覧で抜けている日付を一覧表示するBookmarklet
javascript:{
const datesOfMonth = date => {
const firstDate = firstOfMonth(date);
const until = nextFirstOfMonth(date);
const result = [];
for (let date = new Date(firstDate); +date < +until; date.addDays(1))
result.push(new Date(date));
return result;
};
const firstOfMonth = d=>{
// ==UserScript==
// @name CodeBuild Highlight
// @namespace https://gist.github.com/mohno007/4532f9f342cc75480fc86064ba34172b
// @version 0.2
// @description Codebuild Highlight
// @author mohno007
// @match https://*.console.aws.amazon.com/codesuite/codebuild/projects/*
// @grant none
// @licence CC0 1.0
// @updateURL https://gist.githubusercontent.com/mohno007/4532f9f342cc75480fc86064ba34172b/raw/codebuild_highlight.user.js
@mohno007
mohno007 / 00_README.md
Last active August 29, 2022 04:39
🔍 Java Search ☕ : Search Java SE API Documents from Chrome / Firefox Adress Bar

🔍 Java Search ☕ : Search Java SE API Documents from Adress Bar

This UserScript allow you to search Java API documents from address bar.

image

Chrome / Edge

  1. Install UserScript extension
@mohno007
mohno007 / output
Created January 25, 2019 03:47
Rust i64 + (i32 as i64) = i64 + i64(with sign extension) = i64
sh-3.2$ rustc test.rs
warning: literal out of range for i32
--> test.rs:2:40
|
2 | println!("{:x}", 0x100000000_i64 + 0xcafebabe_i32 as i64);
| ^^^^^^^^^^^^^^ help: consider using `u32` instead: `0xcafebabe_u32`
|
= note: #[warn(overflowing_literals)] on by default
= note: the literal `0xcafebabe_i32` (decimal `3405691582`) does not fit into an `i32` and will become `-889275714i32`