Skip to content

Instantly share code, notes, and snippets.

@nostream
nostream / gist:8293298
Created January 7, 2014 01:33
linux mount
虚拟机安装的时候只分配了8G的硬盘,现在又分配了250G的磁盘空间,需要挂载上去,下面是挂载步骤
# fdisk -l
#查看分区情况
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1044 8281507+ 8e Linux LVM
@nostream
nostream / nexus
Created November 13, 2012 05:14
spring artifact update metadata timeout
jvm 1 | 2012-11-13 11:41:36 WARN [-142310161-3229] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "131_release" (id=131_release) threw a org.sonatype.nexus.proxy.RemoteStorageException exception. Connection/transport problems occured while connecting to remote peer of the repository. Auto-blocking this repository to prevent further connection-leaks and known-to-fail outbound connections until administrator fixes the problems, or Nexus detects remote repository as healthy. - Cause(s): Transport error while executing GET method [repositoryId="131_release", requestPath="/org/springframework/spring-parent/maven-metadata.xml", remoteUrl="http://192.168.172.131:8081/nexus/content/groups/public/org/springframework/spring-parent/maven-metadata.xml"] > Read timed out
jvm 1 | 2012-11-13 11:41:36 INFO [Thread-23 ] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.131_release - Next attempt to auto-unblock the "131_release" (id=131_release) repository by ch
@nostream
nostream / gist:1834417
Created February 15, 2012 08:25
install jdk6
1 wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586.bin
2 chmod +x jdk-6u25-linux-i586.bin
3 ./jdk-6u25-linux-i586.bin
4 mv jdk1.6.0_25/ /usr/local/jdk1.6.0_25
5 vi /etc/profile
export JAVA_HOME=/usr/local/jdk1.6.0_25
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
6 source /etc/profile
7 java -version
@nostream
nostream / gist:1330124
Created November 1, 2011 08:01 — forked from ZoomQuiet/gist:948080
from lxneng 通用的 fabric 部署脚本原型
#!/usr/bin/env python
# encoding: utf-8
"""
Usage:
fab deploy:appname
"""
from fabric.api import env, run, cd, local, put
env.hosts = ['myserver.com']
env.user = 'eric'
#!/bin/sh
#########################################################################
# #
# MySQL performance tuning primer script #
# Writen by: Matthew Montgomery <[email protected]> #
# Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) #
# Version: 1.5-r5 Released: 2009-11-22 #
# Licenced under GPLv2 #
# #