Skip to content

Instantly share code, notes, and snippets.

Both things have been introduced recently, and let you access even private ec2 instances

  1. Without VPN
  2. No open SSH port
  3. Authentication / Authorization is fully delegated to IAM
# Assumes valid AWS Credentials in ENV

Both things have been introduced recently, and let you access even private ec2 instances

  1. Without VPN
  2. No open SSH port
  3. Authentication / Authorization is fully delegated to IAM
# Assumes valid AWS Credentials in ENV
@jonrimmer
jonrimmer / ui-grid-resize.js
Created February 26, 2015 17:31
Auto-Resize Directive for Angular UI-Grid
(function() {
angular
.module('myApp')
.directive('myUiGridResize', myUiGridResizeDirective);
/* @ngInject */
function myUiGridResizeDirective(gridUtil, uiGridConstants) {
return {
restrict: 'A',
require: 'uiGrid',
@discordier
discordier / gist:ed4b9cba14652e7212f5
Created December 4, 2014 06:23
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@Ocramius
Ocramius / Bootstrap.php
Created November 1, 2012 15:27
ZF2 and Doctrine Data Fixtures testing environment
<?php
/**
* @author Marco Pivetta <[email protected]>
*/
use Zend\ServiceManager\ServiceManager;
use Zend\Mvc\Service\ServiceManagerConfig;
use DoctrineORMModuleTest\Framework\TestCase;
use ContentTest\Util\ServiceManagerFactory;
use Zend\Loader\StandardAutoloader;
@weierophinney
weierophinney / zf2-workflow.txt
Created September 14, 2012 20:01
proposed workflow
We rename "master" to "develop"
We rename "release" to "master"
Thus "master" stays the default branch, which means most PRs will be made
against it.
Bugfixes are merged to:
- master
- develop
Features are merged to:
- develop
When develop looks like the next minor or major version:
@Maks3w
Maks3w / Actual.php
Created July 4, 2012 15:48
Actual way of treat URIs
<?php
function verifyUri($value) {
try {
$uri = Zend\Uri\UriFactory::factory($value)
} catch (Zend\Uri\Exception\InvalidUriPartException $e) {
return false;
}