# apt install privoxy tor
This file contains 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
/* プラウザのJSコンソールに貼り付けて実行させると音が鳴る */ | |
(function() { | |
const n2hz = note => 440 * Math.pow(2, (note - 57) / 12); | |
const ctx = new AudioContext(); | |
const notes = [65, 72, 77]; | |
const noteStep = 0.078; | |
for (let delay = 0; delay < 2; delay++) { | |
const stime = ctx.currentTime + 0.08 + delay * 0.29; |
This file contains 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
// ==UserScript== | |
// @name Mastodonステータスのふぁぼとかを見るやつ | |
// @namespace https://js4.in/ns/ | |
// @version 1.0.7 | |
// @description | |
// @author Miyagi Hikaru | |
// @include /^https?:\/\/[^\/]+\/(?:@\w+|users\/\w+\/statuses)\/\d+/ | |
// @grant none | |
// @website https://gist.github.com/hcmiya/453ba90d849d5b4ff0d25ccee94df6c8 | |
// @updateURL https://gist.github.com/hcmiya/453ba90d849d5b4ff0d25ccee94df6c8/raw/mastodon-no-fav-toka-miru-yatu.user.js |
- Install to Debian Buster
- All of services needed to run Mastodon instance (tor, postgresql, redis, nginx) will be installed to the same server.
# apt install postgresql redis nodejs npm ruby tor ffmpeg imagemagick git \
nginx wget bundler protobuf-compiler iptables-persistent ncurses-term vim \
gcc g++ make patch ruby-dev libprotobuf-dev libidn11-dev libpq-dev libicu-dev libxml2-dev libxslt1-dev
This file contains 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
// ==UserScript== | |
// @name マストドンに定型文機能を付けるやつ | |
// @namespace https://js4.in/ns/ | |
// @include * | |
// @version 1.0.11 | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @grant GM_deleteValue | |
// @author Miyagi Hikaru | |
// @website https://gist.github.com/hcmiya/3645e7ef572685c56e58fca5e1375e0e |
This file contains 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
// ==UserScript== | |
// @name カスタム絵文字をゲタにするやつ | |
// @namespace https://js4.in/ns/ | |
// @include https://* | |
// @version 1.0.5 | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @author Miyagi Hikaru | |
// @website https://gist.github.com/hcmiya/26c4b3d966c6415179cea3176afc06e6 | |
// @updateURL https://gist.github.com/hcmiya/26c4b3d966c6415179cea3176afc06e6/raw/mastodon-custom-emoji-geta.user.js |