Skip to content

Instantly share code, notes, and snippets.

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2018-12-04T04:09:11,044][INFO ][o.e.n.Node ] [] initializing ...
[2018-12-04T04:09:11,092][INFO ][o.e.e.NodeEnvironment ] [RL38epu] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/mapper/dhcp--100--102--47--213--vg-root)]], net usable_space [348.1gb], net total_space [402gb], types [ext4]
[2018-12-04T04:09:11,092][INFO ][o.e.e.NodeEnvironment ] [RL38epu] heap size [494.9mb], compressed ordinary object pointers [true]
[2018-12-04T04:09:11,093][INFO ][o.e.n.Node ] [RL38epu] node name derived from node ID [RL38epuGSDOganz8srUNGQ]; set [node.name] to override
[2018-12-04T04:09:11,094][INFO ][o.e.n.Node ] [RL38epu] version[6.4.0], pid[1], build[default/tar/595516e/2018-08-17T23:18:47.308994Z], OS[Linux/4.18.10-1rodete2-amd64/amd64], JVM["Oracle Corporation"/OpenJDK 64-Bit Server VM/10.0.2/10.0.2+13]
[2018-12-04T
def r_dfs(current: Node, end: Node, all_paths: Set, visited=set(), current_path=[]):
visited.add(current)
current_path.append(current)
if current == end:
all_paths.add(tuple(current_path)) # Shallow copy
else:
for neighbour in current.neighbours() - visited:
r_dfs(neighbour, end, all_paths, visited, current_path)
def main():
path_to_source = "input.txt"
output_directory = "output/"
with open(path_to_source, 'r') as source:
lines = source.readlines()
for i, line in enumerate(lines):
with open("{}file_{}.txt".format(output_directory, i), 'w+') as output:
output.write(line)
# coding: utf-8
import swizzle
from objc_util import *
import ctypes
import json, urllib
import uuid
import sys
import webbrowser
import urllib
@AndrewC-B
AndrewC-B / Code Snippets
Last active November 13, 2018 18:37
Useful code snippets
Placeholder file to provide title for Gist.