pacman -U /var/cache/pacman/pkg/zsh-5.1.1-1-x86_64.pkg.tar.xz
This file contains hidden or 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
compdef _gulp gulp | |
function _gulp () { | |
local -a task | |
if [ -f ./gulpfile.js ]; then | |
task=(`cat gulpfile.js | grep "task('" | awk -F\' '{ print $2 }' | tr '\n' ' '`) | |
compadd $task | |
else | |
zle -M 'No gulpfile found' | |
fi | |
} |
This file contains hidden or 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
/* 回転🍣 | |
* | |
* https://twitter.com/oflow/status/875568672021987329 | |
* | |
*/ | |
.HeartAnimation:before { | |
content: '🍣' !important; | |
display: inline-block !important; | |
} | |
.favorited .HeartAnimation:before { |
This file contains hidden or 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
diff -uprN tmux-2.5/options-table.c tmux-2.5-patched/options-table.c | |
--- tmux-2.5/options-table.c 2017-05-29 16:08:04.000000000 +0900 | |
+++ tmux-2.5-patched/options-table.c 2017-06-06 13:30:20.390849587 +0900 | |
@@ -129,6 +129,14 @@ const struct options_table_entry options | |
.separator = "," | |
}, | |
+#ifndef NO_USE_UTF8CJK | |
+ { .name = "utf8-cjk", | |
+ .type = OPTIONS_TABLE_FLAG, |
This file contains hidden or 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
lazy-load使うならJavaScript無効の時に表示されるようにnoscriptタグも使えボケ | |
お前のサイトのスクリプトなんか許可したくねーんだよ! | |
<img class="lazy" data-src="元画像"> | |
<noscript> | |
<img src="元画像"> | |
</noscript> |
This file contains hidden or 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
Option Explicit | |
Dim wsh, svList, svInfo | |
Dim scPath, query, scMode | |
scPath = "%WINDIR%\System32\sc.exe" | |
query = "SELECT * FROM Win32_Service WHERE Name='wuauserv'" | |
Set svList = GetObject("winmgmts:").ExecQuery(query) | |
For Each svInfo In svList | |
scMode = svInfo.StartMode |
This file contains hidden or 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
'use strict'; | |
var client = require('cheerio-httpcli'), | |
fs = require('fs'), | |
co = require('co'), | |
ev = '', | |
act = 3; | |
client.setBrowser('chrome'); | |
This file contains hidden or 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
compdef _zopfli zopfli | |
function _zopfli() { | |
_arguments \ | |
'-h[help]' \ | |
'-c[write the result on standard output]' \ | |
'-v[verbose mode]' \ | |
'--i#[perform # iterations (default 15). Expamples --i50]' \ | |
'--gzip[output to gzip format (default)]' \ | |
'--zlib[output to zlib format]' \ | |
'--deflate[output to deflate format]' \ |
This file contains hidden or 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
if [ -z $TMUX ] && [ `tmux list-sessions | grep -v 'attached' | wc -l` -eq 1 ]; then | |
tmux attach -t `tmux list-sessions | grep -v 'attached' | awk -F: '{print $1}'` | |
else | |
w | |
if [ -z $TMUX ]; then | |
echo -e "\ntmux sessions" | |
tmux list-sessions | |
fi | |
fi |
This file contains hidden or 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/sh | |
# 1 (01) Raw_Read_Error_Rate | |
# 5 (05) Reallocated_Sector_Count | |
# 10 (0A) Spin_Retry_Count | |
# 196 (C4) Reallocated_Event_Count | |
# 199 (C7) UDMA_CRC_Error_Count | |
devices=("sda" "sdb") | |
for dev in "${devices[@]}"; do |