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
/* Tiny web server in Golang for sharing a folder | |
Copyright (c) 2010-2014 Alexis ROBERT <[email protected]> | |
Contains some code from Golang's http.ServeFile method, and | |
uses lighttpd's directory listing HTML template. */ | |
package main | |
import "net/http" | |
import "net/url" |
#!/bin/bash | |
# Restrictive Iptables Based Firewall for Webserver script | |
# Copyright (C) 2012 Cédric Walter - www.waltercedric.com | |
# Credits to all various authors | |
# | |
# 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 | |
# (at your option) any later version. |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use v5.10.1; | |
use Image::ExifTool qw/:Public/; | |
use Getopt::Long; | |
use File::Which qw/which/; |
{ | |
"nodes":[ | |
{"name":"Myriel","group":1}, | |
{"name":"Napoleon","group":1}, | |
{"name":"Mlle.Baptistine","group":1}, | |
{"name":"Mme.Magloire","group":1}, | |
{"name":"CountessdeLo","group":1}, | |
{"name":"Geborand","group":1}, | |
{"name":"Champtercier","group":1}, | |
{"name":"Cravatte","group":1}, |
#!/bin/sh | |
IPT="/sbin/iptables" #Iptable's path | |
#Network interfaces : | |
interface=eth0 # Internet | |
start() { | |
### DELETE ALL ENTRIES ### | |
$IPT -F |
Decoding the data in /proc/net/tcp: | |
Linux 5.x /proc/net/tcp | |
Linux 6.x /proc/PID/net/tcp | |
Given a socket: | |
$ ls -l /proc/24784/fd/11 | |
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701] |
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
#!/usr/bin/env python | |
# | |
# usage: | |
# conv2vmx-ovf.py some-vm.ovf | |
# | |
# ref: http://www.cnblogs.com/eshizhan/p/3332020.html | |
# | |
import sys | |
fn = sys.argv[1] |
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%"> | |
<defs> | |
<pattern id="grid" width="11" height="11" patternUnits="userSpaceOnUse"> | |
<rect fill="white" x="0" y="0" width="9" height="9"/> | |
<rect fill="aliceblue" x="10" y="0" width="1" height="10"/> | |
<rect fill="aliceblue" x="0" y="10" width="11" height="1"/> | |
</pattern> | |
</defs> | |
<rect fill="url(#grid)" x="0" y="0" width="100%" height="100%"/> | |
</svg> |