This file contains hidden or 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
| # Add the Prosody repository, because we want the latest version | |
| echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list | |
| wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add - | |
| sudo apt-get update | |
| # Install tor and prosody, and lua-bitop, which is required for mod_onions | |
| sudo apt-get install prosody tor lua-bitop | |
| # Prepare the directories where Tor will store the hidden service's private key |
This file contains hidden or 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
| -(void)selectionDidChange:(NSNotification *)notification { | |
| WebView *view = [notification object]; | |
| [view copy:self]; | |
| } | |
| -(void)installPlugin { | |
| [[NSNotificationCenter defaultCenter] addObserver:self | |
| selector:@selector(selectionDidChange:) | |
| name:@"WebViewDidChangeSelectionNotification" | |
| object:nil]; |
This file contains hidden or 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
| func replicate<C : ExtensibleCollectionType>(s:Int, x:C) -> C { | |
| var ret : C = C() | |
| for element in x { | |
| for i in 1...s { | |
| ret.append(element) | |
| } | |
| } | |
| return ret |
This file contains hidden or 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 stem.control | |
| import time | |
| import socket | |
| import os | |
| telnet = socket.create_connection(("localhost", 5582)) | |
| assert(telnet != None) | |
| print(" * Connected to Prosody telnet interface.") |
OlderNewer