Decompiling apk to Dex format

1. Download Dex2Jar (Android runs applications which are in Dalvik Executable (.dex) format).
2. Run the command to convert apk to jar

dex2jar targetapp.apk file(./dex2jar targetapp.apk on terminal)

Viewing/Decompiling the Jar files to Java

1. Open ‘targetapp.apk.dex2jar.jar’ with jd-gui
2. File > Save All Sources to sava the class files in jar to java files.

Since The Pirate Bay using magnet link to initiate torrent download, i’m having issue with my μTorrent running in Linkstation. Below is the symptom:

Magnet links can be added but don’t start, they sit at 0 seeders and peers and display the null error mentioned previously in the event log:

JS error: [778] Unable to get value of the property '262': object is null or undefined

 

FIX
Copy magnet link from TPB, and paste into μTorrent.
Right click on the torrent list and select Properties
Look at the tracker section, add this line as additional tracker:

http://tracker.ccc.de:80/announce

Wait for few seconds, you will see some seeders and leechers coming to you

Source:
http://forums.buffalotech.com/t5/Storage/Bittorent-not-Working-after-Firmware-update/m-p/103520/highlight/true#M49903

μTorrent is a freeware and a closed source BitTorrent Client. One of the most used lightweight BitTorrent Client, Now it is available for Linux as μTorrent Server. You can download the tar file from utorrent.com or Open a Terminal and use the following command to download.

 

 

 

For x32

[email protected]:~# wget http://download.utorrent.com/linux/utorrent-server-3.0-ubuntu-10.10-27079.tar.gz

For x64

[email protected]:~# wget http://download.utorrent.com/linux/utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz

After downloading the tar file, move to the file to /opt directory

[email protected]:~# mv utorrent-server-3.0-ubuntu-10.10-27079.tar.gz /opt/

Change to /opt and extract downloaded file

[email protected]:~# cd /opt/
[email protected]:/opt# tar -zxvf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz

Change permission

[email protected]:/opt# chmod -R 777 utorrent-server-v3_0/

Create a symbolic link so that you can run the torrent server from terminal.

[email protected]:~# ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver

Start the torrent server by using the following command in terminal.

[email protected]:/# utserver -settingspath /opt/utorrent-server-v3_0/

If you get this error utserver: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory, you can execute below command to install required libssl

[email protected]:/# apt-get install libssl0.9.8

Open a browser and type the following line to access μTorrent Server webui

http://serverip:8080/gui/

Default username is admin with blank password.

 

XBMC is an open source software media player and entertainment hub for digital media. XBMC is available for Linux, OSX, IOS, Android (WIP) and Windows. Out of the box, XBMC can organnize your media collection, auto download album art and many more. This tutorial will show how we can unleashed the full potential and capabilities of XBMC, by getting direct access to thousand of media shared by the community.

Goal 1: Install XBMC on your platform
Download XBMC from XBMC official site. Installation may varies depending on your platform and not being covered in this post. You can follow this guide to install XBMC.

Goal 2: Adding XBMC NaviX plugin
Download plugin from here and follow installation guide here.

Taken from NaviX wiki

On XBMC:

1. Go to www.navi-x.org and click on “Downloads” then click the button that says “Download Navi-X” and save the file to your computers desktop.

2. Install XBMC on your computer if you have not already. You can get the latest “stable” and “unstable” builds at http://xbmc.org/download/

3. Once XBMC is installed open it and click on System > Addons > Install from Zip file. Select the location on your computer where you saved Navi-X and select the zip file.

4. Exit to the main screen of XBMC and check out “Programs”… Navi-X should be installed there. Make sure you always use the latest version of Navi-X and the latest “stable” version of XBMC, located in the primary download page for XBMC.

On Apple TV, iPad, iPhone and iOS supported devices:

1. Jailbreak your Apple TV (or iOS device) and install XBMC. You can get details on how to do this from Google.

