perl cgi on command line

5 days ago

### notice this is ONE LINE! DOCUMENT_ROOT=/home/comptonpeslonline.com/public_html \ HTTP_HOST=comptonpeslonline.com \ QUERY_STRING=‘one=twooo&three=fourrrr’ \ /home/comptonpeslonline.com/cgi-bin/perlinfo.pl ;

perlinfo.pl script:

#! /usr/bin/perl
  1. script to simulate phpinfo() command
    use strict;
    use warnings;
    use Config;
    use CGI;
    use Data::Dumper;

my $q = CGI->new;
print $q->header(‘text/plain’);

print “Perl Version: $^V” ;
print “nnArchitecture: $Config{archname}” ;
print “nn” ;

foreach my $key (sort keys %ENV) { print “$key = $ENV{$key}n” ;
}

Mark Edwards

,

---

transferring data between google vm

36 days ago

both machines(?): (in same zone???)

gcloud auth login ;

then:

gcloud compute scp rl-2025-03-20260330-151033:~/*.gz ~

(notice machine name)

oddly, one of the tests seemed to remember that i did a “ssh-keygen” on the host machine and asked me for the passphrase!

Mark Edwards

,

---

create and mount a new VM disk

65 days ago

create and mount a new VM disk

written from here

edit VM:
create new disk or use existing one:

Once completed, please logged in and do the following

lsblk ; # look for: sdb 8:16 0 100G 0 disk

fdisk -l ## get the device name

mkfs.ext4 /dev/sda ; ## format the disk

mkdir /dev/sda3 ; #create a new mountpoint directory

mount /dev/sdb /dev/sda3 ; ## mount the new device to the new directory

lsblk ; ## notice the change: /dev/sdb 102626232 24 97366944 1% /dev/sda3

df ; ## notice new /dev/stb mounted on /dev/sda3

umount /dev/sdb ; ## optionally unmount
rmdir /dev/sda3 ; ## optionally remove mount point

Mark Edwards

,

---

associate stripe api key with specific IP number

75 days ago

(this may not be for specific stripe callback webhooks)
to associate a stripe API key to a specifice IP number:

STEP ONE: click the "Developers" button lower left and then "Overview":



STEP TWO: Click "manage API keys":



STEP THREE: click "Manage API restrictions":



STEP FOUR: enter IP ##

Mark Edwards

,

---

TP-Link ER605 Router on ATT Arris Modem

170 days ago

AT&T Arris DSL MODEM

Open up outside access:


Set up IP address passthru via IP Nbr:

Optional use MAC address:

Redirect port 443 to ER605 Device: (notice restriction to Torguard VPN)



TP-Link ER605



Set up LAN IP ##'s

Redirect ports to specific IP ##'s

Open up remote access:

Allow external pinging: https://www.reddit.com/r/TpLink/comments/100q9id/er605_can_i_enable_respond_to_ping_from_wan/
Mark Edwards

,

---

« Older

Manage