Skip to content

Instantly share code, notes, and snippets.

View hellokaton's full-sized avatar
:shipit:
Focusing on work

見える hellokaton

:shipit:
Focusing on work
View GitHub Profile
@hellokaton
hellokaton / character.md
Last active November 4, 2023 02:13
HTML字符实体(Character Entities),转义字符串(Escape Sequence)
<title>常用HTML转义字符,html转义符,JavaScript转义符,html转义字符表,HTML语言特殊字符对照表(ISO Latin-1字符集) - 来源:嘻嘻网 114.xixik.com</title>
@hellokaton
hellokaton / linux_terminal_color_code.md
Last active February 6, 2018 07:39
linux 终端颜色代码
echo -e "\033[背景;字体颜色m 字符串\033[0m"
eg : echo -e "\033[30m 黑色字 \033[0m"

字体颜色(30-37)


背景颜色(40-47)

@hellokaton
hellokaton / AsciiPic.java
Created February 6, 2018 07:35
图片转 ascii 字画符
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class AsciiPic {
/**
* @param path 图片路径
@hellokaton
hellokaton / ImageUtil.java
Created February 6, 2018 07:34
图片压缩工具类
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;
<div class="heart"></div>
@hellokaton
hellokaton / jekyll-and-liquid.md
Created November 21, 2017 03:18 — forked from magicznyleszek/jekyll-and-liquid.md
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

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

Running a local server for testing purposes:

@hellokaton
hellokaton / linux_ping.md
Created November 14, 2017 15:15
linux下开启服务器ping和关闭

临时修改

echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
  • 1 表示禁ping
  • 0 表示开启ping

或者:

@hellokaton
hellokaton / install_nginx.sh
Last active March 20, 2021 11:37 — forked from vmlive/install_nginx.sh
Nginx 一键安装脚本
#!/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 "========================================================================="
@hellokaton
hellokaton / nginx
Last active November 14, 2017 14:53
/etc/init.d/nginx
#!/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"
@hellokaton
hellokaton / webadmin.php
Created November 13, 2017 14:10
webadmin.php is a simple Web-based file manager.
<?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.