Cor — A minimal OO proposal for the Perl core
This is version 0.10 of this document.
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use v5.20; | |
| use feature qw(signatures); | |
| no warnings qw(experimental::signatures); | |
| require Dumbbench; # use() causes breakage w/ perlcc. |
1. have a windows 10 pro installation,
perl -e "use Win32; print join ' ', Win32::GetConsoleOutputCP(), Win32::GetACP(), Win32::GetOEMCP()"2. install strawberry perl
3. in c:\strawberry\smoke run configsmoke
| #!/bin/sh | |
| # Enable and disable HDMI output on the Raspberry Pi | |
| is_off () | |
| { | |
| tvservice -s | grep "TV is off" >/dev/null | |
| } | |
| case $1 in |
| #!/bin/sh | |
| # | |
| # Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c | |
| RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])" | |
| posixregex -r "^(${RE_IPV4})$" \ | |
| 127.0.0.1 \ | |
| 10.0.0.1 \ | |
| 192.168.1.1 \ |
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/perl | |
| use v5.14; | |
| use strict; | |
| use warnings; | |
| use PPI; | |
| use Scalar::Util qw(blessed); | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
As configured in my dotfiles.
start new:
tmux
start new with session name: