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
// 選択した文字列をコピー&全員に返信 | |
javascript:(function(){ | |
var r = document.selection.createRange(); | |
if(r.text.length > 0){ | |
clipboardData.setData("Text", r.text.replace(/\n/g, "\n> ").replace(/^/g, "> ")); | |
}; | |
document.getElementById('imgReplyAllIcon').fireEvent("onclick"); | |
})(); | |
/* | |
javascript:(function(){ var r = document.selection.createRange(); if(r.text.length > 0){ clipboardData.setData("Text", r.text.replace(/\n/g, "\n> ").replace(/^/g, "> ")); }; document.getElementById('imgReplyAllIcon').fireEvent("onclick");})(); |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Term::ReadLine; | |
use IO::Socket; | |
use Data::Printer; | |
use Encode; | |
use Getopt::Long; | |
use Try::Tiny; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="defraggler" /> | |
<package id="javaruntime" /> | |
<package id="java.jdk" /> | |
<package id="virtualbox" /> | |
<package id="vagrant" /> | |
<package id="Silverlight" /> | |
<package id="winmerge" /> | |
<package id="android-sdk" /> |
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
su - | |
#dependcies | |
#centos 6.2 | http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm | |
rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
yum -y groupinstall 'Development Tools' 'Additional Development' | |
yum -y install readline readline-devel ncurses-devel gdbm-devel glibc-devel tcl-devel openssl-devel curl-devel expat-devel db4-devel byacc sqlite-devel gcc-c++ libyaml libyaml-devel libffi libffi-devel libxml2 libxml2-devel libxslt libxslt-devel libicu libicu-devel system-config-firewall-tui python-devel redis |
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 | |
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
yum groupinstall "Development tools" | |
yum install zlib-devel | |
yum install bzip2-devel openssl-devel ncurses-devel | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
tar xf Python-2.7.3.tar.bz2 | |
cd Python-2.7.3 |
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
# rhel | |
nc -z -w 0 localhost 1-100 && echo 'ok' || echo 'ng' |
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
hook.addHook('onUserMessage', function(hash){ | |
if(hash.text.match(/[a-z]+/)){ | |
console.log(hash.text); | |
} | |
}); |
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
#!/usr/bin/env perl | |
# | |
# Name: fdcnt.pl | |
# | |
# Usage: | |
# $ sudo perl fdcnt.pl | sort -rn | |
# | |
# Licence: MIT | |
# |
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
sourcetree://checkoutRef?ref=master&cloneUrl=https://github.com/uzulla/yancha.git&type=bitbucket | |
sourcetree://checkoutRef?ref=master&cloneUrl=https://github.com/uzulla/pyazo.git&type=bitbucket | |
sourcetree://checkoutRef?ref=master&[email protected]:equinox79/adreso.git&type=bitbucket | |
// $('.clone-url').each(function(a,b){ console.log( $(b).attr('data-protocol-type') ) }) |
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
ansible-playbook -i ./hosts install_fabric.yaml |