Skip to content

Instantly share code, notes, and snippets.

View bkozora's full-sized avatar

Bobby Kozora bkozora

  • Philly
View GitHub Profile
@ahhh
ahhh / Get-ScreenShot.ps1
Last active November 1, 2016 20:11 — forked from guitarrapc/Get-ScreenShot.ps1
Screenshot Automation with PowerShell
function Get-ScreenShot
{
[CmdletBinding()]
param(
[parameter(Mandatory = 0)]
[ValidateNotNullOrEmpty()]
[Alias('Path', 'Out', 'o')]
[string]$OutPath = "$env:USERPROFILE\Documents\ScreenShot",
#screenshot_[yyyyMMdd_HHmmss_ffff].png
@bkozora
bkozora / vhosts.conf
Created October 8, 2015 21:00
Apache - Wildcard Subdomains
DocumentRoot "/var/www/vhosts"
<Directory "/var/www/vhosts">
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
#Require all granted
</Directory>
@amnuts
amnuts / scraping.php
Last active April 21, 2021 06:44
Example of how to scrape multiple pages using Zend\Dom from Zend Framework 2.
<?php
use \Zend\Dom\Query;
use \Zend\Debug\Debug;
/**
* Fetch the page source and cache it, ensuring it's saved as UTF-8
*
* @param string $url
* @return string
@chrisamoore
chrisamoore / Preferences.sublime-settings
Last active December 22, 2015 16:39
Sublime Settings * req* phpcs, phpmd, php-cs-fixer
{
"auto_complete_commit_on_tab": false,
"auto_id_class": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Cache/Theme - Default/Cam.tmTheme",
"command": "whitespacecorrector",
"create_window_at_startup": false,
"detect_slow_plugins": false,
"draw_minimap_border": false,
@ck-on
ck-on / ocp.php
Last active May 18, 2024 22:35
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter