Edit your wsgi.py file to wrap your application
object as shown in the attached example.
Then go to /__guppy__
to see memory usage profiling.
This is very basic and probably needs to be refined.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
This playbook has been removed as it is now very outdated. |
Edit your wsgi.py file to wrap your application
object as shown in the attached example.
Then go to /__guppy__
to see memory usage profiling.
This is very basic and probably needs to be refined.
dotcloud run db "mongodump -h APPNAME.dotcloud.com:DBPORT -u root -p PASSWORD -d DBNAME" | |
dotcloud run db -- \ | |
"tar -chf- dump 2>/dev/null | base64 -w0" \ | |
| base64 -d > backup-`date +%s`.tar |
packer build packer.json 2>&1 | sudo tee output.txt | |
tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt |
# check if job exists | |
curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken | |
# with folder plugin | |
curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
# without folder plugin | |
curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
# create folder |
resource "digitalocean_droplet" "web" { | |
image = "ubuntu-16-04-x64" | |
name = "web-1" | |
region = "sgp1" | |
size = "512mb" | |
ssh_keys = [12345] | |
connection { | |
type = "ssh" | |
user = "root" |
Do I want to die on this hill?
Am I including everyone?