This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SUBMODULE_PATHS=$(git submodule --quiet foreach git rev-parse --show-toplevel) | |
for f in $(find . -type f -name "*.rst") | |
do | |
full_path_file=$(readlink -f $f) | |
in_subfolder="false" | |
for p in $SUBMODULE_PATHS | |
do | |
full_path_folder=$(readlink -f $p) | |
if [[ $full_path_file == $full_path_folder* ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
""" | |
This script opens a window in which all recent events from the Tribler | |
organisation on GitHub are displayed. | |
Requires PyQt5 to be installed! | |
""" | |
from collections import OrderedDict | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import operator | |
import pprint | |
import sys | |
fddescriptor = collections.namedtuple('OpenFileDescriptor', ['executable_name', 'in_memory', 'name']) | |
counts = {} | |
for line in sys.stdin: | |
description = line.split() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ast | |
import distutils.sysconfig as sysconfig | |
import imp | |
import pkgutil | |
import os | |
import sys | |
built_in_modules = set(sys.builtin_module_names) | |
built_in_modules.update({ | |
module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from threading import Thread | |
from time import sleep | |
import traceback | |
from PyQt5.QtCore import Qt, QThread | |
from PyQt5.QtWidgets import QApplication, QTreeView, QLabel, QAbstractItemView | |
from twisted.internet import reactor | |
from twisted.internet.base import DelayedCall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base64 import b64encode | |
from urllib import quote | |
from twisted.internet import reactor | |
from twisted.internet.defer import inlineCallbacks, returnValue | |
from twisted.internet.task import deferLater | |
from roles import initialize_peer, make_request, sleep, stop_peers | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from ..anonymization.community import TunnelCommunity | |
from .endpoint import EndpointListener | |
class EndpointMonitor(EndpointListener): | |
def __init__(self, endpoint): | |
super(EndpointMonitor, self).__init__(endpoint) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base64 import b64decode, b64encode | |
from json import loads | |
from urllib import quote | |
from twisted.internet import reactor | |
from twisted.internet.defer import inlineCallbacks, returnValue | |
from twisted.internet.task import deferLater | |
from roles import initialize_peer, make_request, sleep, stop_peers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base64 import b64encode | |
import json | |
from urllib import quote | |
from twisted.internet import reactor | |
from twisted.internet.defer import inlineCallbacks, returnValue | |
from twisted.internet.task import deferLater | |
from roles import initialize_peer, make_request, sleep, stop_peers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base64 import b64encode | |
from json import loads | |
from urllib import quote | |
from twisted.internet import reactor | |
from twisted.internet.defer import inlineCallbacks, returnValue | |
from twisted.internet.task import deferLater | |
from roles import initialize_peer, make_request, sleep, stop_peers |
OlderNewer