Skip to content

Instantly share code, notes, and snippets.

Jul 02 08:58:58 marathon.sh[27584]: [2019-07-02 08:58:58,262] INFO 172.18.1.62 - - [02/Jul/2019:08:58:58 +0000] "GET /v2/groups?embed=group.groups&embed=group.apps&embed=group.apps.deployments&embed=group.apps.counts&embed=group.apps.readiness HTTP/1.1" 200 35146 "http://172.18.1.62/service/marathon/ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36" 2 (mesosphere.marathon.api.JettyRequestLog:scala-execution-context-global-462)
Jul 02 08:58:58 marathon.sh[27584]: [2019-07-02 08:58:58,900] INFO 44.128.0.2 - - [02/Jul/2019:08:58:58 +0000] "GET /v2/queue HTTP/1.1" 200 12 "-" "python-requests/2.18.4" (mesosphere.marathon.api.JettyRequestLog:scala-execution-context-global-462)
Jul 02 08:59:03 marathon.sh[27584]: [2019-07-02 08:59:03,247] INFO 172.18.1.62 - - [02/Jul/2019:08:59:03 +0000] "GET /v2/queue HTTP/1.1" 200 12 "http://172.18.1.62/service/marathon/ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, l
Jul 02 08:58:58 marathon.sh[27584]: [2019-07-02 08:58:58,262] INFO 172.18.1.62 - - [02/Jul/2019:08:58:58 +0000] "GET /v2/groups?embed=group.groups&embed=group.apps&embed=group.apps.deployments&embed=group.apps.counts&embed=group.apps.readiness HTTP/1.1" 200 35146 "http://172.18.1.62/service/marathon/ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36" 2 (mesosphere.marathon.api.JettyRequestLog:scala-execution-context-global-462)
Jul 02 08:58:58 marathon.sh[27584]: [2019-07-02 08:58:58,900] INFO 44.128.0.2 - - [02/Jul/2019:08:58:58 +0000] "GET /v2/queue HTTP/1.1" 200 12 "-" "python-requests/2.18.4" (mesosphere.marathon.api.JettyRequestLog:scala-execution-context-global-462)
Jul 02 08:59:03 marathon.sh[27584]: [2019-07-02 08:59:03,247] INFO 172.18.1.62 - - [02/Jul/2019:08:59:03 +0000] "GET /v2/queue HTTP/1.1" 200 12 "http://172.18.1.62/service/marathon/ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, l
public void TestChanges()
{
var session = new CloudantSession("https://user.cloudant.com");
session.Changes<dynamic>("some_db", FeedType.longpoll, include_docs: true).Subscribe(doc =>
{
Console.WriteLine(doc);
},
(e) => Console.WriteLine("Error "+e));
}
<metro:MetroWindow x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Routing="clr-namespace:ReactiveUI.Routing;assembly=ReactiveUI.Routing"
xmlns:metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:behaviours="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro" AllowsTransparency="False">
<i:Interaction.Behaviors>
<behaviours:BorderlessWindowBehavior ResizeWithGrip="True" EnableDWMDropShadow="True" />
</i:Interaction.Behaviors>
%%% -*- mode: erlang -*-
{sys, [
{lib_dirs, ["../..",
"../deps"]},
{rel, "bonds_service", "0.0.1",
[
kernel,
inets,
stdlib,
sasl,
month(<<"J",_/binary>>) ->
1;
month(<<"F",_/binary>>) ->
2;
month(<<"Apr",_>>) ->
4;
month(<<"Mar",_>>) ->
5;
month(<<"M",_/binary>>) ->
3;
server {
server_name couchdb.nisbus.com www.couchdb.nisbus.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:5984;
proxy_redirect default;
proxy_set_header Host $host:$proxy_port;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Origin' '*';
server {
server_name couchdb.nisbus.com www.couchdb.nisbus.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:5984;
proxy_redirect default;
proxy_set_header Host $host:$proxy_port;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Origin' '$http_origin';
server {
server_name couchdb.nisbus.com www.couchdb.nisbus.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:5984;
proxy_redirect default;
proxy_set_header Host $host:$proxy_port;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Origin' '*';
@nisbus
nisbus / gist:4733580
Last active December 12, 2015 06:59
Learning prolog...
%%% Why does this return X = [something,something,something,something|_G610].
%%% when I call it with
%%% ?- add_elems(5,X).
%%%
%%% What is the uninstantiated variable at the end and how do I get rid of it?
add_elems(0,_).
add_elems(N,Out) :-
NewN is N-1,