does this work without publishing a lot of information too?
I hereby claim:
- I am lene on github.
- I am lilacashes (https://keybase.io/lilacashes) on keybase.
- I have a public key whose fingerprint is 8B6C 0B76 06AD ABA0 90FC 1E81 B3CA C532 4421 818C
To claim this, I am signing this object:
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
CREATE TABLE my_hstore_table ( | |
id SERIAL NOT NULL, | |
attributes HSTORE NOT NULL | |
); | |
SELECT DISTINCT UNNEST(AKEYS(attributes)) AS key FROM my_hstore_table ORDER BY 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
from functools import wraps | |
def decorator(func): | |
@wraps(func) | |
def func_wrapper(*args, **kwargs): | |
return do_stuff_to_func(func(*args, **kwargs)) | |
return func_wrapper |
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
socat TCP-LISTEN:<localport> SOCKS4A:localhost:<host>:<remoteport>,socksport=9050 | |
# for example, to ssh into secret.shell.server.org via tor, do: | |
$ socat TCP-LISTEN:22222 SOCKS4A:localhost:secret.shell.server.org:22,socksport=9050 & | |
$ ssh localhost -p 22222 |
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
def find_files(base_path, condition): | |
return [ | |
os.path.join(root, file) | |
for root, _, files in os.walk(base_path) | |
for file in files | |
if os.path.exists(os.path.join(root, file)) # probably redundant, just making sure | |
if condition(os.path.join(root, file)) | |
] | |
# e.g. find -f -ctime -N |
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
from functools import wraps | |
def decorator_with_argument(argument=None): | |
def actual_decorator(func): | |
@wraps(func) | |
def func_wrapper(*args, **kwargs): | |
return do_stuff(func(*args, **kwargs), argument) |
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
from functools import wraps | |
def method_decorator(method): | |
@wraps(method) | |
def method_wrapper(self, *args, **kwargs): | |
return do_stuff(method(self, *args, **kwargs)) | |
return method_wrapper |
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
{ | |
"Res": { | |
"Connections": { | |
"Connection": [ | |
{ | |
"@duration": "PT2H3M33S", | |
"@transfers": "2", | |
"Dep": { | |
"@time": "2018-03-20T07:47:27", | |
"Addr": { |
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
<html> | |
<head> | |
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script> | |
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script> | |
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script> | |
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script> | |
<script src="http://taser-dev.rnd.transit.api.here.com:8008/static/js/jquery.min.js"></script> | |
<script src="tools.js"></script> | |
</head> | |
OlderNewer