Skip to content

Instantly share code, notes, and snippets.

View protect_masters.sh
#!/bin/bash
repos=$(curl -s "https://api.github.com/search/repositories?q=user:18F+cg-" | jq -r '.items[] | .full_name')
for repo in $repos; do
echo "Protecting $repo"
curl -s "https://api.github.com/repos/$repo/branches/master" \
-XPATCH \
-H "Authorization: token $GH_KEY" \
View keybase.md

Keybase proof

I hereby claim:

  • I am dlapiduz on github.
  • I am ddl (https://keybase.io/ddl) on keybase.
  • I have a public key whose fingerprint is 0024 4E67 297C 7F82 50BA A7C6 0E86 2246 FF97 2E79

To claim this, I am signing this object:

View concourse_owasp.yml
---
platform: linux
image: docker:///owasp/zap2docker-stable
run:
path: zap-cli
args:
- quick-scan
- https://cloud.gov/
@dlapiduz
dlapiduz / gist:ad55b4609f38f127706c
Created Nov 5, 2015
How to fix BOSH "consider cleaning up gem environment"
View gist:ad55b4609f38f127706c
Use bundler and
alias bosh="BUNDLE_GEMFILE=SOMEPATH/Gemfile bundle exec bosh"
@dlapiduz
dlapiduz / map_test.go
Created Jun 12, 2015
Manifest inheritance merge
View map_test.go
package generic_test
import (
. "github.com/cloudfoundry/cli/generic"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func init() {
Describe("generic maps", func() {
View gist:e9307041dc01b01b6ba5
#!/bin/sh
# Make bin folder
mkdir -p $HOME/bin
# Get bootstrap
curl https://github.com/dlapiduz/tmate-bootstrap/releases/download/v0.0.1/tmate-bootstrap > $HOME/bin/tmate-bootstrap
# Make the temporary file executable
chmod +x $HOME/bin/tmate-bootstrap
View preseed.cfg
# Some inspiration:
# * https://github.com/chrisroberts/vagrant-boxes/blob/master/definitions/precise-64/preseed.cfg
# * https://github.com/cal/vagrant-ubuntu-precise-64/blob/master/preseed.cfg
# English plx
d-i debian-installer/language string en
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/preferred-locale string en_US.UTF-8
d-i localechooser/supported-locales en_US.UTF-8
View gist:d9f3d27787c75dc8416f
Visor:~:% curl -I https://api.github.com/repos/ozoneplatform/owf/commits | grep Link:
Link: <https://api.github.com/repositories/6943316/commits?page=2>; rel="next"
View gist:8918879
chmod -R a+rx /usr/lib64/python2.7/site-packages
chmod -R a+rx /usr/lib/python2.7/site-packages
@dlapiduz
dlapiduz / python.pp
Created Nov 27, 2013
Puppet script to install Python 2.7 in Centos 6.4
View python.pp
class python {
file { "/tmp/rpm":
owner => root,
group => root,
mode => 644,
ensure => directory,
source => "puppet:///files/rpm/",
recurse => true,
}