Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| package scraper | |
| import ( | |
| "bytes" | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/http/cookiejar" |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "github.com/alexflint/go-arg" | |
| "github.com/cheggaaa/pb" | |
| "github.com/nu7hatch/gouuid" | |
| "github.com/xiconet/utils" |
| // Command dbox is a client for the dropbox "rest" API | |
| package main | |
| import( | |
| "os" | |
| "os/exec" | |
| "time" | |
| "net/http" | |
| "net/url" | |
| "io" |
| #!C:/Python36/python | |
| # | |
| # from http://pycurl.io/docs/latest/quickstart.html#retrieving-a-network-resource | |
| from io import BytesIO | |
| from urllib.parse import urlencode | |
| import posixpath | |
| import re | |
| import json | |
| import pycurl |
| Set AppObj = CreateObject("Shell.Application") | |
| If WScript.Arguments.Length=1 Then | |
| AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash"" -d """ & WScript.Arguments(0) & """" | |
| Else | |
| AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash""" | |
| End If |
| #!/usr/bin/env perl | |
| # | |
| # my own little google drive client written in perl | |
| # | |
| use strict; | |
| use warnings; | |
| use LWP::UserAgent; | |
| use HTTP::Request; | |
| use HTTP::Headers; |
| #!/usr/bin/env python | |
| """Collect utilities here | |
| __VERSION: 0.1 | |
| __AUTHOR: xiconet | |
| """ | |
| MAXLEN = 60 | |
| START_AT = 2 |
| # bourne shell functions below take 1 argument, the file_to_hash. | |
| # prints hex digest on stdout | |
| md5() { | |
| perl -MDigest::MD5=md5_hex -le'print md5_hex(<> or die)' "$1" | |
| # ruby -rdigest/md5 -e"puts Digest::MD5.file'/dev/null'" | |
| # python -sBc "import hashlib;print hashlib.md5(open('$1','rb').read()).hexdigest()" | |
| # md5 "$1"|cut -d' ' -f4 # mac | |
| # md5sum "$1"|cut -d' ' -f1 # linux | |
| # openssl md5 "$1" | grep -o '[[:xdigit:]][[:xdigit:]]*$' | cat |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| package main | |
| import ( | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" | |
| "path/filepath" | |
| "runtime" |