Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name oledvod mpv
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.olevod.com/static/player/plyr3.html
// @match https://www.olevod.com/static/player/videojs.html
// @grant GM_webRequest
// @grant GM_openInTab
// ==UserScript==
// @name DoubanRating
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description 在欧乐上显示豆瓣分数.
// @author ke
// @match https://*.pangzitv.com/*
// @match https://*.olevod.com/*
// @match https://*.xiaobaotv.net/*
// @grant GM.xmlHttpRequest
@markx
markx / gist:6e7c38c56d0eb37188ab1ad831a73ee2
Created July 12, 2023 05:00
hammerspoon for tmux prefix
local apps = {"iTerm2", "Terminal"}
local hyper = {"cmd", "alt", "ctrl", "shift"}
local hotkey = hs.hotkey.new({'ctrl'}, 'tab', function() hs.eventtap.keyStroke({'ctrl'}, 'z') end)
local hotkeys = {
hs.hotkey.new({'ctrl'}, 'tab', function() hs.eventtap.keyStroke({'ctrl'}, 'z') end),
hs.hotkey.new(hyper, 'f', function() hs.eventtap.keyStroke({'ctrl'}, 'z') end),
hs.hotkey.new({'cmd'}, 's', function() hs.eventtap.keyStroke({'ctrl'}, 'z') end),
}
// ==UserScript==
// @name WeiyunExporter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.weiyun.com/disk*
// @grant none
// ==/UserScript==
@markx
markx / HttpProxy.go
Created March 6, 2022 02:44 — forked from yowu/HttpProxy.go
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
(def TILES
{:floor {:type :floor
:blocking false
:opaque false
:glyph "."}
:wall {:type :wall
:blocking true
:opaque true
:glyph "#"}
@markx
markx / aria2.rb
Last active April 18, 2020 03:32
class Aria2 < Formula
desc "Download with resuming and segmented downloading"
homepage "https://aria2.github.io/"
url "https://github.com/aria2/aria2/releases/download/release-1.35.0/aria2-1.35.0.tar.xz"
sha256 "1e2b7fd08d6af228856e51c07173cfcf987528f1ac97e04c5af4a47642617dfd"
bottle do
cellar :any
sha256 "9cc5e04be8b0a58d1f2b60b8abfc636168edbf23e7018003c40f1dd6952aab0c" => :catalina
sha256 "761836ac608eb0a59d4a6f6065860c0e809ce454692e0937d9d0d89ad47f3ce4" => :mojave
:cljfmt {:remove-consecutive-blank-lines? false
:indents ^:replace {#"^[-*+!?_a-zA-Z]" [[:inner 0]]}}
Content-Length: 58
{"jsonrpc":"2.0","method":"initialize","params":{},"id":1}
Content-Length: 52
{"jsonrpc":"2.0","method":"exit","params":{},"id":1}

Keybase proof

I hereby claim:

  • I am markx on github.
  • I am markx (https://keybase.io/markx) on keybase.
  • I have a public key ASCnctcAu2m4b_QictI41mOoJ11QqJ4rrQ0Lq-5jDzjSwAo

To claim this, I am signing this object: