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
<?php | |
/* Algorithms taken from Meeus Astronomical Algorithms, 2nd edition */ | |
/* Run the php script on the command line: | |
* php equinox.php <year> <what> | |
* with <what> being MAR, JUN, SEP, or DEC | |
* | |
* For the the Summer Solstice of 2020: | |
* php equinox.php 2020 JUN | |
*/ |
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
<?php | |
# Login info, set an app password at https://bsky.app/settings/app-passwords | |
$password = 'p4ssw0rd'; | |
$handle = 'your.handle'; | |
# URL and data for creating a session | |
$apiKeyUrl ='https://bsky.social/xrpc/com.atproto.server.createSession'; | |
$apiKeyPostData='{"identifier": "'.$handle.'", "password": "'.$password.'" }'; |