Author Archives: admin

Redis promote slave to master

https://redis.io/commands/slaveof

ansible run playbook with sudo password as extra var

 

Ansible disk space

ansible <host>, -m shell -a “df -H”

What to do when MySQL or MariaDB shits the bed

Had a server outage mid transaction?

Now you can’t start MYSQL ?

You probably have a transaction stuck and the service won’t come back up until you deal with it…

 

Here is how you deal with it.

mysqld --tc-heuristic-recover=ROLLBACK

service mysql start

set connection multi-source Mariadb replication

SET @@default_master_connection=”

mariadb db replication reset

How to Reset ( Re-Sync ) MySQL Master-Slave Replication

Updating listview – android

Calling

Is not enough when updating the content of cells. The only way to guarantee data is updated correctly, and tags are set correctly is to setAdapter(newAdapter instance)

Android adb location

~/Library/Android/sdk/platform-tools/adb install app-release.apk

to debug

 

http://stackoverflow.com/questions/38167117/how-to-debug-inapp-billing-in-android

Git remove commit history

http://stackoverflow.com/questions/13716658/how-to-delete-all-commit-history-in-github

Invoice Ninja

I just found http://www.invoiceninja.com which is an awesome open source, free invoice platform which integrates with a huge array of payment gateways, including Stripe.

Find out more about Invoice Ninja and its beautiful invoicing system below!

Invoice Ninja

Free Open-Source Online Invoicing

Documentation