AWS Data Lifecycle Manager vs AWS Backup
by Sorean on Jan.04, 2020, under Amazon Web Services
My scenario was that I only wanted a backup of my EC2 every 6 months. It hosts this blog and a couple others, but I don’t really need anything beyond that.
Specifically when looking AWS Backup options for EC2(EBS volumes), the Data Lifecycle Manager allows for basic policies and limited options whereas you can specify custom parameters via a Cron task (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html) for AWS Backup.
After configuration this is the definition and schedule in my AWS Backup plan:
Custom cron expression: cron(0 5 6 1,7 ? *)At 05:00 AM UTC, on day 6 of the month, only in January and July
Pricing
DLM uses standard EBS pricing as it creates EBS snapshots (https://aws.amazon.com/ebs/pricing/)
AWS Backup pricing is the same but allows for more services (https://aws.amazon.com/backup/pricing/)
There is no cost difference in my scenario.
Windows Auto Login Registry
by Sorean on Dec.09, 2019, under Tech Stuff
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- DefaultUserName – Reg_SZ
- DefaultPassword – Reg_SZ
- DefaultDomain – Reg_SZ
- AuotAdminLogon = 1
Reboot to verify.
Find Password Policy
by Sorean on Sep.16, 2019, under Tech Stuff
net accounts (Local password policy)
net accounts /domain (Domain enforced password policy)
Injecting a user into a WordPress mySQL database directly.
by Sorean on Aug.29, 2019, under Wordpress
If you can read this then you can figure it out, be sure to match the wp_ prefix to match your database on all fields. Default installs will use wp_ but if you customize it then you’ll need to change it.
This is all assuming you have mySQL access to the database. This adds the user as a full administrator into the site (user_level = 10).
INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (‘2’, ‘loginname’, MD5(‘yourpasswordhere’), ‘Username’, ’[email protected]’, ‘http://www.website.com’, ‘2011-06-07 00:00:00’, ”, ‘0’, ‘Displayname’);
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, ‘2’, ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’);
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, ‘2’, ‘wp_user_level’, ’10’);
SceCli missing account fix
by Sorean on May.28, 2019, under Tech Stuff
dcgpofix /ignoreschema and press yes at both prompts.
Resolves missing account names.
Outlook 2016 not remembering Always use setting
by Sorean on Mar.20, 2019, under Tech Stuff
This is a registry fix that will disable the prompt system wide when there is a new application installed. Not exactly a fix for the problem itself, but a blanket cover.
REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer /v NoNewAppAlert /t REG_DWORD /d 1