Skip to content

Instantly share code, notes, and snippets.

#!/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" \

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:

@dlapiduz
dlapiduz / concourse_owasp.yml
Created December 9, 2015 17:25
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 November 5, 2015 17:15
How to fix BOSH "consider cleaning up gem environment"
Use bundler and
alias bosh="BUNDLE_GEMFILE=SOMEPATH/Gemfile bundle exec bosh"
@dlapiduz
dlapiduz / map_test.go
Created June 12, 2015 03:10
Manifest inheritance merge
package generic_test
import (
. "github.com/cloudfoundry/cli/generic"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func init() {
Describe("generic maps", func() {
#!/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
@dlapiduz
dlapiduz / preseed.cfg
Created December 19, 2014 02:08
Ubuntu Preseed
# 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
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"
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 November 27, 2013 18:39
Puppet script to install Python 2.7 in Centos 6.4
class python {
file { "/tmp/rpm":
owner => root,
group => root,
mode => 644,
ensure => directory,
source => "puppet:///files/rpm/",
recurse => true,
}