Skip to content

Instantly share code, notes, and snippets.

View Sundrique's full-sized avatar

Aleksandr Sandrovskii Sundrique

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sundrique
Sundrique / jupyter-notebook.conf
Last active August 15, 2016 12:32
Jupyter notebook Upstart config
description "Jupyter notebook"
start on runlevel [2345]
stop on runlevel [016]
chdir /home/ubuntu/notebooks
env PATH=/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@Sundrique
Sundrique / jupyter-notebook.service
Created September 7, 2015 14:35
Jupyter notebook
[Unit]
Description=Jupyter notebook
[Service]
Type=simple
PIDFile=/var/run/jupyter-notebook.pid
ExecStart=/usr/local/bin/jupyter notebook --ip=0.0.0.0 --port=80 --no-browser
WorkingDirectory=/home/ubuntu/notebooks
[Install]
@Sundrique
Sundrique / api
Created March 28, 2015 05:40
Google Api
package main
import (
"html/template"
"log"
"net/http"
"code.google.com/p/google-api-go-client/youtube/v3"
"golang.org/x/oauth2"
@Sundrique
Sundrique / main
Created March 6, 2015 11:18
Concurrency limit test
package main
import (
"fmt"
"sync"
"time"
)
func spawn(fn func(), count int, limit int) {
limiter := make(chan bool, limit)
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript">
window.onbeforeunload = function(e) {
return 'Any string';
}
</script>
</head>
Making install in tombupnp
Making install in build
cc -DHAVE_CONFIG_H -I. -I../.. -I../../tombupnp/upnp/inc -I../../tombupnp/ixml/src/inc -I../../tombupnp/ixml/inc -I../../tombupnp/threadutil/inc -I../../tombupnp/upnp/src/inc -I../../tombupnp/upnp/inc -I../.. -g -O2 -c -o libtombupnp_a-attr.o `test -f '../ixml/src/attr.c' || echo './'`../ixml/src/attr.c
cc -DHAVE_CONFIG_H -I. -I../.. -I../../tombupnp/upnp/inc -I../../tombupnp/ixml/src/inc -I../../tombupnp/ixml/inc -I../../tombupnp/threadutil/inc -I../../tombupnp/upnp/src/inc -I../../tombupnp/upnp/inc -I../.. -g -O2 -c -o libtombupnp_a-document.o `test -f '../ixml/src/document.c' || echo './'`../ixml/src/document.c
cc -DHAVE_CONFIG_H -I. -I../.. -I../../tombupnp/upnp/inc -I../../tombupnp/ixml/src/inc -I../../tombupnp/ixml/inc -I../../tombupnp/threadutil/inc -I../../tombupnp/upnp/src/inc -I../../tombupnp/upnp/inc -I../.. -g -O2 -c -o libtombupnp_a-element.o `test -f '../ixml/src/element.c' || echo './'`../ixml/src/element.c
cc -DHAVE_CONFIG_H -I. -I../