-
Open Ampps Application -> MySQL Tab -> Configuration.
-
In [mysqld] section, add the following line:
innodb_force_recovery = 1
-
Save the file and try starting MySQL
-
Remove that line which you just added and Save.
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
/* | |
Inspired by https://gist.github.com/shaneapen/3406477b9f946855d02e3f33ec121975 | |
The script scrapes the members of a WhatsApp group chat and exports the data to a CSV file. | |
It scrolls automatically and extracts each list item in the members list with all the information available. | |
Then it joins this information with the indexedDB data to get the groups the member is in and if the contact's info | |
if it is already saved in the phone. | |
Steps: | |
1. Open WhatsApp Web |
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
Name: Flash | |
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
Thank you! |
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 | |
/** Please excuse this code I wrote in 2011, I'll be updating this post for 2015/6 standards soon */ | |
// clean up the input | |
if(empty($_GET['text'])) fatal_error('Error: No text specified.') ; | |
$text = html_entity_decode($_GET['text']).' ' ; | |
$text = floatval($text); | |
$text = number_format($text, 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
<?php | |
$config['upload_path'] = './uploads/'; // upload path | |
/* OR any oyher form, e.g.: | |
$config['upload_path'] = $_SERVER["DOCUMENT_ROOT"].'/uploads/'; // upload path | |
*/ | |
$config['allowed_types'] = 'zip'; // array or string of file extensions | |
$config['max_size'] = '100'; // max file size | |
$this->load->library('upload', $config); // do the job | |
$zdata = array('upload_data' => $this->upload->data()); // get data | |
$zfile = $zdata['upload_data']['full_path']; // get file path |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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 | |
/** | |
* Download helper to download files in chunks and save it. | |
* | |
* @author Syed I.R <[email protected]> | |
* @link https://github.com/irazasyed | |
* | |
* @param string $srcName Source Path/URL to the file you want to download | |
* @param string $dstName Destination Path to save your file | |
* @param integer $chunkSize (Optional) How many bytes to download per chunk (In MB). Defaults to 1 MB. |
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
#-*- coding: utf-8 -*- | |
import re | |
import nltk | |
from nltk.tokenize import RegexpTokenizer | |
from nltk import bigrams, trigrams | |
import math | |
stopwords = nltk.corpus.stopwords.words('portuguese') |