Skip to content

Instantly share code, notes, and snippets.

View IcedMango's full-sized avatar

IcedMango

  • Hong Kong
  • 00:03 (UTC +08:00)
View GitHub Profile
@IcedMango
IcedMango / karabiner_double_tap_toggle_raycast.json
Last active November 10, 2023 11:26
Enable double tap cmd/option toggle for Raycast using karabiner
{
"title": "Raycast Karabiner Config",
"rules": [
{
"description": "Double click cmd Toggle Raycast(Hotkey: ctrl+option+cmd+Esc)",
"manipulators": [
{
"conditions": [
{
"name": "command_pressed",
@IcedMango
IcedMango / getRangeMonthList.sql
Created December 16, 2021 05:42
sql function getRangeMonthList
CREATE FUNCTION getRangeMonthList(@beginDate VARCHAR(50), @endDate VARCHAR(50))
RETURNS @table TABLE
(
MonthList VARCHAR(20)
)
AS
BEGIN
WITH x AS
(
SELECT CAST(@beginDate AS DATE) [Month]
@IcedMango
IcedMango / vhost.conf
Created November 18, 2021 10:02
Resilio Sync with nginx reverse proxy - v2.7.2(1375) OK
location /btsync/ {
proxy_pass http://127.0.0.1:8888/gui/;
sub_filter '/gui/token.html' 'token.html';
sub_filter '/gui/' '';
sub_filter_types text/javascript
sub_filter_once off;
proxy_set_header Cookie $http_cookie;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@IcedMango
IcedMango / fuck.southhronline.js
Created August 7, 2020 08:09
a script help you fuck southhronline video learning
// ==UserScript==
// @name fuck southhronline
// @version 1.0.0
// @description fuck southhronline.cn
// @author IcedMango <i@233.sh>
// @match http://www.southhronline.cn/learn/*
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js
// @connect cdn.bootcdn.net
// @run-at document-end
// ==/UserScript==
@IcedMango
IcedMango / uBlacklist_Subscription.txt
Created October 30, 2019 02:29
uBlacklist_Subscription
*://*.voidcn.com/*
*://codeday.me/*
*://*.voidcc.com/*
*://www.bbsmax.com/*
*://www.soinside.com/*
*://yq.aliyun.com/*
*://cloud.tencent.com/*
*://www.jb51.net/*
*://www.itranslater.com/*
*://www.52jb.net/*
@IcedMango
IcedMango / tasker_forward_SMS.js
Last active June 30, 2023 09:58
How to use tasker forward SMS to telegram
//bot秘钥
var apiKey = "";
//请求链接
var apiUrl = "api.telegram.org";
//会话ID
var chatId = "";
//发件人名称
var senderName = global('SMSRN');
if (senderName.match(/\d*/g)[0].length > 0) {
senderName = "";
@IcedMango
IcedMango / gist:232d22ec5ee26887821c2f9e4cc61eb2
Created July 25, 2019 10:13
How to get boardcast info from pda scanner with mui - 如何用MUI获取PDA扫码枪的广播信息
if (window.plus) {
plusReady();
} else {
document.addEventListener('plusready', plusReady, false);
}
function plusReady() {
var main = plus.android.runtimeMainActivity(); //获取activity
var context = plus.android.importClass('android.content.Context'); //上下文
var receiver = plus.android.implements('io.dcloud.feature.internal.reflect.BroadcastReceiver', {