After many years of using screen I recently started getting familiar with tmux. This is my current .tmux.conf and most of it is borrowed from IppSec’s YouTube video: Tmux Copy/Paste With the mouse support enabled in the above config, to
PhpMyAdmin and changed MySQL data directory
Very often you would like to change the default data location of MySQL for obvious reasons. If you do that and you don’t change the phpmyadmin settings accordingly, you will not be able to login via phpmyadmin. You will constantly
How to export/import gnome-terminal profiles
You only need dconf to export/import gnome-terminal profiles. To export all gnome-terminal profiles run: $ dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf To import the exported profiles above, run: $ dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf If you want to export and then
Gradle fails after upgrading Android Studio to 3.2.1 with “Could not find aapt2-proto.jar”
Almost every other time I go through an Android Studio upgrade, my projects no longer compile and I spend an hour or so trying to figure out what was wrong or what I need to change. Due to this reason
PHP.ini settings to increase file size and number of uploads
Update: Please checkout the later post with a better approach before reading further. In addition to changing your code, you also need to change the setting on the server to accommodate uploading larger file sizes. The settings that need to
How to connect your Android phone to Ubuntu to do development, testing, installations or tethering – Updated
All the way back in 2010 I wrote a post how to connect your Android device to your Ubuntu computer in order to develop on it. There have been a few changes since then, so here is the updated version
Gradle – Automatically rename the .apk file and copy the ProGuard mapping.txt file
ProGuard writes the mapping file under the build directory of the project. Under normal circumstances all files and directories under the build dirs are excluded from version control. That is a bit of an issue if you want to be able to save that file with every release build. I always forget to this manually. So, let’s do that at build time with Gradle and while we are at it, we might as well rename our apk file, so we don’t have to do that manually either.
The Android SDK Manager fails to fetch the platform and tools list from Google
If you get the following error message when launching the Android SDK Manager: Failed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: File not found most likely the owner/permissions are not set correctly for the ~/.android directory. This error message is very confusing
Find out what DNS requests are made in real time via command line
Since all DNS requests are over port 53, we can use the raw tcpdump utility and just look at the packets on that port: tcpdump -vvv -s 0 -l -n port 53 Someone took the extra step to write a
Android Studio- What files and directories to exclude when importing into Subversion (or Git)
Update Oct. 17, 2019: ——————— This is the official .gitignore file maintained by JetBrains: https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore ——————— List of directories and files to be excluded when importing into a version control (relative to the root of the project): .gradle (directory) build