Skip to content

Instantly share code, notes, and snippets.

View bcarpio's full-sized avatar

Brian Carpio bcarpio

View GitHub Profile
@bcarpio
bcarpio / gist:d8e1d576b402ad4fa3e77c978377a35d
Created December 29, 2020 21:05
Docker Compose for LDAP and PHPLDAPADMIN
version: '2'
services:
openldap:
image: osixia/openldap:latest
container_name: openldap
domainname: "example.org" # important: same as hostname
hostname: "openldap"
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Example Inc."
set nocompatible
filetype on
" Load Vindle
" Type :source % (Noob)
" Type :PluginInstall (Noob)
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'hashivim/vim-terraform'
Plugin 'stephpy/vim-yaml'
Plugin 'gmarik/Vundle.vim'
#!/usr/bin/perl
use strict;
use Data::Dumper;
use DBI;
use Sys::Syslog qw(:standard :macros);
use DateTime;
use POSIX qw(strftime);
openlog("mysql_zbx_part", "ndelay,pid", LOG_LOCAL0);
AppointmentServicesWSDL.xml:<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.idx.com/hco/services/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.idx.com/hco/services/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
AppointmentServicesWSDL.xml: <s:schema elementFormDefault="qualified" targetNamespace="http://www.idx.com/hco/services/">
AppointmentServicesWSDL.xml: <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
AppointmentServicesWSDL.xml: <soap:operation soapAction="http://www.idx.com/hco/services/getApptsByDateTime" style="document" />
AppointmentServicesWSDL.xml: <soap:operation soapAction="http://www.idx.com/hco/services/getApptsByDeptDates
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>
Twentys: {{twentys}}<BR>
Tens: {{tens}}
</body></html>
#!/usr/bin/python
# vim: set expandtab:
from flask import Flask, flash, abort, redirect, url_for, request, render_template, make_response, json, Response
import os, sys
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
#!/usr/bin/python
# vim: set expandtab:
import config
import requests
import json
import os
import requests
def deploy_multi_region_elasticsearch(env):
url = config.urls()
@bcarpio
bcarpio / gist:4187385
Created December 2, 2012 06:45
MegaMillions Into Mongodb
#!/usr/bin/python
# vim: set expandtab:
import urllib2
from BeautifulSoup import BeautifulSoup
from pymongo import Connection
host = 'localhost'
database = 'lotto'
collection = 'mega_millions'
@bcarpio
bcarpio / gist:4187244
Created December 2, 2012 06:25
MegaMillions Winning Numbers Scraper
#!/usr/bin/python
# vim: set expandtab:
import urllib2
from BeautifulSoup import BeautifulSoup
win_dict = {}
page_num = 1
total_pages = 63
{
"use1a-pri-puppet-01": "\u001b[0;32mInfo\u001b[0m: Retrieving plugin\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /etc/puppet/modules/varnish/lib/facter/varnish_version.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /var/lib/puppet/lib/facter/root_home.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb\r\n\u001b[0;32mInfo\u001b[0m: Loading facts in /var/lib/puppet/lib/facter/varnish_version.rb\r\n\u001b[0;32mInfo\u001b[0m: Caching catalog for use1a-pri-puppet-01.social.local\r\n\u001b[0;32mInfo\u001b[0m: Applying configuration version '1352413667'\r\n/Stage[main]/Base/Ser