Skip to content

Instantly share code, notes, and snippets.

View Pafuxu's full-sized avatar

Kouji Tsuru Pafuxu

View GitHub Profile
-- Script that acquires current time and displays it to HUD display
--
set currentTime to do shell script "date '+%Y-%m-%dT%H:%M:%S%z' | sed 's/00$/:00/'"
tell application "LaunchBar" to display in large type currentTime
return currentTime
<div style="float:right;margin-left:0.5em;">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink(); ?>';
tweetmeme_source = 'twitter_name';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
<div style="float:right;margin-left:0.5em;">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink(); ?>';
tweetmeme_source = '<?php the_author(); ?>';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
tr {
background-color: #fff;
-webkit-transition: background-color, 1s;
}
tr:hover {
background-color: #e5ecff;
}
thead tr:hover {
/*custom styles*/
.entry-content,
.comment {
font: normal normal normal 13px/1.8 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
}
.entry-content p,
.comment p {
margin-bottom: 1.5em;
.label {
background: url(label\ green-64.png) no-repeat center center ;
display: -webkit-box;
-webkit-box-align: center;
-webkit-box-pack: center;
width: 64px;
height: 64px;
margin: 0;
padding: 0;
position: absolute;
.gradation-box {
background: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(0.1, white), to(rgb(205, 221, 241)));
-webkit-border-radius: 4px;
-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 0px 3px 5px;
border: 1px solid rgb(204, 204, 204);
display: block;
margin: 0px 5px 5px 5px;
padding: 10px;
text-shadow: white 0px 1px 0px;
vertical-align: top;
#!/bin/sh
# created by chris helming.
# chris dot helming at gmail
# get the current number of bytes in and bytes out
myvar1=`netstat -ib | grep -e "en1" -m 1 | awk '{print $7}'` # bytes in
myvar3=`netstat -ib | grep -e "en1" -m 1 | awk '{print $10}'` # bytes out
#wait one second
sleep 1
" Search
set hlsearch " highlight search
set incsearch " incremental search, search as you type
set ignorecase " Ignore case when searching
set smartcase " Ignore case when searching lowercase
" ESCキー2度押しでハイライトを消す
nnoremap <Esc><Esc> :<C-u>set nohlsearch<Return>
nnoremap / :<C-u>set hlsearch<Return>/
nnoremap ? :<C-u>set hlsearch<Return>?
$ git remote show origin
* remote origin
URL: git@github.com:Pafuxu/my_files.git
Remote branch merged with 'git pull' while on branch master
master
Tracked remote branch
master