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
curl -r 0-209715200 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part1 & | |
curl -r 209715200-419430400 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part2 & | |
curl -r 419430400-629145600 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part3 & | |
curl -r 629145600-838860800 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part4 & | |
curl -r 838860800-1048576000 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part4 & | |
curl -r 1048576000-1258291200 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part5 & | |
curl -r 1258291200-1468006400 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part6 & | |
curl -r 1468006400-1677721600 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part7 & | |
curl -r 1677721600-1887436800 http://get-software.net/systems/texlive/Images/texlive2012.iso > texlive.part8 |
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
<html class="normal" type="channel" channelname="#bash"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Script-Type" content="text/javascript"><meta http-equiv="Content-Style-Type" content="text/css"><style>html {font-family:'Courier';font-size:9pt;background-color:white;color:black;word-wrap:break-word;margin:0;padding:3px 4px 10px 4px;}body {margin:0;padding:0}img {border:1px solid #aaa;vertical-align:top;}object {vertical-align:top;}hr {margin:0.5em 2em;}.line {margin:0 -4px; padding:0 4px 1px 4px; clear:both;}.line[alternate=even] {}.line[alternate=odd] {}.line[type=action] .sender:before {content: '• ';white-space: nowrap;}.inlineimage {margin: 10px 0 15px 40px;max-width: 200px;max-height: 150px;-webkit-box-shadow: 2px 2px 2px #888;}.avatar {display: inline;max-width: 24px;max-height: 24px;margin-right: 3px;vertical-align: middle;}.url { word-break: break-all; }.address { text-decoration: underline; word-break: break-all; }.highlight { color: #f0f; font- |
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
@rem = '--*-Perl-*-- | |
@echo off | |
perl -x -S %0 %* | |
goto endofperl | |
@rem -- BEGIN PERL -- '; | |
#!perl | |
my @ignore_list = qw/ |
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
#echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
#. ~/.bashrc | |
#mkdir ~/local | |
#mkdir ~/node-latest-install | |
#cd ~/node-latest-install | |
#curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
#./configure --prefix=~/local | |
#make install # ok, fine, this step probably takes more than 30 seconds... | |
#curl https://npmjs.org/install.sh | sh |
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
cd /usr/local | |
mkdir redis-latest-install | |
cd redis-latest-install | |
curl http://redis.googlecode.com/files/redis-2.6.13.tar.gz | tar xz --strip-components=1 | |
#In order to install Redis binaries into /usr/local/bin just use: | |
# | |
# % make install | |
# | |
#You can use "make PREFIX=/some/other/directory install" if you wish to use a |
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 5.010; | |
use open qw(:locale); | |
use strict; | |
use utf8; | |
use warnings qw(all); | |
use Mojo::UserAgent; | |
# FIFO queue |
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
//This sample is how to use websocket of Tomcat. | |
package wsapp; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.CharBuffer; | |
import java.util.ArrayList; | |
import org.apache.catalina.websocket.MessageInbound; | |
import org.apache.catalina.websocket.StreamInbound; | |
import org.apache.catalina.websocket.WebSocketServlet; |
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 | |
redEcho() | |
{ | |
echo -e "\033[1;31m$@\033[0m" | |
} | |
pid=`pgrep java` | |
uuid=`date +%s`_${RANDOM}_$$ | |
jstackFile=/tmp/${uuid}_${pid} | |
sudo -u tomcat jstack ${pid} > ${jstackFile} |
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 5.010; | |
use open qw(:locale); | |
use strict; | |
use utf8; | |
use warnings qw(all); | |
use Mojo::UserAgent; | |
# FIFO queue |
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
sei yu dai fong sa tou fong fen dei gai dou | |
细 雨 带 风 湿 透 黄 昏 的 街 道 | |
mu hei yu sui suang an mou gu dei yang mang | |
抹 去 雨 水 双 眼 无 故 地 仰 望 | |
mang hang gu dan dei mai deng | |
望 向 孤 单 的 晚 灯 | |
si na sang gan dei gei yi | |
是 那 伤 感 的 记 忆 | |
zai ci fan hei sen lei mou sou dei si ni | |
再 次 泛 起 心 里 无 数 的 思 念 |