Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
public class HawkAuthenticationHandler : AuthenticationHandler<HawkAuthenticationOptions> | |
{ | |
private readonly ILogger logger; | |
public HawkAuthenticationHandler(ILogger logger) | |
{ | |
this.logger = logger; | |
} | |
protected override Task<AuthenticationTicket> AuthenticateCore() |
public class Configuration(IAppBuilder app) | |
{ | |
// TaskCompletionSource | |
app.Map("/streaming-api1", map => | |
{ | |
// Streaming API using SignalR | |
var connectionContext = GlobalHost.ConnectionManager.GetConnectionContext<RawConnection>(); | |
map.Run(async context => | |
{ |
configuration MongoDB { | |
param ( | |
[string[]]$ComputerName = $env:ComputerName | |
) | |
node $ComputerName { | |
File SetupFolder { | |
Type = 'Directory' | |
DestinationPath = "C:\setup" | |
Ensure = 'Present' | |
} |
public enum Cacheability | |
{ | |
NoCache, | |
Private, | |
Public, | |
} |
# curl -Lk https://gist.githubusercontent.com/prabirshrestha/279d8b179d9353fe8694/raw/.bash_profile -o ~/.bash_profile | |
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # This loads NVM | |
export PATH="$HOME/.cargo/bin:$HOME/go/bin:$HOME/Library/Python/3.7/bin:$PATH" | |
export PATH="$HOME/.config/nvim/plugins/vim-themis/bin:$PATH" | |
stty -ixon | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
I tweeted Tutum last night asking if they're looking at implementing zero downtime re-deploys for a given service. Slightly surprised by their response as it seems like a critical feature if you want to use the service for a production environment.
"not a top priority, but by Spring :)"
As Tutum currently doesn't support graceful termination of containers within a service, I was experiencing a 5-10 second window of 503
errors, so decided to use the following hack (code below) until the feature is officially implemented.
public class SomeFixture : IDisposable | |
{ | |
private DockerClient client; | |
public SomeFixture() | |
{ | |
Console.WriteLine("SomeFixture ctor: This should only be run once"); | |
//Using https://github.com/ahmetalpbalkan/Docker.DotNet |