Skip to content

Instantly share code, notes, and snippets.

Steve Buzonas sbuzonas

Block or report user

Report or block sbuzonas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e996a4c705bbf991b853b3c51245b53a
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
View nginx-cors.conf
map $http_origin $allow_origin {
default "";
"~^https?://(?:[^/]*\.)?(stevebuzonas\.(?:com|local))(?::[0-9]+)?$" "$http_origin";
}
map $request_method $cors_method {
default "allowed";
"OPTIONS" "preflight";
}
@sbuzonas
sbuzonas / gist:57cea59ed3dc5de02e54
Created Jun 22, 2015
Test script for github.com/composer/composer/issues/4121
View gist:57cea59ed3dc5de02e54
<?php
$url = '';
$headers = array(
'User-Agent: DownloadTest',
'Accept-Encoding: gzip',
'Connection: close',
);
View gist:50f3a450650b9a193e44
<?php
public function getInstaller($type)
{
// Plugin API 1.1
foreach ($pm->getCapabilities('Composer\Plugin\Capability\Installable') as $installCap) {
if ($installCap->supports($type)) {
return $installCap;
}
}
View README.md

Introduction

ssh-srv-wrapper is bash shell script which tries to find a SSH SRV record for the first host and uses what is found rather than what was passed (if a valid record is found).

Install

Run the script directly or feel free to rename or symlink to the name ssh. It will look for another ssh in your path to execute.

@sbuzonas
sbuzonas / CurrentOptionA.php
Created Feb 6, 2015
CommandInterface suggestion
View CurrentOptionA.php
abstract class InstallationCommand extends Command
{
abstract public function install();
}
class MyInstaller extends InstallationCommand
{
public function install()
{
// do stuff
View composer.json
{
"name" : "kiriaze/PressPlay",
"description" : "Composer backed boilerplate project for easy WordPress sites",
"authors" : [
{
"name" : "Constantine Kiriaze",
"email" : "hello@kiriaze.com",
"homepage" : "http://kiriaze.com/"
View Berksfile
# -*- mode: ruby; encoding: utf-8 -*-
COOKBOOK_REPO = File.expand_path('../', __FILE__)
# This method allows uncommitted cookbooks to be included
# Trade-off is install leaves these in place and vendor
# needs to be explicitly called to put all in a vendor path
def development_cookbook(name, version = '>=0.0.0', options = {})
cookbook name, version, { path: File.join(COOKBOOK_REPO, name) }.merge(options)
end
View gist:1bb2281cdff4d989d6da
#!/usr/bin/env perl
use strict;
my $name = &promptUser("What is your name", "Steve");
print 'Hello, ', $name, "!\n";
sub promptUser {
my ($promptString,$defaultValue) = @_;
@sbuzonas
sbuzonas / SassMeister-input-HTML.html
Created Feb 27, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CSS List Grouping Example</title>
</head>
<body>
<div class="container">
You can’t perform that action at this time.