- Python 3
- Pip 3
$ brew install python3| package demo; | |
| import java.io.Serializable; | |
| import java.security.Principal; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.UUID; |
Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for
the repo https://myorg/myrepo/ is: [email protected]:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).
You make edits, and commit and push your changes, like any normal repo. This wiki repo
is distinct from any clone of the project repo (the repo without wiki.get appended).
| sudo: required #is required to use docker service in travis | |
| language: php #can be any language, just php for example | |
| services: | |
| - docker # required, but travis uses older version of docker :( | |
| install: | |
| - echo "install nothing!" # put your normal pre-testing installs here |
| function computeHttpSignature(config, headerHash) { | |
| var template = 'keyId="${keyId}",algorithm="${algorithm}",headers="${headers}",signature="${signature}"', | |
| sig = template; | |
| // compute sig here | |
| var signingBase = ''; | |
| config.headers.forEach(function(h){ | |
| if (signingBase !== '') { signingBase += '\n'; } | |
| signingBase += h.toLowerCase() + ": " + headerHash[h]; | |
| }); |
| package lan.dk.podcastserver.utils.multipart; | |
| import lan.dk.podcastserver.utils.MimeTypeUtils; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import javax.servlet.ServletOutputStream; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |
You've been working locally for awhile. You're ready to push some changes, but someone else pushed something! You have to pull in their changes before you can push yours.
git pull origin master forces you to create a merge commit, which is annoying.
Instead, do git pull --rebase origin master. This will effectively:
No merge commit!
| # The MIT License (MIT) | |
| # Copyright (c) 2016 Vladimir Ignatev | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the "Software"), | |
| # to deal in the Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| # and/or sell copies of the Software, and to permit persons to whom the Software | |
| # is furnished to do so, subject to the following conditions: | |
| # |
| console.log('Loading event'); | |
| var Q = require('q'); | |
| var aws = require('aws-sdk'); | |
| var cloudfront = new aws.CloudFront(); | |
| exports.handler = function (event, context) { | |
| //_log('Received event: ', event); | |
| var bucket = event.Records[0].s3.bucket.name; |
If the Docker host is placed inside a proxy server, it needs to add the proxy configuration to each Dockerfile such as ENV http_proxy.
Following allows transparent access from the container to outside without any proxy configuration.