Skip to content

Instantly share code, notes, and snippets.

@edgesider
edgesider / mteam.user.js
Last active April 15, 2024 17:39
显示MTeam-余额(分享率大于3)
// ==UserScript==
// @name M-Team 余额
// @namespace http://tampermonkey.net/
// @version 2024-02-25
// @description try to take over the world!
// @author You
// @match https://kp.m-team.cc/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=m-team.cc
// @grant none
// ==/UserScript==
@ledudu
ledudu / lebo
Created February 16, 2020 04:13 — forked from loerise/MiTV ADBlock
乐播投屏广告屏蔽
127.0.0.1 sdkauth.hpplay.cn
127.0.0.1 adeng.hpplay.cn
127.0.0.1 ad.hpplay.cn
127.0.0.1 conf.hpplay.cn
127.0.0.1 fix.hpplay.cn
127.0.0.1 adcdn.hpplay.cn
127.0.0.1 sl.hpplay.cn
127.0.0.1 rp.hpplay.cn
@akersten
akersten / userChrome.css
Last active February 26, 2024 20:39
userChrome.css to hide Firefox native tab bar and extension sidebar header (for use with TreeStyleTabs)
/*
* about:config -> toolkit.legacyUserProfileCustomizations.stylesheets : True
* about:support -> Profile Folder -> Open Folder
* Create `chrome` direcory
*/
#tabbrowser-tabs {
visibility: collapse !important;
}
@winksaville
winksaville / Setup-git-send-email.md
Created March 20, 2018 18:25
Setup git send-email using git credentials

Setup git send-email: following these instructions I had some problems. But the following worked:

  • I’m using 2-factor auth on my gmail account so I had to get a “app-password”, see google documentation
  • Modify the global/local .gitconfig file with a sendemail section: [sendemail] smtpEncryption = tls smtpServer = smtp.gmail.com smtpUser = [email protected] smtpServerPort = 587
  • Also add a credential section with a helper.store entry:
@edokeh
edokeh / index.js
Last active May 14, 2025 15:04
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@codingtony
codingtony / disableScreenSaver.sh
Last active January 15, 2024 17:53
Temporary disable Screensaver (tested with KDE) by simulating fake user activity
#!/bin/bash
# credits goes to http://silviumc.wordpress.com/2011/12/05/how-to-stop-the-screen-saver-in-kde-while-watching-long-flash-clips-in-a-web-browser/
while /bin/true
do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null;
sleep 1m;
done
@wontoncc
wontoncc / balloontip.py
Last active November 18, 2024 01:04
Balloon tip module, Python, using win32gui.
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip: