Skip to content

Instantly share code, notes, and snippets.

View dpnova's full-sized avatar
🥸
hacking the gibson

David Novakovic dpnova

🥸
hacking the gibson
View GitHub Profile
hduser@dpn-linux-desktop:/usr/local/hadoop/spark-1.1.0-bin-hadoop2.4$ ./sbin/start-thriftserver.sh
14/10/22 14:27:27 INFO Configuration.deprecation: mapred.input.dir.recursive is deprecated. Instead, use mapreduce.input.fileinputformat.input.dir.recursive
14/10/22 14:27:27 INFO Configuration.deprecation: mapred.max.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.maxsize
14/10/22 14:27:27 INFO Configuration.deprecation: mapred.min.split.size is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize
14/10/22 14:27:27 INFO Configuration.deprecation: mapred.min.split.size.per.rack is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.rack
14/10/22 14:27:27 INFO Configuration.deprecation: mapred.min.split.size.per.node is deprecated. Instead, use mapreduce.input.fileinputformat.split.minsize.per.node
14/10/22 14:27:27 INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
14/10/22 14:27:27 INFO Conf
hduser@dpn-linux-desktop:/usr/local/hadoop$ start-dfs.sh
14/10/24 09:43:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: Error: JAVA_HOME is not set and could not be found.
localhost: Error: JAVA_HOME is not set and could not be found.
Starting secondary namenodes [0.0.0.0]
0.0.0.0: Error: JAVA_HOME is not set and could not be found.
14/10/24 09:43:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
hduser@dpn-linux-desktop:/usr/local/hadoop$
<script type="text/javascript">
$(function(){
var timeout = 10000;
analytics.ready(function() {
analytics._timeout = timeout;
})
analytics.trackForm($('.email-submit'), "Email Signup", {
"landing_page": "first"
});

Keybase proof

I hereby claim:

  • I am dpnova on github.
  • I am dpn (https://keybase.io/dpn) on keybase.
  • I have a public key whose fingerprint is 0CE0 E1B2 87BD B761 9B1D 2D76 7A86 EEEC 0EF0 A90E

To claim this, I am signing this object:

Source/WebKit/gtk/webkit/webkitversion.h:37: Warning: WebKit: symbol='WEBKITGTK_API_VERSION': Unknown namespace for symbol 'WEBKITGTK_API_
VERSION'
./libtool: line 3077: warning: setlocale: LC_CTYPE: cannot change locale (en_AU.UTF-8)
@dpnova
dpnova / hack.py
Last active August 29, 2015 14:13
"""
This is a hack to stop verification which seems to block.
This shouldn't ever make it to prod!!!
"""
from logging import getLogger
from OpenSSL.SSL import Connection
Connection.set_tlsext_host_name = lambda s, n: None
getLogger(__name__).warning(
"Currently we are vulnerable to MITM attacks: "
@dpnova
dpnova / udevprotocol.py
Created February 19, 2015 03:07
udev and twisted together. repasting from: http://pastebin.com/TnrsS15s by @ralphm
import pyudev
from twisted.internet import abstract
class UDevMonitor(abstract.FileDescriptor):
"""
Protocol wrapper for pyudev.Monitor.
@see: U{http://packages.python.org/pyudev/api/monitor.html}.
"""
@patch(ASYNC_MODULE + 'identify_lines')
def test_lines_get_read(self, il):
_identify_url_file(tests.VALID_FILE)
il.assert_called_with(foo)
>>> class Bar:
... def __init__(self):
... print "bar init"
...
>>> @attr.s
... class Foo(Bar, object):
... something = attr.ib()
...
>>> Foo("something")
Foo(something='something')
"""
Dump current deferred state.
> Anyway, given a tree of deferreds, this will produce a whatever.dot
> file, which can be fed to graphviz' "dot -Tpdf whatever.dot >
> whatever.pdf", >and the pdf has a rather nice-looking graph of the
> deferreds.
http://twistedmatrix.com/pipermail/twisted-python/2012-July/025867.html