Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am khobbits on github.
  • I am khobbits (https://keybase.io/khobbits) on keybase.
  • I have a public key ASBGMkau_2CEHNCu7ssu2lYlEHwGranFxYbI25NuHleR4wo

To claim this, I am signing this object:

hudson.remoting.ProxyException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script8.groovy: 1: expecting anything but ''\n''; got it anyway @ line 1, column 14.
"STACK_INFO={
^
1 error
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:150)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:120)
environment {
DEPLOY_TIMEOUT = 900
AWS_CREDENTIALS = '123456-abcd-efgh-ijkl-6dc2549e76a1'
REGION = 'us-east-1'
PROJECT = 'Secret AWS Project'
STACK_INFO = '''{
"master": {
"stackid": "123456-abcd-efgh-ijkl-6dc2549e76a1",
"layerid": "123456-abcd-efgh-ijkl-6dc2549e76a1",
"appid": "123456-abcd-efgh-ijkl-6dc2549e76a1",
[vagrant@mill-dev ~]$ cat /etc/php.d/50-memcached.ini
; Enable memcached extension module
extension=memcached.so
; ----- Options to use the memcached session handler
; RPM note : save_handler and save_path are defined
; for mod_php, in /etc/httpd/conf.d/php.conf
; for php-fpm, in /etc/php-fpm.d/*conf
/* exported Script
Issue events (create, edit, close, reopen, assign, label, etc)
Issue comment events
Push events (singular and multiple commits)
*/
String.prototype.capitalizeFirstLetter = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1437382689000",
"Effect": "Allow",
"Action": [
"iam:CreateVirtualMFADevice",
"iam:DeactivateMFADevice",
"iam:DeleteVirtualMFADevice",
@khobbits
khobbits / example.php
Last active April 11, 2016 12:48
Monolog with Logstash RabbitMQ PhpAmqpLib basic example
<?php
require __DIR__ . '/vendor/autoload.php';
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\AmqpHandler;
use Monolog\Formatter\LogstashFormatter;
use PhpAmqpLib\Connection\AMQPStreamConnection;
setctx lains
bind pub - |listcmd listcmd
bind pub - |setcmd setcmd
bind pub - .listcmd listcmd
bind pub - .setcmd setcmd
bind pubm - "*" show_fct
global "dirname"
set dirname "custcmd"
function RunJail($code, $obj) {
$ret = '';
eval($code);
echo $ret; // KHobbits debug line
return $ret;
}//end RunJail()
Keep in mind that IAM policies themselves do not have a particular order that they are evaluated in, although, how a policy is evaluated can make a difference.
Polices are evaluated in the following:
-Implicit Deny
-Explicit Allow
-Explicit Deny
In this case, we have two explicit allows, one with a restriction and one without a restriction. The policy with the restriction will take precedence over the policy without the restriction (or rather, the restriction itself will take precedence).