- issue assigned to me
https://api.github.com/search/issues?q=repo:pingcap/tidb+state:open+assignee:SunRunAway
- my pr
https://api.github.com/search/issues?q=repo:pingcap/tidb+state:open+author:SunRunAway+type:pr
#!/bin/bash | |
# usage: | |
# dump_profile.bash <pid> <db_port> <status_port> <memory threshold(byte)> | |
pid=$1 | |
db_port=$2 | |
status_port=$3 | |
mem_threshold=$4 |
#!/usr/bin/env bash | |
# Copyright 2015 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
#!/bin/bash | |
# put this file in your $PATH | |
# and chmod +x git-pr | |
# then use `git pr` in one github repo | |
repo=`git remote -v | grep push | grep origin | sed -e "s/.*github.com[:/]\(.*\)\.git.*/\1/"` | |
branch=`git name-rev --name-only HEAD` | |
echo "... creating pull request for branch \"$branch\" in \"$repo\"" | |
open https://github.com/$repo/pull/new/$branch |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"strings" |
on run {input, parameters} | |
set SSCL to "~/bin/sscl" | |
set theList to input as list | |
set theLog to "" | |
do shell script "mkdir -p ~/Library/Application\\ Support/SPlayerX/SVPSub/" | |
do shell script "echo test > ~/Library/Application\\ Support/SPlayerX/SVPSub/README" | |
do shell script "mkdir -p ~/Library/Application\\ Support/SPlayerX/SVPSub.bak/" | |
do shell script "mv ~/Library/Application\\ Support/SPlayerX/SVPSub/* ~/Library/Application\\ Support/SPlayerX/SVPSub.bak/" | |
#do shell script "rm -rf ~/Library/Application\\ Support/SPlayerX/SVPSub/" | |
repeat with theItem in theList |
// ==UserScript== | |
// @name Google SSL Privacy Real Link | |
// @namespace http://userscripts.org/scripts/show/145014 | |
// @description Mandatory use encryption connection https. Gets rid of almost every google tracking device. Disable the Google search rewrite, always showing and using the real, original, direct link URLs, also to prevent from using redirected pages that might be temporarily unavailable in some area. | |
// @include http://images.google.*/images* | |
// @include http://www.google.*/images* | |
// @include http://www.google.*/webhp* | |
// @include http://www.google.*/search?* | |
// @include http://www.google.*/imgres* | |
// @include http://images.google.*/search?* |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/* | |
cheapest-steam | |
============== | |
A crawler to retrieve cheapest item price on steam. | |
``` | |
go run main.go -url http://steamcommunity.com/market/listings/570/Taunt%3A%20Get%20Burned | |
``` | |
*/ |
curl -T file.json -X POST "http://localhost/uri" |