This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Cloudflare DDNS | |
| After=network.target | |
| [Service] | |
| #Environment=CLOUDFLARE_API_KEY= | |
| Environment=ZONE_ID=1234 | |
| Environment=RECORD_ID=5678 | |
| Environment=RECORD_NAME=domain.example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Mojo::Base -strict; | |
| use Test2::V0; | |
| use Test::Mojo; | |
| # Note that this does not work for small HTTP messages, since they might get | |
| # parsed way before the "progress" event gets fired, and the "max_message_size" | |
| # check is done. | |
| use Mojolicious::Lite -signatures; | |
| hook after_build_tx => sub ($tx, $app) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub traverse_packages { | |
| my ($name, $depth) = @_; | |
| my $pkg = do { no strict qw(refs); \%{"$name\::"}; }; | |
| for my $key (sort keys %$pkg) { | |
| printf "%s%s::%s\n", ' ' x ($depth * 2), $name, $key; | |
| traverse_packages("$name\::$1", $depth + 1) if $key =~ m!^(\w+)::$!; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.amazon.co.jp/gp/product/B08LD13HVC/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1 | |
| Friendly name: ESP_3C69E4_IR | |
| Template: {"NAME":"ESP8285 Infrared Transceiver","GPIO":[0,0,0,0,1056,0,0,0,0,0,1088,0,0,0],"FLAG":0,"BASE":20} | |
| backlog ipaddress1 192.168.50.52; ipaddress2 192.168.50.1; ipaddress3 255.255.255.0; ipaddress4 1.1.1.1 | |
| # LG volume up/down | |
| {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x20DF40BF","DataLSB":"0x4FB02FD","Repeat":0}} | |
| {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x20DFC03F","DataLSB":"0x4FB03FC","Repeat":0}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function gPhotosPurge(nSelectedLast = -1) { | |
| gPhotosPurgeSelectPhotos(); | |
| const nSelected = await gPhotosPurgeWaitFor(gPhotosPurgeGetNumberOfSelected, 'nSelected>0', 2000); | |
| return nSelected > 200 || nSelected == nSelectedLast ? gPhotosPurgeExecute(nSelected) : nSelected ? gPhotosPurge(nSelected) : console.info('[gPhotosPurge] nSelected=0'); | |
| } | |
| async function gPhotosPurgeExecute(nSelected) { | |
| console.info('[gPhotosPurge] Deleting ' + nSelected + ' photos...'); | |
| deleteBtn = await gPhotosPurgeWaitFor(() => document.querySelector('button[title="Delete"]'), 'deleteBtn'); | |
| deleteBtn.focus(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(d){let e=n=>d.createElement(n);let i=(p,c,r)=>p.insertBefore(c,r||null);let b=d.body;let v=i(b,e('div'),b.firstChild);v.id='gte';v.style.display='none';let o=e('script');o.src='//translate.google.com/translate_a/element.js?cb=gti';o.type='text/javascript';i(b,o);let p=e('script');p.text='function gti(){new google.translate.TranslateElement({pageLanguage:""},"gte")}';i(b,p)})(document); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| h2, | |
| h3 { | |
| text-transform: uppercase; | |
| } | |
| .site { | |
| letter-spacing: 0.1em; | |
| line-height: 1.6rem; | |
| text-transform: none; | |
| max-width: 100% !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #content { | |
| border: 0; | |
| padding: 40px 50px 30px 350px; | |
| margin: 0; | |
| } | |
| #mw-page-base { | |
| display: none; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| my $dir = ($ARGV[0] and -d $ARGV[0]) ? shift @ARGV : '.'; | |
| my @ymd = (shift @ARGV); | |
| my @today = (localtime)[5, 4]; # (year, mon) | |
| $today[0] += 1900 if $today[0] <= 1900; | |
| $today[1]++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!perl | |
| use Mojolicious::Lite; | |
| get '/' => sub { | |
| my $c = shift; | |
| my $ua = Mojo::UserAgent->new; | |
| # Try keeping this object alive with http://localhost:3000?keep_alive=1 | |
| $c->stash(ua => $ua) if $c->param('keep_alive'); |
NewerOlder