This is a short description of your app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker cleanup | |
docker ps -a | grep Exit | awk '{ print $1 }' | xargs docker rm | |
docker images | grep none | awk '{ print $3 }' | xargs docker rmi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for cert in `find /etc/ssl/certs | grep crt | sort`; do basename $cert; openssl x509 -noout -in $cert; openssl x509 -noout -in $cert -dates ; echo ''; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set env vars for AWS_* when launching - this config will refer to them. | |
# To specify prod flavor, set the environment variable SETTINGS_FLAVOR=prod | |
# example launching with this config, in a docker image: | |
# docker run -p 5000:5000 -e SETTINGS_FLAVOR=prod -e AWS_KEY=X -e AWS_SECRET=Y -e AWS_BUCKET=images registry-image | |
common: | |
boto_bucket: _env:AWS_BUCKET | |
s3_access_key: _env:AWS_KEY | |
s3_secret_key: _env:AWS_SECRET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/https' | |
url = "https://www.google.com" | |
uri = URI.parse(url) | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_PEER | |
http.start { |h| @cert = h.peer_cert } | |
@cert | |
@cert.not_after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS_DEFAULT_LOGGER.debug(caller.join("\n")) if defined? SOME CONSTANT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# An example hook script for the post-receive event | |
# | |
# This script is run after receive-pack has accepted a pack and the | |
# repository has been updated. It is passed arguments in through stdin | |
# in the form | |
# <oldrev> <newrev> <refname> | |
# For example: | |
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: Portfile 64302 2010-03-01 13:30:40Z ryandesign@macports.org $ | |
PortSystem 1.0 | |
PortGroup archcheck 1.0 | |
name ImageMagick | |
conflicts cryptlib | |
version 6.6.0-0 | |
set reasonable_version [lindex [split ${version} -] 0] | |
homepage http://www.imagemagick.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Ignore arrow keys in vim | |
:map <Left> <Nop> | |
:map <Right> <Nop> | |
:map <Up> <Nop> | |
:map <Down> <Nop> | |
:map <PageUp> <Nop> | |
:map <PageDown> <Nop> | |
:map <Home> <Nop> | |
:map <End> <Nop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://confreaks.com/events/rubyconf2012 | grep "/videos/" | cut -d '"' -f 2 | while read url; do curl -s "http://confreaks.com$url" | grep "large.mp4?" | grep -v "xtra" | cut -d '"' -f 2 >> /tmp/cf-vids.txt; done; cat /tmp/cf-vids.txt | uniq |
OlderNewer