Skip to content

Instantly share code, notes, and snippets.

@paranoiddemon
paranoiddemon / saladict.css
Created October 1, 2023 07:19
CSS for saladict
.menuBar {
background-color: #e9e7ef;
border-bottom: 1px solid #eee;
padding: 8px;
}
.menuBar-Btn {
font-weight: bold;
}
@paranoiddemon
paranoiddemon / ytb-speed-control.js
Last active October 22, 2023 15:26
Youtube Advanced Speed Controller
// ==UserScript==
// @name Youtube Advanced Speed Controller
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Allows you to play youtube videos from 0 to 16 times normal speed
// @author Ehren Julien-Neitzert
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@paranoiddemon
paranoiddemon / karabiner.json
Last active October 24, 2023 13:12
karabiner key mapping configuration
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
import requests
import os
# 读取环境变量
bark_device_token = os.environ.get('BARK_PUSH')
print(bark_device_token)
BARK_ICON = "https://cdn.jsdelivr.net/gh/paranoiddemon/picbed@master/logo/bell.png"
title = "久坐提醒"
#plugin:zsh-completions
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
# Path to your Oh My Zsh installation.
export ZSH="/Users/forys/.oh-my-zsh"
ZSH_THEME="robbyrussell"
@paranoiddemon
paranoiddemon / miniflux.css
Created November 29, 2023 13:56
Customed CSS for Miniflux
.entry-content {
font-size: 1em;
font-family: serif;
font-weight: 400
}
.item {
border: solid rgb(3, 102, 214);
border-width: thin;
}
@paranoiddemon
paranoiddemon / copy-table-as-markdown.js
Created December 28, 2023 13:04
Copy table as Markdown to clipboard
// ==UserScript==
// @name Table to Markdown Copier
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Copy table as Markdown to clipboard
// @match *://*/*
// @grant none
// @author paranoiddemon
// @license MIT
// ==/UserScript==
// ==UserScript==
// @name 豆瓣资源下载大师:1秒搞定豆瓣电影|音乐|图书下载
// @description 【装这一个脚本就够了!可能是你遇到的最好的豆瓣增强脚本】聚合数百家资源网站,通过右侧边栏1秒告诉你哪些网站能下载豆瓣页面上的电影|电视剧|纪录片|综艺|动画|音乐|图书等,有资源的网站显示绿色,没资源的网站显示黄色,就这么直观!所有豆瓣条目均提供在线播放|阅读、字幕|歌词下载及PT|NZB|BT|磁力|百度盘|115网盘等下载链接,加入官网打死也不出的豆列搜索功能,此外还能给豆瓣条目额外添加IMDB评分|IMDB TOP 250|Metascore评分|烂番茄评分|AniDB评分|Bgm评分|MAL|亚马逊评分等更多评分形式。官方电报群:@doubandown
// @author 白鸽男孩
// @contributor Rhilip
// @connect *
// @grant GM_xmlhttpRequest
// @grant GM_setClipboard
// @grant GM_addStyle
// @grant GM_setValue
@paranoiddemon
paranoiddemon / update_dns_cf_v4_v6.sh
Created January 9, 2025 12:20
update ip in cloudflare dns for v4 and v6
#!/bin/sh
#BIN_DIR=
#BIN_DIR=/bin/busybox
#export PATH=$BIN_DIR/bin:$BIN_DIR/sbin:$BIN_DIR/usr/bin:$BIN_DIR/usr/sbin
#set -x
# cloudflare api
AUTH_EMAIL=""