2. Once your Apple TV is jailbroken and has XBMC on it, you need to SSH and upload Navi-X to your iOS device in a folder that can be accessed by XBMC’s file explorer. Here is a video detailing how to SSH into your Apple TV (iOS device) and upload files to your device.http://www.youtube.com/watch?v=3x_pyFy1cI0

3. Once the Navi-X.zip file is uploaded to your iOS device, open XBMC on your iOS device and go to System > Addons > Install from Zip file. Browse to the location on your device you uploaded the Navi-X.zip file to and select it to install Navi-X.

4. Exit to the main screen of XBMC and check out “Programs”… Navi-X should be installed there. Make sure you always use the latest version of Navi-X and the latest “stable” version of XBMC, located in the primary download page for XBMC.

Screenshots
navi

 

navi2

Related link(s):

http://www.makeuseof.com/tag/5-amazing-addons-xbmc-media-center/

http://hometheatersalsa.com/xbmc-plugins-unofficial-repositories

Incoming search terms:

  • navi x for ipad
  • how to add xbmc to apple tv

Since CloudFlare acts as a reverse proxy for websites, CloudFlare’s IPs are going to show in your server logs. This can be easily identified from awstats or webalizer.
cloudflare
There is an easy fix to restore original visitor IP for any web server.
1) Copy the source file mod_cloudflare.c to your web server.
wget https://raw.github.com/cloudflare/CloudFlare-Tools/master/mod_cloudflare.c
2) Make sure that the command apxs or apxs2 is installed somewhere.
If you are running Ubuntu or Debian, this can be installed with:

apt-get install apache2-prefork-dev

If you are running Fedora or CentOS, this can be installed with:

yum install httpd-devel

3) Execute this command as root:

apxs2 -iac mod_cloudflare.c

4) Restart apache.
5) Lastly, make sure that mod_cloudflare is working by tailing your access.log file. ou should see that the remote_ip field here is no longer that of the CloudFlare CDN IP ranges. You can execute this command to verify mod_cloudflare is loaded into Apache:

apachectl -t -D DUMP_MODULES | grep cloud

Related article

Incoming search terms:

  • apache show cloudflare source ip in log
  • cloudlare visitor ip

How Does CloudFlare’s Technology Work

CloudFlare’s technology is built like a CDN (content delivery network). It is a cloud-based, distributed network, which means it has multiple data centers spread across the web. When you add a domain to your CloudFlare account, CloudFlare acts as a proxy. This means that your visitor’s requests to your website are routed through the CloudFlare network.

To start using CloudFlare is fairly simple, go to https://www.cloudflare.com and add you site there. It takes around 1 minutes for CloudFlare to check your DNS record. Once verification finished, you must change your nameserver using CloudFlare’s predefined DNS server.

We are going to create 3 sites, site1.com, site2.com and site3.com

1. Create the folders that will host your new sites. By default, Apache in Ubuntu serves from /var/www. So create these:

mkdir /var/www/site1
mkdir /var/www/site2
mkdir /var/www/site3

2. Copy the current default setting found in /etc/apache2/sites-available/default and name it the same as your new site.

cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site1
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site2
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site3

3. Edit the new config files for each site using your preferred text editor. Add the line ServerName server1 right below the ServerAdmin line and change both DocumentRoot and Directory to point to your new sites.

/etc/apache2/sites-available/site1


	ServerAdmin [email protected]
	ServerName site1

	DocumentRoot /var/www/site1
	
		Options FollowSymLinks
		AllowOverride All
	
	
		Options -Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/access.log combined

4. After you have edited the config files for each of the 3 or how many virtual hosts you are creating, just tell Apache to start serving the new domains and stop serving the default:

sudo a2ensite site1
sudo a2ensite site2
sudo a2ensite site3
sudo a2dissite default

5. Now reload apache and you should be able to get to each of your new domains:

sudo /etc/init.d/apache2 reload

Credit:http://www.fospre.com/apache-virtual-host-ubuntu/