Can I get a list of files marked –assume-unchanged?

What have I marked as –assume-unchanged? Is there any way to find out what I’ve tucked away using that option? I’ve dug through the .git/ directory and don’t see anything that looks like what I’d

Source: Can I get a list of files marked –assume-unchanged?

This is a great way to hide changes to files (e.g., db config files):

git config --global alias.hidden '!git ls-files -v | grep "^[a-z]"'

Here’s a complete selection of nice additions:

git config --global alias.hide '!git update-index --assume-unchanged'
git config --global alias.unhide '!git update-index --no-assume-unchanged'
git config --global alias.unhide-all '!git update-index --really-refresh'
git config --global alias.hidden '!git ls-files -v | grep "^[a-z]"'
git config --global alias.ignored '!git !git status -s --ignored | grep \"^!!\"'' 

Nifty!

crontab.guru – the cron schedule expression editor

An easy to use editor for crontab schedules.

Source: crontab.guru – the cron schedule expression editor

1 8 4 * *
“At 08:01 on the 4th of every month.”
next at 2016-09-04 08:01
random

[minute] [hour] [date] [month] [weekday]

* any value
, value list separator
range of values
/ step values
@yearly (non-standard)
@annually (non-standard)
@monthly (non-standard)
@weekly (non-standard)
@daily (non-standard)
@hourly (non-standard)

More info here:

https://en.wikipedia.org/wiki/Cron

XAMPP or MAMP – Can’t connect to mysql

You’ll need to update your DB config file…

What worked for me was adding this:

'mysql' => [
 'driver' => 'mysql',
 'host' => env('DB_HOST', 'localhost'),
 'database' => env('DB_DATABASE', 'db_name'),
 'username' => env('DB_USERNAME', 'db_user'),
 'password' => env('DB_PASSWORD', 'db_password'),
 'unix_socket' => '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock',
 'charset' => 'utf8',
 'collation' => 'utf8_unicode_ci',
 'prefix' => '',
 'strict' => false,
 'options' => [
 #PDO::MYSQL_ATTR_MAX_BUFFER_SIZE => 16777216
 PDO::MYSQL_ATTR_LOCAL_INFILE => true
 ]
],

Here’s one other solution:

I was getting some similar error and ended up here. I am using OSX 10.9.5. This solved my problems (hope it helps someone).

1) sudo mkdir /var/mysql
2) sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock

More informations: http://glidingphenomena.blogspot.com.br/2010/03/fixing-warning-mysqlconnect-cant.html

Thanks!

NOTE: Replace /var/mysql/mysql.sock with the path to your actual mysql.sock file (w XAMPP, it would be /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock)