Place json file into $HOME/.local/share/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/
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 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 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 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 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
#!/bin/bash | |
set -eo pipefail | |
TARGET_BRANCH=master | |
GIT_DIR="$(git worktree list | head -n1 | cut -d' ' -f1)" | |
APPNAME="${GIT_DIR##*/}" | |
build_app() { |
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
#!/usr/bin/env python | |
import argparse | |
import time | |
import logging | |
import redis | |
import requests | |
import socket | |
import subprocess | |
from logging.handlers import RotatingFileHandler |
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
#!/bin/sh | |
cat << EOF | |
Status: 302 Temporary Redirect | |
Location: /cgi-bin/auth | |
Cache-Control: no-cache | |
<!doctype html> | |
<html> | |
<head> |
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
import glob | |
import os | |
from os import path | |
import psycopg2 | |
DATA_DIR = '[MEDIA_PATH]/accounts' | |
URL = '[DATABASE_URI]' |
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 whois drag | |
// @namespace https://github.com/Kjwon15/whois-drag | |
// @version 0.1 | |
// @description Fuck Whois.or.kr | |
// @author Kjwon15 | |
// @match https://xn--c79as89aj0e29b77z.xn--3e0b707e/*/whois.jsc* | |
// @grant none | |
// ==/UserScript== |
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
import sys | |
import requests | |
from pyquery import PyQuery | |
def get_content(link): | |
resp = requests.get( | |
link, |