I hereby claim:
- I am bkilshaw on github.
- I am bkilshaw (https://keybase.io/bkilshaw) on keybase.
- I have a public key ASCQRMlPvt2gJnoR4OOcO6yCz8lX0iEDHgjnZ38qTXZ0UQo
To claim this, I am signing this object:
hello world |
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
I hereby claim:
To claim this, I am signing this object:
if(!Session::has('rand.key')) { | |
Session::push('rand.key', rand()); | |
} | |
$seed = Session::get('rand.key'); |
if(!$request->session()->has('rand.key')) { | |
$request->session()->push('rand.key', rand()); | |
} | |
$seed = $request->session()->get('rand.key'); |
<?php | |
$mac_address = "FC:FB:FB:01:FA:21"; | |
$url = "http://api.macvendors.com/"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, "mac=$mac_address"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
<?php | |
$mac_address = "FC:FB:FB:01:FA:21"; | |
$url = "https://api.macvendors.com/" . urlencode($mac_address); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$response = curl_exec($ch); | |
if($response) { | |
echo "Vendor: $response"; |
<?php | |
function query_select_single($query) { | |
$results = mysql_query($query); | |
if(mysql_num_rows($results) >= 1) { | |
return mysql_fetch_assoc($results); | |
} | |
return FALSE; | |
} | |
?> |
index.php -> page_1.php -> page_2.php -> page_3.php | |
-> page_a.php -> page_b.php | |
-> page_i.php -> page_ii.php | |
-> page_x.php -> page_y.php | |
var http = require("http"); | |
function onRequest(request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.write("Hello World"); | |
console.log("."); | |
response.end(); | |
} | |
http.createServer(onRequest).listen(8888); |