Skip to content

Instantly share code, notes, and snippets.

View tribela's full-sized avatar
😺
😼

Jeong Arm tribela

😺
😼
View GitHub Profile
@tribela
tribela / mastodon_link_changer.user.js
Last active September 14, 2019 09:35
Mastodon link changer
@tribela
tribela / custom.scss
Created August 26, 2019 14:49
Qdon.space - custom scss
// 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 {
@tribela
tribela / mpris-yeelight.py
Last active July 28, 2019 12:22
Mpris listener to change yeelight color
import gi.repository.GLib
from dbus.mainloop.glib import DBusGMainLoop
from io import BytesIO
from pprint import pprint
import colorthief
import mpris2
import requests
@tribela
tribela / pre-receive
Last active May 21, 2019 23:51
Git push to deploy
#!/bin/bash
set -eo pipefail
TARGET_BRANCH=master
GIT_DIR="$(git worktree list | head -n1 | cut -d' ' -f1)"
APPNAME="${GIT_DIR##*/}"
build_app() {
@tribela
tribela / phone-scanner.py
Last active May 7, 2019 17:03
Phone scanner
#!/usr/bin/env python
import argparse
import time
import logging
import redis
import requests
import socket
import subprocess
from logging.handlers import RotatingFileHandler
@tribela
tribela / SETUP.md
Created January 8, 2019 14:17
KeepassXC-Browser TOR bundle browser

Place json file into $HOME/.local/share/tor-browser_en-US/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts/

@tribela
tribela / 404
Last active March 7, 2019 08:20
Captive portal CGI
#!/bin/sh
cat << EOF
Status: 302 Temporary Redirect
Location: /cgi-bin/auth
Cache-Control: no-cache
<!doctype html>
<html>
<head>
@tribela
tribela / fix_acc_duplicated.py
Last active October 5, 2018 17:29
[Mastodon] Force redownload missing remote media
import glob
import os
from os import path
import psycopg2
DATA_DIR = '[MEDIA_PATH]/accounts'
URL = '[DATABASE_URI]'
@tribela
tribela / whois-kisa.user.js
Last active May 26, 2018 15:26
whois.kisa.or.kr unlock drag
// ==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==
@tribela
tribela / search.py
Created February 18, 2018 18:38
naver cafe search
import sys
import requests
from pyquery import PyQuery
def get_content(link):
resp = requests.get(
link,