JPG の場合
XXXXXXX_12345.JPG を XXXXXX.JPGに変更するコマンド
find . -maxdepth 1 -name ‘*.JPG’ | while read filename; do newfilename=`echo $filename | sed ‘s/_[0-9]*\.JPG/.JPG/’`; echo mv -n $filename $newfilename; done | bash
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
環境より動作しないかも。
# My environment
RewriteEngine On
RewriteCond %{HTTP_HOST} !\d{6}$ [NC]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
javascript
for(index=ta.value.indexOf(val); index >= 0; index=ta.value.indexOf(val, index+1)) {
console.log(index);
}
https://setapp.com/how-to/google-chrome-dark-mode
エクステンションを使わずに無理やりバージョン
https://www.php.net/manual/en/function.html-entity-decode.php
cookie を同意されない場合の アナリティクスの設定方法
https://developers.google.com/analytics/devguides/collection/gtagjs/user-opt-out?hl=ja
https://www.mail-tester.com/
ルーターのmac アドレスを変更する。
ルーターにより、mac アドレスがどこにあるかわからないが、asus の場合は WAN タブ内にあった。
Private IP address ってのを割当てる。
https://superuser.com/questions/907827/private-mac-address
mac アドレスを手動で変更する。 b8:xx:xx:xx:xx:xx の b2:xx:xx:xx:xx:xx などに変更する。
下のApply ボタン、上のReboot をやり、IPアドレスが変更するのを確認する。
その後、、元のmac アドレスに変更し、Apply、Reboot を再度行う。
string = document.querySelector(‘.something’).outerHTML;
string になる。
https://chrome.google.com/webstore/detail/shortkeys-custom-keyboard/logpjaacgmcbpdkdchjiaagddngobkck
カスタマイズでショートカットが設定できる。
設定後にブラウザを一度終了終了する必要がある。