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 os | |
import apiai | |
import json | |
import requests | |
import random | |
from flask import Flask, request, abort | |
from linebot import ( | |
LineBotApi, WebhookHandler |
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
#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" |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
import json | |
import pprint | |
import requests | |
import sys | |
try: |
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
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': |
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 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 |
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 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 |
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
#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" |
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
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 |
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 | |
#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============" |
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 | |
#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============" |
NewerOlder