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
Got it! Here's a more detailed example of setting up a SOCKS proxy server in Python and fetching content from OneDrive using the `@content.downloadUrl`. This example uses the `pysocks` library for the proxy and `flask` for a simple web server. | |
First, install the necessary libraries: | |
```sh | |
pip install pysocks flask requests | |
``` | |
Here's the complete code: |
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
--- | |
# cli: export | build-arg | |
# compose: environment | args | args override env | |
# docker: ENV | ARG | ENV=ARG | |
# | |
# environment: | |
# ENV_ENV_ENV, ENV_ENV_ARG, ENV_ENV_ETOA | |
# ARG_ENV_ENV, ARG_ENV_ARG, ARG_ENV_ETOA | |
# build args: | |
# ENV_ARG_ENV, ENV_ARG_ARG, ENV_ARG_ETOA |
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
[ | |
{ | |
"type": "Feature", | |
"properties": {}, | |
"geometry": { | |
"type": "LineString", | |
"coordinates": [ | |
[ | |
-76.5966796875, | |
36.94989178681327 |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Text::CSV; | |
my $csv = Text::CSV->new({binary => 1, always_quote => 1}) | |
or die "Can not use CSV: " . Text::CSV->error_diag(); |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Digest::MD5 qw(md5_base64); | |
use Text::CSV; | |
my $csv = Text::CSV->new({binary => 1, always_quote => 1}) |
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 os | |
import subprocess | |
import pprint | |
pp = pprint.PrettyPrinter(indent = 4) | |
class FileAttrList: | |
""" | |
Create a list of files and directories and their attributes and libraries | |
The file list should be an array of an arrays with: |
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
* IMPORTANT: 9 news items need reading for repository 'gentoo'. | |
* Use eselect news to read news items. | |
Calculating dependencies .... done! | |
>>> Verifying ebuild manifests | |
>>> Emerging (1 of 1) dev-util/schroot-1.6.5-r1 | |
* schroot_1.6.5.orig.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
#use Carp::Always; | |
use Data::Dumper; | |
use Try::Tiny; | |
use DateTime; |
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
info: HTTP GET /favicon.ico httpVersion=1.1, host=localhost:3000, connection=kee | |
p-alive, accept=*/*, user-agent=Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWeb | |
Kit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3, accept-encoding=gz | |
ip,deflate,sdch, accept-language=en-US,en;q=0.8, accept-charset=ISO-8859-1,utf-8 | |
;q=0.7,*;q=0.3, cookie=connect.sid=s%3AfFmx5xTQd%2F1%2Ba1Gcpp%2FB1YrW.UKvZYwo6Dd | |
y7q28fQi3RLXHRP2IxvAf%2FmhYvBGEL6l8, url=/favicon.ico, method=GET, originalUrl=/ | |
favicon.ico, | |
Error: Cannot find module 'undefined' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) |
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
Error: ELOOP, stat '/home/swilson/node/fr/public/css/slick.grid.css' | |
Error: ELOOP, stat '/home/swilson/node/fr/public/js/slick.grid.js' | |
Error: ELOOP, stat '/home/swilson/node/fr/public/js/slick.core.js' | |
info: HTTP GET /js/jquery.event.drag-2.0.min.js httpVersion=1.1, host=localhost: | |
3000, connection=keep-alive, referer=http://localhost:3000/index.html, accept=*/ | |
*, user-agent=Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, | |
like Gecko) Chrome/6.0.472.63 Safari/534.3, accept-encoding=gzip,deflate,sdch, a | |
ccept-language=en-US,en;q=0.8, accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.3, co | |
okie=connect.sid=s%3AnB1AHCD1YPZchKXoA9VapeLl.4kMAiplqr56trM6gMtpnju3VeqI%2B2nrZ | |
sDnqrPs5YXo, url=/js/jquery.event.drag-2.0.min.js, method=GET, originalUrl=/js/j |
NewerOlder