Place json file into $HOME/.local/share/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/
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
import gi.repository.GLib | |
from dbus.mainloop.glib import DBusGMainLoop | |
from io import BytesIO | |
from pprint import pprint | |
import colorthief | |
import mpris2 | |
import requests |
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
// scss-lint:disable SelectorDepth, SelectorFormat, QualifyingElement, HexLength | |
$color-qdon: #ffc0fb; | |
$color-twingyeo: #f8ac59; | |
$color-twingyeo-edge: #ffdd00; | |
$color-planet: #4f71db; | |
$color-jmm: #aaff00; | |
// Header image on /about/more | |
.public-layout .column-0 .public-account-header__image { |
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
// ==UserScript== | |
// @name Link changer | |
// @namespace https://github.com/Kjwon15/mastodon-link-change | |
// @updateURL https://gist.githubusercontent.com/Kjwon15/33c6e32279bf3c40868db41741a24c0a/raw/mastodon_link_changer.user.js | |
// @version 0.2 | |
// @description Change link on mastodon | |
// @author Kjwon15 | |
// @match https://*/web/* | |
// @grant none | |
// ==/UserScript== |
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
import os | |
from itertools import product | |
from mastodon import Mastodon | |
app = Mastodon( | |
client_id=os.getenv('MASTODON_CLIENT_KEY'), | |
client_secret=os.getenv('MASTODON_CLIENT_SECRET'), | |
access_token=os.getenv('MASTODON_ACCESS_TOKEN'), | |
api_base_url=os.getenv('MASTODON_API_BASE_URL') |
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
# frozen_string_literal: true | |
Account | |
.local.without_suspended | |
.where('accounts.created_at < ?', 30.days.ago) | |
.where(note: '') | |
.where(display_name: '') | |
.where(avatar_file_name: nil) | |
.where( | |
Account.arel_table[:fields].eq(nil).or( | |
Account.arel_table[:fields].eq([]) |
I hereby claim:
- I am tribela on github.
- I am kjwon15 (https://keybase.io/kjwon15) on keybase.
- I have a public key whose fingerprint is 27E6 CA88 CFBE 2D33 8679 7090 A400 5593 7FB2 BA89
To claim this, I am signing this object:
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
@keyframes glitch-anim-text { | |
0% { | |
transform: none; | |
clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%, 0 5vh, 100% 5vh, 100% 100%, 0 100%); | |
} | |
9%, 11% { | |
transform: scale(1, 1); |
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
# Run "bundle exec sidekiq -q tmp -c 32" to run in side of main sidekiq jobs to prevent huge latency on push queue | |
dry_run = 1 # Change this to nil to run actually | |
inboxes = Account.inboxes | |
worker = ActivityPub::DeliveryWorker.new | |
worker.sidekiq_options_hash['retry'] = 0 | |
worker.sidekiq_options_hash['queue'] = 'tmp' | |
processed = 0 |
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
FROM elasticsearch:7.14.2 | |
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch analysis-nori | |
HEALTHCHECK CMD curl -f http://localhost:9200/_cluster/health |