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
package me.guoyong.demo; | |
import com.jhlabs.image.WaterFilter; | |
import com.octo.captcha.CaptchaFactory; | |
import com.octo.captcha.component.image.backgroundgenerator.BackgroundGenerator; | |
import com.octo.captcha.component.image.backgroundgenerator.UniColorBackgroundGenerator; | |
import com.octo.captcha.component.image.deformation.ImageDeformation; | |
import com.octo.captcha.component.image.deformation.ImageDeformationByFilters; | |
import com.octo.captcha.component.image.fontgenerator.FontGenerator; | |
import com.octo.captcha.component.image.fontgenerator.RandomFontGenerator; |
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
# build helloworld executable when user executes "make" | |
volumecontrol: volumecontrol.o | |
$(CC) $(LDFLAGS) -lasound volumecontrol.o -o volumecontrol | |
volumecontrol.o: volumecontrol.c | |
$(CC) $(CFLAGS) -c volumecontrol.c | |
# remove object files and executable when user executes "make clean" | |
clean: | |
rm *.o volumecontrol |
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
#step 1 | |
yum -y install python-setuptools | |
#step 2 | |
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
# or | |
# rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm | |
#step 3 | |
# if you using centOS 6.2 enable rpmforge-extras (enabled =1) |
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
# tunnel - secure tunnel to my vps | |
description "ssh tunnel" | |
start on (local-filesystems and network-device-up IFACE!=lo) | |
stop on runlevel [!12345] | |
respawn | |
respawn limit 5 60 # respawn max 5 times in 60 seconds | |
umask 022 |
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
location /go { | |
set_unescape_uri $new_url $arg_url; | |
if ( $new_url ~* ^[^(http://)](.*)$ ){ | |
return 302 http://$new_url; | |
} | |
return 302 $new_url; | |
} |
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
<project> | |
... | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>2.3</version> | |
<configuration> | |
<finalName>uis-server</finalName> | |
<descriptors> |
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
package server; | |
import org.apache.commons.daemon.Daemon; | |
import org.apache.commons.daemon.DaemonContext; | |
import org.apache.commons.daemon.DaemonInitException; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
/** | |
* User: guoyong |
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/sh | |
sudo wvdial |
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
U-Boot 1.1.4 (Feb 28 2012 - 11:58:24) | |
AP121 (ar9330) U-boot | |
DRAM: 32 MB | |
led turning on for 1s... | |
id read 0x100000ff | |
flash size 4194304, sector count = 64 | |
Flash: 4 MB | |
Using default environment |
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
/* Decoder for password encoding of Cisco VPN client. | |
Copyright (C) 2005 Maurice Massar | |
Thanks to [email protected] for decoding and posting the algorithm! | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
OlderNewer