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| #!/bin/bash --noprofile | |
| # DO ALMOST ANYTHING PUBLIC LICENSE | |
| # Everyone is permitted to copy and distribute verbatim or modified | |
| # copies of this code for any purpose as long as any "Credit" | |
| # lines are not removed. | |
| #Credit: /u/linuxversion | |
| # add pipes : https://old.reddit.com/r/commandline/comments/4ct8px/i_wrote_a_pager_purely_in_bash_using_just_bash/d1lyq9q/ | |
| #<your Credit line here, if you want> |
| #!/usr/bin/awk -f | |
| # | |
| # call_graph.awk | |
| # | |
| # Usage: | |
| # ./call_graph.awk my_program.lua | dot -Tpng > call_graph.png | |
| # | |
| # This is a script that generates a visual call graph | |
| # for a Lua file. This script only shows calls made | |
| # to functions defined within the input Lua file; that is, |
| #!/usr/bin/env python3 | |
| # | |
| # https://raw.githubusercontent.com/jarun/googler/7e725573f801c587df7688a07f9fc7a9408d76eb/googler | |
| # | |
| # Copyright © 2008 Henri Hakkinen | |
| # Copyright © 2015-2019 Arun Prakash Jana <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |
| /* HTML source viewer */ | |
| body { margin: 3em;} | |
| ::before { content: open-quote '>'; } | |
| [id]::before { content: open-quote ' id="'attr(id) '">'; } | |
| [class]::before { content: open-quote ' class="'attr(class)'">'; } | |
| [id][class]::before { content: open-quote ' id="'attr(id)'" class="'attr(class)'">'; } | |
| ::after { content: close-quote ; } | |
| html::before, html::after, | |
| body::before, body::after { |
| #!/usr/bin/env bash | |
| # | |
| ### | |
| # https://gist.github.com/dubiouscript/e90a515b6ee2b5fe8988b945b0cdb418#this | |
| # | |
| # https://raw.githubusercontent.com/TooTallNate/bashttpd/master/bashttpd#origin | |
| # | |
| # https://raw.githubusercontent.com/TooTallNate/bashttpd/79582483264acad15b49e4b911f17f7bda753f43/bashttpd | |
| ### | |
| # |
| /*\ | |
| title: $:/plugins/jayfresh/tiddler-server/tiddler-server.js | |
| type: application/javascript | |
| module-type: command | |
| A server command to serve tiddlers as HTML as well as the main server API | |
| \*/ | |
| (function(){ |
| ok.sh -j list_releases Jermolene TiddlyWiki5 | |
| [ | |
| ] | |
| ... -x $(which ok.sh) .. | |
| # https://github.com/go-gitea/gitea/issues/2738#API support for listing tags and fetching tag details | |
| # https://github.com/go-gitea/gitea/issues/2738#issuecomment-497767418 |
| #!/usr/bin/env bash | |
| ############################################################################## | |
| #### MIME interface | |
| ############################################################################## | |
| # Parse message in MIME format and create a temporary cache directory | |
| mime_parse() | |
| { | |
| MIME_CACHE=${MIME_CACHE:-`mktemp -d ${BIN}.XXXXXXXXXX`} |
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| require 'webrick' | |
| require 'fileutils' | |
| if ARGV.length != 0 | |
| root = ARGV.first.gsub('\\', '/') | |
| else | |
| root = '.' | |
| end | |
| BACKUP_DIR = 'bak' |