Skip to content

Instantly share code, notes, and snippets.

View shakthimaan's full-sized avatar

Shakthi Kannan shakthimaan

View GitHub Profile
@shakthimaan
shakthimaan / Messages
Created December 16, 2015 18:20
rcirc debug
process is irc.freenode.net.
sender is RCIRC.
response is ERROR.
target is nil.
text is ":holmes.freenode.net NOTICE * :*** Looking up your hostname..." (wrong-type-argument stringp nil).
process is irc.freenode.net.
sender is RCIRC.
response is ERROR.
target is nil.
You sent a message to the GNU bug tracking system, relating to bug#9130.
Your message was dated Wed, 16 Dec 2015 22:22:57 +0530 and was sent to
submit@debbugs.gnu.org. It had
Message-ID: <CABG-yt0r1o2PQ+bL21W-rFNC15W8Z-UF=wuqr+euQcWojG-oAg@mail.gmail.com>
and Subject: bug#9130: Document Lisp mode fontification for strings after :documentation
This bug is currently in a read-only state. This is because it has been
closed and has received no comments for more than 28 days, until now.
@shakthimaan
shakthimaan / output.log
Created November 26, 2015 08:34
Why the log output?
$ sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc && docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes:1.7.0 1>/dev/null 2>&1 || true
Container running 058d0c3921e678184445e09958bdf158ac88e36be006869d59923e7a8b4a75fc /gloomy_hoover
Container running 21d45434368da1093d7be8d29cd23174e40bedcebed4319a83309db25a65d512 /mesos-20151102-080626-2064646154-5050-29390-S0.b02ace85-832e-43c0-a1e1-a0fbd769405c
Container running 93a8daab370178eb3166b4c38613c9cfcb8f8c722eae8d9ee8f6235c1502e0a0 /mesos-20151102-080626-2064646154-5050-29390-S0.40298737-92c1-431e-8d94-a16e20bec258
Container running fcdb324b893633194e60d97c05935da191a701f9e951d3c7e73470963089fddc /registrator
Container running ffeff4bf3a6c2ed8a62b94d53beb0779b09919888733daa2054922fb94c4ea7a /mesos-20151102-080626-2064646154-5050-29390-S0.ac675ad3-b254-4bfa-a05d-bb83f26f2331
Container not running 9e721735b76c0c6a8139daf79c3615f1b1ec1d
@shakthimaan
shakthimaan / output.log
Created November 19, 2015 10:15
Mesosphere/Chronos docker container log
[2015-11-19 10:13:27,630] INFO Size of streams: 1 (org.apache.mesos.chronos.scheduler.jobs.JobScheduler:459)
[2015-11-19 10:13:27,630] INFO Checking schedules with time horizon:PT60S (org.apache.mesos.chronos.scheduler.jobs.JobScheduler:451)
[2015-11-19 10:13:27,630] INFO Calling next for stream: R/2015-11-19T10:14:15.000Z/PT2M, jobname: FooBar (org.apache.mesos.chronos.scheduler.jobs.JobScheduler:480)
[2015-11-19 10:13:27,631] INFO Task ready for scheduling: 2015-11-19T10:14:15.000Z (org.apache.mesos.chronos.scheduler.jobs.JobScheduler:513)
[2015-11-19 10:13:27,632] INFO Scheduling:FooBar (org.apache.mesos.chronos.scheduler.jobs.JobScheduler:635)
[2015-11-19 10:13:27,632] INFO Scheduling task 'ct:1447928055000:0:FooBar:' with delay: '47368' (org.apache.mesos.chronos.scheduler.jobs.TaskManager:190)
[2015-11-19 10:13:27,635] INFO State T_ct:1447928055000:0:FooBar: does not exist yet. Adding to state (org.apache.mesos.chronos.scheduler.state.MesosStatePersistenceStore:77)
[2015-11-19 10:13:27,654] INFO State up
@shakthimaan
shakthimaan / template.org
Created October 27, 2015 09:51
Emacs scrum template.org

Sprint

REPORTS

SCRUM BOARD

DEVELOPER SUMMARY

@shakthimaan
shakthimaan / mat-3.py
Created September 26, 2015 07:37
TypeError: can't multiply sequence by non-int of type 'float'
import matplotlib as mpl
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def update_line(num, x, y, z, l):
x.append(1.0)
y.append(2.0)
z.append(3.0)
@shakthimaan
shakthimaan / multi.py
Created September 25, 2015 18:30
Force render appended lines?
#!/usr/bin/env python
import vtk
import Queue
from multiprocessing import Process, Queue
from datetime import datetime
import paho.mqtt.client as mqtt
def on_connect(client, userdata, flags, rc):
print("MQTT connected with result code "+str(rc))
@shakthimaan
shakthimaan / line.py
Last active September 25, 2015 12:09
Add points and lines using Python VTK callback function with timer
#!/usr/bin/env python
# TODO:
# - Starting point!
# - Use Queue with multi-threading
import vtk
from datetime import datetime
import paho.mqtt.client as mqtt
@shakthimaan
shakthimaan / test.el
Last active September 17, 2015 11:25
Retaining i value in do loop
(setq input '(a b c d))
(setq target (number-sequence 0 (- (length a) 1)))
(defun loop-test-while(source target i)
(while (< i (length source))
(let* ((pos (random (length source)))
(element (nth pos source)))
(if (not (member element target))
(progn
(setcar (nthcdr i target) element)
@shakthimaan
shakthimaan / output.log
Created September 14, 2015 09:59
How to get apt stdout, stderr for apt module?
TASK: [debug msg="{{ apt_result }}"] ******************************************
ok: [localhost] => {
"msg": "{'invocation': {'module_name': u'apt', 'module_args': u'update_cache=yes'}, u'changed': False}"
}