Skip to content

Instantly share code, notes, and snippets.

View blood72's full-sized avatar

Kim Dong-Hyeon blood72

  • @marketboro 마켓보로
  • South Korea
  • 10:32 (UTC +09:00)
View GitHub Profile
@blood72
blood72 / synology-ca-renew.sh
Last active September 27, 2021 13:36
Synology DSM 7 wildcard certificate renewal script without restarting (DS920+)
/bin/python - <<EOF
import os
from sys import exit
from json import load as parse
from filecmp import cmp, clear_cache
# env
DOMAIN = '__YOUR_DOMAIN__'
DEFAULT_CERT_KEY = '__YOUR_CA_DIR__'
ACME_DIR = '__YOUR_ACME_DIR__'
@blood72
blood72 / tistory-copy-without-source.js
Created September 22, 2022 17:20
Tistory copy without source
// ==UserScript==
// @name Tistory copy without source
// @version 1.0.0
// @description remove source when copying
// @match http://*.tistory.com/*
// @match https://*.tistory.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@blood72
blood72 / Vivaldi_private.applescript
Last active September 25, 2022 16:20
Open Vivaldi Browser on private mode for Choosy (applescript)
on open location this_URL
set _NOT_ACTIVATED to 0
if application "Vivaldi" is running then
# open previous browser
tell application "Vivaldi"
set totalWindows to count of window
set currentWindow to 1
set selectedWindow to _NOT_ACTIVATED
@blood72
blood72 / google-calendar-today.js
Created March 24, 2023 12:36
click today for check schedules
// ==UserScript==
// @name Google Calendar Today
// @description click today for check schedules
// @version 1.0.0
// @match https://calendar.google.com/calendar/u/0/r?tab=mc&pli=1
// @grant none
// ==/UserScript==
(function () {
setTimeout(function () {
@blood72
blood72 / cloudflare-worker-ip-check.js
Created October 11, 2024 23:01
IP check using Cloudflare Worker
export default {
async fetch(request) {
const { method, url } = request
const { pathname } = new URL(url)
const createResponse = (body, status) => new Response(body, {
status,
headers: {
'Content-Type': 'text/plain; charset=utf-8',
'Cache-Control': 'no-cache, no-store, must-revalidate',