Skip to content

Instantly share code, notes, and snippets.

---
- name: Stop all running logspout containers
shell: "docker ps | sed -e '1d' | grep logspout | awk {'print $1'} | xargs docker stop || :"
ignore_errors: yes
when: force_pull
- name: delete all Logspout containers
shell: "docker ps -a | grep logspout | awk '{print $1}' | xargs docker rm -f || :"
ignore_errors: yes
when: force_pull
package main
import (
"fmt"
"os"
"strconv"
"math"
"runtime"
)
@jeffjohnson9046
jeffjohnson9046 / ruby-ldap-sample.rb
Last active January 5, 2024 07:11
Some VERY basic LDAP interaction in Ruby using Net::LDAP.
#######################################################################################################################
# This Gist is some crib notes/tests/practice/whatever for talking to Active Directory via LDAP. The (surprisingly
# helpful) documentation for Net::LDAP can be found here: http://net-ldap.rubyforge.org/Net/LDAP.html
#######################################################################################################################
require 'rubygems'
require 'net/ldap'
#######################################################################################################################
# HELPER/UTILITY METHOD