Author:
erics, March 17th, 2022
When I sent email from my desktop Mac cron jobs, it went out with the full hostname as the domain, i.e.: root@demo.wyzaerd.com, when all I wanted was a simple root@wyzaerd.com for ease of deliverability and domain maint. Edit the mail configuration file main.cf:
Add/edit the myorigin value of $mydomain:
Categories: How-To's, Technology Tags: Change, Domain, Email, Hostname, MacOS, mail, main.cf, Masquerade, mydomain, myorigin, PostFix
|
No comments
Author:
erics, June 17th, 2021
To update your git user name and email address for all repos:
|
git config --global user.name "Your Name" git config --global user.email "yourName@theDomain.com" |
To update your git user name and email address for a specific repo:
|
cd repo git config user.name "Your Name" git config user.email "yourName@theDomain.com" |
Categories: How-To's, Technology Tags: Change, Email, git, Global, howto, local, name, Repo, repository, tips, user.email, user.name
|
No comments
Author:
erics, July 8th, 2020
|
my $stamp = strftime "%Y%m%d%H%M%S", gmtime time; ## in-place update for the file our $^I = ".$stamp"; local @ARGV = ($fullpath); while ( <ARGV> ) { if (/$regex/) { next; } # this print is the critical part to write the line back to the file print; } $^I = undef; |
Categories: How-To's, Technology Tags: Change, Edit, Edit In Place, howto, in place, Inline, modify, perl, Place, Script, tips
|
No comments
Author:
erics, May 11th, 2020
|
add_filter( 'user_meta_admin_email_recipient', 'changeAdminEmails' ); function changeAdminEmails( $emails ) { return array( 'youremailtarget1@yourdomain.com', 'youremailtarget2@yourdomain.com' ); } |
Categories: How-To's, Technology Tags: admin, Admin Email, Change, Destination, Edit, Email, howto, meta, modify, Notification, Pro, Target, tips, User, user-meta, user-meta-pro, WordPress, WP, WP User Meta
|
No comments
Author:
erics, December 2nd, 2019
Not pushed + most recent commit:
Categories: How-To's, Technology Tags: amend, Change, git, howto, modify, tips
|
No comments
Author:
erics, November 24th, 2019
xattr -r -d com.apple.quarantine {dirname} ~or~ xattr -r -d com.apple.quarantine *
Categories: How-To's, Technology Tags: apple, attr, Attribute, Change, com.apple.quarantine, comacast, Delete, directory, howto, MacOS, macosx, Quarantine, Remove, Terminal, tips, Tree, xattr
|
No comments
Author:
erics, November 28th, 2017
Launch System Preferences Select Users & Groups Select Login Options Select Join next to Network Account Server Select Open Directory Utility Click the lock and enter your password to make changes In the menu bar of Directory Utility, select Change Root Password Create a strong, unique password
Categories: How-To's, Technology Tags: apple, Change, change password, Directory Utility, High Sierra, MacOS, Password, root, Sierra, System Preferences
|
No comments
Author:
erics, October 29th, 2014
[root@db1 ~]# service mysqld stop [root@db1 ~]# cd /var/lib/mysql [root@db1 mysql]# ls -l ib_logfile? -rw-rw—- 1 mysql mysql 5242880 Oct 29 23:00 ib_logfile0 -rw-rw—- 1 mysql mysql 5242880 Oct 29 22:38 ib_logfile1 [root@db1 mysql]# mv ib_logfile0 ib_logfile0.old [root@db1 mysql]# mv ib_logfile1 ib_logfile1.old [root@db1 ~]# vi /etc/my.cnf innodb_log_file_size=64M # comment out the old value, if one […]
Categories: How-To's, Technology Tags: Change, howto, InnoDB, innodb_log_file_size, my.cnf, mysql, Percona, tips, update
|
No comments
Author:
erics, November 19th, 2012
Many thanks to my lovely wife Naomi for this excellent tip! iBank doesn’t make it easy to change the password you use for accounts you are downloading transactions from. I couldn’t find it within the options, or anything relevant within their documentation or Help options. It appears that it needs to be done through your […]
Categories: How-To's, Technology Tags: Account, Change, howto, iBank, KeyChain, Keychain Access, Online, Password, tips
|
No comments
Author:
erics, September 4th, 2012
Add the following to your theme’s functions.php file:
|
function force_displayname($user_login, $user) { $result = trim(get_user_meta($user->ID, 'first_name', true) . " " . get_user_meta($user->ID, 'last_name', true)); $result = ucwords($result); if (!empty($result) && ($user->data->display_name!==$result)) { wp_update_user( array ('ID' => $user->ID, 'display_name' => $result)); } } add_action('wp_login','force_displayname',10,2); |
Categories: How-To's, Technology Tags: Change, Display name, displayname, Force, howto, tips, WordPress
|
No comments