Skip to content

Instantly share code, notes, and snippets.

import os
import apiai
import json
import requests
import random
from flask import Flask, request, abort
from linebot import (
LineBotApi, WebhookHandler
#Author :LiteSpeedtech & Matan Schatzman
#date :20191023
#version :1.7.3
#Require :Prepare site map XML
# Allow LSCache crawler
#=======================================================
AGENTDESKTOP='User-Agent: lscache_runner'
AGENTMOBILE='User-Agent: lscache_runner iPhone'
SVALUE="0.1"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import json
import pprint
import requests
import sys
try:
from threading import Thread
import threading
_eat_record_loop={} #loop
def food_loop(): #loop
the_thread = threading.currentThread()
while getattr(the_thread, "do_run", True):
sleep(60)
now_time = datetime.datetime.now().strftime("%H:%M")
print("now_time:",now_time)
if now_time == '22:59':
import json
import sys
import re
import urllib.request
import urllib.error
from os import path
import random
from urllib.parse import quote
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import json
import sys
import re
import urllib.request
import urllib.error
from os import path
import random
from urllib.parse import quote
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
#Author :LiteSpeedtech
#date :20191023
#version :1.7.3
#Require :Prepare site map XML
# Allow LSCache crawler
#=======================================================
AGENTDESKTOP='User-Agent: lscache_runner'
AGENTMOBILE='User-Agent: lscache_runner iPhone'
SVALUE="0.1"
2018-05-04 17:36:17.822520 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] read 1184 bytes to header buffer
2018-05-04 17:36:17.822538 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] client accept GZIP encoding.
2018-05-04 17:36:17.822544 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] client accept BROTLI encoding.
2018-05-04 17:36:17.822551 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] processHeader() return 0, header state: 3.
2018-05-04 17:36:17.822556 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] readToHeaderBuf(): HSPS_READ_REQ_HEADER -> HSPS_NEW_REQ
2018-05-04 17:36:17.822561 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] processNewReq(), request header buffer size: 1188, header used: 1188, processed: 1188.
2018-05-04 17:36:17.822570 [DEBUG] [47.22.54.182:60378-Q:18164550568817135316-29] Headers: GET /wp-admin/admin-ajax.php?action=mainwp_bulk_settings_manager_preview&type=1&id=755&wp_nonce=d39148b8e8&secret=uCGHC1IWri5fqMP HTTP/1.1
2018-05-04 17:36:17.822
#!/bin/bash
#Install OpenLiteSpeed, PHP71 and Magento1.9.3.3 on CentOS7
echoY()
{
FLAG=$1
shift
echo -e "\033[38;5;148m$FLAG\033[39m$@"
}
echoY "Install OpenLiteSpeed, PHP71 and Magento1.9.3.3 on CentOS7 "
echoY "=============Start System Update============"
@Code-Egg
Code-Egg / install.sh
Created January 16, 2018 23:57
Magento1+OLS install
#!/bin/bash
#Install OpenLiteSpeed, PHP71 and Magento1.9.3.3 on CentOS7
echoY()
{
FLAG=$1
shift
echo -e "\033[38;5;148m$FLAG\033[39m$@"
}
echoY "Install OpenLiteSpeed, PHP71 and Magento1.9.3.3 on CentOS7 "
echoY "=============Start System Update============"