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| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd"> | |
| <xkbConfigRegistry version="1.1"> | |
| <modelList> | |
| <model> | |
| <configItem> | |
| <name>pc86</name> | |
| <description>Generic 86-key PC</description> | |
| <vendor>Generic</vendor> | |
| </configItem> |
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 8000I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Simple SSL cert days-till-expiry check script | |
| # by Askin Ozgur https://blog.yollu.com [email protected] | |
| # Derived from Glen Scott, www.glenscott.net | |
| PORT=443 | |
| if [ ${#} == 2 ]; then | |
| DOMAIN=$1 | |
| PORT=$2 | |
| elif [ ${#} == 1 ]; then |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <asm/io.h> | |
| #define PORTADDRESS 0x378 /* Enter Your Port Address Here */ | |
| #define DATA PORTADDRESS+0 | |
| #define STATUS PORTADDRESS+1 |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #define MY_PORT 3333 | |
| int main(int argc, char *argv[]) | |
| { |