Skip to content

Instantly share code, notes, and snippets.

View geekyouth's full-sized avatar
💪
fighting

极客青年 geekyouth

💪
fighting
View GitHub Profile
@ifels
ifels / centos6.5_nginx
Last active September 7, 2023 01:57
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
@zxhfighter
zxhfighter / emmet-snippet.md
Last active January 8, 2019 07:27
自定义emmet模板

自定义emmet模板

问题复现

ST(Sublime Text)安装emmet插件后,输入!,按tab键就可以快速得到一个简易的html5模板,甚是便捷:

<!DOCTYPE html>
<html lang="en">
<head>
@liujbo
liujbo / JarUtil.java
Last active November 24, 2018 15:41
解压jar包到指定目录
package com.xilai.cuteBoy.common.util;
import java.io.*;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/*************************************************************
* Description: Jar工具类
* Author: Liu Junbo
@ericzhong
ericzhong / ELK 安装与使用.md
Last active October 9, 2018 21:05
ELK 安装与使用

介绍

ELK = Elasticsearch + Logstash + Kibana,都是 Elastic 公司的产品。

Elastic Stack 目前包含组件 Beats、Elasticsearch、Elasticsearch Hadoop、Kibana、Logstash、X-Pack。

安装

@geekyouth
geekyouth / centos6.5_nginx
Created October 4, 2018 13:26 — forked from ifels/centos6.5_nginx
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
@satorg
satorg / scala-compile-server-options.md
Last active March 20, 2022 09:05
HOWTO FIX: "Warning:scalac: Cannot connect to compile server at localhost/127.0.0.1:3200 Trying to compile without it"

Applicable for:

  • IntelliJ IDEA CE 2019.1 (2018.* – ?)
  • macOS Mojave
  • may also work for other IDEA/macOS versions

Steps to fix:

  1. Go to directory ~/Library/Preferences/IdeaIC${IDEA_VERSION}/
    • for IntelliJ IDEA CE 2019.1: ~/Library/Preferences/IdeaIC2019.1/.
  2. There're two files in this directory:
  • ./settingsRepository/repository/scala.xml;
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 16, 2024 04:28
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
@geekyouth
geekyouth / provinces.json
Created July 29, 2019 08:01
全国城市区号列表.json
[
{
"code": "010",
"city": "北京",
"pinyin": "beijing"
},
{
"code": "021",
"city": "上海",
"pinyin": "shanghai"
@xjohjrdy
xjohjrdy / xiaoxiao_tts.py
Last active September 10, 2024 19:50
返回的音频没有文件头,所以我随便加的一个文件头,但显示的音频时长有问题。如果播放器不能正常播放,可以使用Chrome播放。
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from ws4py.client.threadedclient import WebSocketClient
import binascii
class WSClient(WebSocketClient):
def __init__(self, url, text, filename):