Skip to content

Instantly share code, notes, and snippets.

View andronedev's full-sized avatar
:shipit:
I may be slow to respond.

Nicolas andronedev

:shipit:
I may be slow to respond.
View GitHub Profile
@iamajeesh
iamajeesh / dropAll.php
Created May 13, 2015 07:29
Drop All Tables in Database Uisng PHP
<?php
$mysqli = new mysqli("localhost", "user", "pass", "dbname");
$mysqli->query('SET foreign_key_checks = 0');
if ($result = $mysqli->query("SHOW TABLES"))
{
while($row = $result->fetch_array(MYSQLI_NUM))
{
$mysqli->query('DROP TABLE IF EXISTS '.$row[0]);
echo $row[0].",\n";
@FriendlyTester
FriendlyTester / gist:897c776c1fcf14e627c8
Created October 16, 2014 11:04
C# Proxy Using Firefox Driver
public void SettingUpAProxyUsingFirefoxDriver()
{
//Create a new Firefox profile
var firefoxProfile = new FirefoxProfile();
//Create a new proxy object
var proxy = new Proxy();
//Set the http proxy value, host and port.
proxy.HttpProxy = "localhost:8888";
//We then add this proxt setting to the Firefox profile we created
firefoxProfile.SetProxyPreferences(proxy);