I hereby claim:
- I am ryanb58 on github.
- I am ryanb58 (https://keybase.io/ryanb58) on keybase.
- I have a public key ASBWzKdm8QwSV0rBOy-yc6Ml3apXU36BUHJgp3019cjnAwo
To claim this, I am signing this object:
| $ curl -XPUT 'http://localhost:9200/twitter/' -d '{ | |
| index : { | |
| number_of_shards : 3 | |
| number_of_replicas : 2 | |
| } | |
| }' |
| # Setup folder to be browseable via webdav or a webbrowser. | |
| pip install cherrypy | |
| pip install wsgidav | |
| wsgidav --host=0.0.0.0 --port=8000 --root=/home/ryanb58/Documents |
I hereby claim:
To claim this, I am signing this object:
| # WOrks in python 2.7 not sure if it works in python 3. | |
| # Just straight up connect by any means possible. | |
| from ftplib import FTP_TLS | |
| def connect(): | |
| ftp = FTP_TLS() | |
| ftp.debugging = 2 | |
| ftp.connect('localhost', 2121) | |
| ftp.login('developer', 'password') |
| import othermodule, types | |
| function_names = [othermodule.__dict__.get(a).__name__ for a in dir(othermodule) if isinstance(othermodule.__dict__.get(a), types.FunctionType)] | |
| for item in items: | |
| print "from ... import " + item |
| import signal | |
| import logging | |
| # class based on: http://stackoverflow.com/a/21919644/487556 | |
| class DelayedInterrupt(object): | |
| def __init__(self, signals): | |
| if not isinstance(signals, list) and not isinstance(signals, tuple): | |
| signals = [signals] | |
| self.sigs = signals |
| # Base Vehicle: | |
| class Vehicle: | |
| # Constructor | |
| def __init__(self, owner): | |
| self.owner = owner | |
| def get_owner(self): | |
| return self.owner | |
| # Methods in which every subclass will be required to implement. |
| if /i "%processor_architecture%"=="x86" ( | |
| IF NOT DEFINED PROCESSOR_ARCHITEW6432 ( | |
| echo Run 32 bit command | |
| ) ELSE ( | |
| echo Run 64 bit command 1 | |
| ) | |
| ) else ( | |
| echo Run 64 bit command 2 | |
| ) |
| params_dict = { | |
| 'name':'New Rule', | |
| 'type': 'user', | |
| }; | |
| // URL Builder from DICT. | |
| params = ""; | |
| index = 0; | |
| for (var key in params_dict) { | |
| if (index == 0) { |
| #include <iostream> | |
| #include <istream> | |
| #include <vector> | |
| #include <string> | |
| using namespace std; | |
| int main() { | |
| string input; |