Skip to content

Instantly share code, notes, and snippets.

View withgod's full-sized avatar
💭
I may be slow to respond.

takumi withgod

💭
I may be slow to respond.
View GitHub Profile
// ==UserScript==
// @name dotabuff KDA display
// @namespace https://gist.github.com/withgod/5010882/
// @description append KDA info
// @author withgod
// @include http://dotabuff.com/*
// ==/UserScript==
(function () {
setTimeout(function() {
function _get(elem) {
con_enable "1" // コンソールを有効にする
chat_join "japan" //「Japan」チャットに入る
//voice_mixer_mute "1" // 声が返ってくる場合無効化する
cl_showfps "1" //FPSの表示(1:On 0:Off)
mat_vsync "0" // 垂直同期(0:Off/1:On)
mat_triplebuffered "0" // FPSが60未満の場合、垂直同期を有効にする(0:Off/1:On)
fps_max "120" // FPSの最大値(Default:120/無制限:0)
dota_force_right_click_attack "1" // 右クリックでdenyが出来るようになる(default 0)
dota_player_units_auto_attack "0" // heroのオートアタックのONOFF(default 1)
  • a ** aiueo
#!/bin/sh
if [ -f /mnt/ramdisk/world.ramdisk/level.dat ]; then
/home/withgod/bin/mc_save-off.sh
if [ $? == 1 ]; then
echo "save-off error $?"
exit;
fi
rsync -a --delete /mnt/ramdisk/world.ramdisk /media/hdb/game_server/minecraft_maps/
/home/withgod/bin/mc_save-on.sh
#!/bin/sh
#
# */2 * * * * /home/noname/bin/test.sh
#
SCREEN_NAME=test
SCREEN=/usr/bin/screen
cd $(dirname $0)
@withgod
withgod / gist:4632210
Last active December 11, 2015 17:08
dota2 memo

diamond

  • zikuu 1954 98%

platinum

  • cheerio 1907 98%
  • teijin 1873 98%
  • sakiryou 1861
  • isaco 1727 95%
javascript:(function(){var a=0,b=0,c=0,d=0,e=0;$("tr[data-link-to]").each(function(){var f=$(this);var g=$(f.find("td"));if($(g[2]).find("a").hasClass("won")){d++}else{e++}var h=$(g[5]).find("div").first().text().replace(/\s+/,"").split("/");a+=parseInt(h[0]);b+=parseInt(h[1]);c+=parseInt(h[2])});var f=Math.round(a/b*100)/100;var g=Math.round(c/b*100)/100;var h="k/d: "+f+"\n";h+="a/d: "+g+"\n";h+="win rate:"+Math.round(d/(d+e)*100)+"%";alert(h)})()
//dagger toggle
alias dagger_toggle "dagger_off"
alias dagger_off "alias dagger_toggle dagger_on;dota_range_display 1150"
alias dagger_on "alias dagger_toggle dagger_off;dota_range_display 0"
bind "DEL" "dagger_toggle"
javascript:(function(){var a=0,b=0,c=0,d=0,e=0;$("tr[data-link-to]").each(function(){var f=$(this);var g=$(f.find("td"));if($(g[2]).find("a").hasClass("won")){d++}else{e++}var h=$(g[5]).find("div").first().text().replace(/\s+/,"").split("/");a+=parseInt(h[0]);b+=parseInt(h[1]);c+=parseInt(h[2])});var f=Math.round(a/b*100)/100;var g=Math.round(c/b*100)/100;var h="k/d: "+f+"\n";h+="a/d: "+g+"\n";h+="win rate:"+Math.round(d/(d+e)*100)+"%";alert(h)})()
//dagger toggle
alias dagger_toggle "dagger_off"
alias dagger_off "alias dagger_toggle dagger_on;dota_range_display 1150"
alias dagger_on "alias dagger_toggle dagger_off;dota_range_display 0"
bind "INT" "dagger_toggle"