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
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
public class AsciiPic { | |
/** | |
* @param path 图片路径 |
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
import java.awt.Color; | |
import java.awt.Graphics2D; | |
import java.awt.Image; | |
import java.awt.Rectangle; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.net.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
<div class="heart"></div> |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
临时修改
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
- 1 表示禁ping
- 0 表示开启ping
或者:
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 | |
clear | |
echo "=========================================================================" | |
echo "Nginx script V1.0 for CentOS/RadHat Linux Written by llama" | |
echo "=========================================================================" | |
echo "A tool to auto-compile & install Nginx on Linux " | |
echo "" | |
echo "For more information please contact llama" | |
echo "=========================================================================" |
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 | |
# chkconfig: 2345 85 15 | |
# description:Nginx Server | |
NGINX_HOME=/usr/local/nginx | |
NGINX_SBIN=$NGINX_HOME/sbin/nginx | |
NGINX_CONF=$NGINX_HOME/conf/nginx.conf | |
NGINX_PID=$NGINX_HOME/logs/nginx.pid | |
NGINX_NAME="Nginx" |
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
<?php | |
// source: http://cker.name/webadmin/ | |
/* | |
* webadmin.php - a simple Web-based file manager | |
* Copyright (C) 2004-2011 Daniel Wacker [daniel dot wacker at web dot de] | |
* | |
* 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. |