-
create servermeu folder in local path.
~/.local/share/kservices5/ServiceMenus/
-
put desktop to folder created above.
-
put bash file into local bin dir.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
text=$1 | |
if [[ $# -eq 0 ]]; then | |
# read from pipe | |
read -t 1 text | |
fi | |
if [[ ${text} == "" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# echo $# | |
scandir=$(pwd) | |
if [[ $# -gt 0 ]]; then | |
scandir=$1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
u="-u" | |
u="" | |
go get ${u} -v github.com/nsf/gocode | |
go get ${u} -v github.com/rogpeppe/godef | |
go get ${u} -v github.com/golang/lint/golint | |
go get ${u} -v github.com/lukehoban/go-outline | |
go get ${u} -v sourcegraph.com/sqs/goreturns |
后台一个接口。 比如:yue.fm/api/config 请求: GET yue.fm/api/config?key={key} 返回: 文本 TEXT
后台界面,可以配置。 列出已有的key-value对。就是个列表。
可以添加。一对。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
c=$# | |
#echo $# | |
if [[ ${c} -gt 0 ]]; then | |
echo "$RANDOM * $1" | bc | |
else | |
echo $RANDOM | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /home/holmes/My/bash/http_proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
type item struct { | |
Name string | |
Comment string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debian with Popobox v1.0 | |
原文链接:http://pear.xiaojiublog.net/2013/11/debian-with-popobox-v1-0/ | |
## 部分内容由 felix021 修正、简化 ## | |
1: 制作Debian系统 | |
mkdir chroot && cd chroot | |
sudo debootstrap --foreign --arch=armel wheezy debian http://mirrors.ustc.edu.cn/debian/ | |
打包: |