if you want install latest version check official site
# will install postgres9
sudo yum install postgresql-server postgresql-contrib
sudo postgresql-setup initdb
BASEPATH=$(PWD) | |
EXEC=server.jar # forge-1.14.3-27.0.12.jar # you can change to forge | |
BACKUPNAME="world-$(shell date '+%F-%H%M').tar.gz" | |
BAKPATH=$(BASEPATH)/backup-worlds | |
MAKEFLAGS += --silent | |
all: help | |
## require: install required programs |
if you want install latest version check official site
# will install postgres9
sudo yum install postgresql-server postgresql-contrib
sudo postgresql-setup initdb
sudo pacman -Qqte | >> pacman.txt |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/base64" | |
"encoding/pem" | |
"errors" | |
"fmt" |
# -*- coding: utf-8 -*- | |
# Author: SKo00o | |
def kill(str): | |
p = 'X' | |
o = [] | |
f = False | |
for x in str: | |
if x != p: |
# -*- coding: utf-8 -*- | |
# Author: SKo00o | |
''' | |
Use for import script file to pythonista. | |
Add this script in pythonsta’s Share Extention Shortcuts. | |
''' | |
import appex | |
import os | |
import console |
# -*- coding: utf-8 -*- | |
# Author: SKo00o | |
''' | |
Format Code use pep8 in pythonista. | |
1. Install StaSh | |
2. Run following code in StaSh: | |
pip install autopep8 | |
3. Add this Script in pythonista's shortcut | |
''' |
import requests | |
import json | |
# 你无聊的时候可以找个机器人聊天啊…… | |
def talkwithrobot(str): | |
say = str | |
via = 'http://op.juhe.cn/robot/index?info='+say+'&key=df2c3195b69b9c9fce3678698edc80a2' | |
res = requests.request('GET',via).json() | |
res2 = res['result']['text'] |