Skip to content

Instantly share code, notes, and snippets.

View astorije's full-sized avatar

Jérémie Astori astorije

View GitHub Profile
@astorije
astorije / countwords.sh
Created March 19, 2016 20:17
Counts the number of occurrences of a given pattern recursively in the current directory.
#!/bin/sh
set -e # Stop execution at first error
if [[ $# -eq 0 ]] ; then
echo "Usage: $(basename $0) pattern"
echo " Counts the number of occurrences of a given pattern recursively"
echo " in the current directory."
exit 1
fi
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: spec/cancan/controller_resource_spec.rb
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ controller_resource_spec.rb:4 @
require 'spec_helper'
+require 'action_controller'
describe CanCan::ControllerResource do
let(:ability) { Ability.new(nil) }
- let(:params) { HashWithIndifferentAccess.new(controller: 'models') }
@astorije
astorije / config.json
Last active November 4, 2018 04:56
Custom Bootstrap v3.3.7 configuration for https://thelounge.chat
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",

This is a minimal test case for ansible/ansible#47353.

Using the following command:

ANSIBLE_STDOUT_CALLBACK=actionable ansible-playbook -i inventory.cfg playbook.yml

❌ Ansible 2.7.0 incorrectly reports: