This file contains hidden or 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
[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E] |
This file contains hidden or 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
public class HttpHeadersChecker | |
{ | |
public static void SplitResponse(IZennoPosterProjectModel project, string response) { | |
// разбиваем заголовки и содержимое ответа сервера | |
response = response.Trim(); | |
// разделитель заголовков и содержимого | |
string[] separator = new string[] {"\r\n\r\n"}; | |
// массив заголовков и содержимого (содержимое тоже может быть разбито на части) |
This file contains hidden or 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
/* | |
* Created by SharpDevelop. | |
* User: Lord_Alfred | |
* Date: 18.01.2019; Updated: 15.07.2019 | |
* Time: 11:01 | |
* | |
* To change this template use Tools | Options | Coding | Edit Standard Headers. | |
*/ | |
using System; | |
using System.Linq; |
This file contains hidden or 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 | |
# Optimize all tables in all MySQL databases for VestaCP user (for better performance in InnoDB engine) | |
# set 'chmod +x' | |
# and add this script in your weekly cron | |
VESTA_USER="vestacp_username" | |
MYSQL_DBS=$(mysql -e "show databases like '${VESTA_USER}_%';" | awk '{ if ($1 != "Database") print $1 }') |
This file contains hidden or 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
# run: | |
# python3 predict_titles.py lid.176.bin titles.txt | |
# or see help: | |
# python3 predict_titles.py -h | |
import argparse | |
import codecs | |
import os | |
from collections import defaultdict |
This file contains hidden or 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
@echo off | |
echo [-] Task 'mysql backup' start | |
rem backups directory (with slash at end!) | |
set backup_dir=C:\YandexDisk\mysql\daily\ | |
rem mysql & mysqldump path | |
set mysql_path="C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" | |
set mysqldump_path="C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe" |
This file contains hidden or 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
<?php | |
/* | |
* Author: Lord_Alfred | |
* Blog: https://vk.com/lord.alfred | |
*/ | |
error_reporting(E_ALL); | |
ini_set('display_errors', true); | |
ini_set('memory_limit', '256M'); | |
set_time_limit(0); |
NewerOlder