Category: Coding

2

PHP Script: Generate random usernames

You can use this script to generate random usernames. 1. Main Scriptmain.php contains the main source code.Edit following variables to customize your script: $common_string : Any string to attach at the end of username...

0

lftp Certificate verification: Not trusted

If lftp gives this error while connecting to an FTP server: Certificate verification: Not trusted It means that the site you are trying to ftp to has some certificate mismatch and so it’s not...

1

Vi Editor keys adding characters

You are using Vi Editor and press the backspace and it adds a new line with letter “D” in it. Or hitting arrow keys adds characters. Or a whole other random behavior and you...

2

Reboot TP-Link Router TL-WA7510N using Curl

I have a TP-Link outdoor AP point router: Hardware Version: WA7510N v2 It sometimes freezes and I need to manually reboot it. My downloads suffer and I am a bit OCDic about continuous downloads...

1

Guzzle: How to capture requests responses using Fiddler

Fiddler is a wonderful free web debugging proxy tool from Telerik. It helps you debug web applications by capturing network traffic. You can get it here: http://www.telerik.com/download/fiddler/fiddler2 When using Web HTTP Clients like Guzzle,...

0

Remove double quotes from Guzzle Cookies

I very recently started using the guzzle 6 PHP library to data mine some sites. It’s worked great so far. One of the sites I’m mining needs cookies containing an ‘=’ sign. Guzzle always...

2

Editing Code In a PHAR file

A PHAR file is a PHp ARchive file. You can create an archive of your PHP library and store it into a PHAR file for easy distribution. If you want to change some code...