dimitar.me
How to connect your Android phone to Ubuntu to do development, testing, installations or tethering | dimitar.me
http://dimitar.me/how-to-connect-your-android-phone-to-ubuntu-to-do-developmenttestinginstallations-or-tethering
How to connect your Android phone to Ubuntu to do development, testing, installations or tethering. If you do any Android development in Ubuntu it is much better to test your applications on a real device rather than just relying on the emulator. If you just connect the phone to the computer through USB and run adb devices you will find out that your phone is not recognized:. Adb devices List of devices attached? For example, if you had a Nexus One connected you would get:. SUBSYSTEMS= ”usb”,...Add to th...
dimitar.me
Java | dimitar.me
http://dimitar.me/category/programming/java
Gradle – Automatically rename the .apk file and copy the ProGuard mapping.txt file. Here is the relevant code to put in our build.gradle file:. Monday, July 4th, 2016. 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. This error message is very confusing and it took me while to find the issue.
dimitar.me
Force all HTTP traffic to HTTPS | dimitar.me
http://dimitar.me/force-all-http-traffic-to-https
Force all HTTP traffic to HTTPS. If you have SSL installed and configured on your site, there is a little need to continue serving http traffic over port 80. Performance is no longer a big issue and now Google would reward with better ranking sites that serve all content over https. It is very easy to achieve that on an Apache server. 1 Make sure that you have enabled mod rewrite. 2 Add the following to your .conf file for the site:. In order for this to take affect, don’t forget to:.
dimitar.me
Linux | dimitar.me
http://dimitar.me/tag/linux
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 and it took me while to find the issue. Instead, you should change the owner of the /.android directory to your user id.
dimitar.me
Ubuntu | dimitar.me
http://dimitar.me/category/linux/ubuntu
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 and it took me while to find the issue. Instead, you should change the owner of the /.android directory to your user id.
dimitar.me
Block a range of IP addresses from reaching your server | dimitar.me
http://dimitar.me/block-a-range-of-ip-addresses-from-reaching-your-server
Block a range of IP addresses from reaching your server. When your Linux server gets bombarded with malicious requests the quickest and easiest thing is to block the offending IP address (or the entire range) using iptables:. To block just one IP address:. Sudo iptables -A INPUT -s 103.10.86.53 -j DROP. To block 103.10.86.* addresses:. Sudo iptables -A INPUT -s 103.10.86.0/24 -j DROP. To block 103.10.*.* addresses:. Sudo iptables -A INPUT -s 103.10.0.0/16 -j DROP. To block 103.*.*.* addresses:.
dimitar.me
IT Security | dimitar.me
http://dimitar.me/category/itsecurity
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 php script to massage that data, so that it is easier to read as well as focusing on those queries that either do not resolve or take a long time to resolve:. Tuesday, May 10th, 2016. Set up a MySQL user dedicated to backups. Log on to MySQL as root:.
dimitar.me
Linux | dimitar.me
http://dimitar.me/category/linux
Gradle – Automatically rename the .apk file and copy the ProGuard mapping.txt file. Here is the relevant code to put in our build.gradle file:. Monday, July 4th, 2016. 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. This error message is very confusing and it took me while to find the issue.
dimitar.me
Networking | dimitar.me
http://dimitar.me/category/networking
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 php script to massage that data, so that it is easier to read as well as focusing on those queries that either do not resolve or take a long time to resolve:. Tuesday, May 10th, 2016. It turns out that if you have enabled mod rewrite. When your Linux...
SOCIAL ENGAGEMENT