How to undo last commit/push to git repository

Was faced with an issue recently where I ‘accidentally’ pushed a ‘bad’ commit to github. Luckily with git its easy to undo such mistakes.

In your working directory type

git push -f origin HEAD^:master

And voilia, your last push was removed.

Now, lets say you pushed a truckload of crappy commits to the repository. Well, thats not gonna be an issue either, just add more carets for each push you wish to remove.

eg. to remove the last 3 commits

git push -f origin HEAD^^^:master

Did it work for you? share your experience in the comments below.

How to disable popup banner in tapatalk

 

In your mobiquo/smartbanner/ folder, locate the file called head.inc.php

Create two new variables near the top of the file

$app_ads_enable = 0;
$app_banner_enable = 1;

$app_ads_enable – sets the fullscreen banner when a user first goes to your forum
$app_banner_enable – sets the ‘twitter card head’ (the opt-in screen at the start of the page)

0 will disable a feature,
1 will enable the feature.

Enjoy!

How to fix OwnCloud Key Expired Error

If you get an error like

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org  Release: The following signatures were invalid: KEYEXPIRED 1397815516

W: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

You simply need to reimport the new key… copy and paste the command below

wget -qO - http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key | sudo apt-key add -

 

Thanks to fkunz for the fix

List of AD networks and CPM Rates (ongoing)

These are the rates for an average entertainment site with 300×250 banner ads.

Network Name eCPM Other Notes Fill P
 ValueClick  $0.75  You get to pick your own ads and high fill rate. Awesome Tier 1 Ad Network  15%  Y
PulsePoint $1.00 As you get to choose your own rate. The eCPM can Potentially be higher or lower but I’ve found this to be the best to get a reasonable fill rate 25% Y
Lijit $0.40 Lijit has Separate Rates for US traffic and ‘International’ Traffic. Noted here is US. By default, International CPM and fill rte is slightly lower 80% Y
 Yllix  $0.03  Extremely poor fillrate as well as low CPM. Fail to see why anyone would use them.  5% N
Copacet  N/A  CPC
 CPMFun $0.05  Impressive fill rate but the low CPM makes it not worth your time. 70% N
 CPM Go  $0.30  Above average eCPM and relatively good fill rate. Definitely one of the more impressive underdogs in the ad network world.  50%  Y

T* – > Traffic Utilization (how much of traffic sent to network was actually used)
P -> Passback tags (Y – Yes :  N – No)
E. eCPM* -> Effective Passback tags, CPM rate when T* is taken into account ( do not use literally is completely inaccurate if ad network uses Passback tags)

More data is always appreciated as this is an ongoing list. Seek me out in the comments if you have anything you wish to share

BBM for Android (and iPhone) Officially Released

2013-10-21-18-44-50Yup, you’ve read right. Blackberry messenger for android has finally been released and you can get it now here. Despite all the false starts and their fiasco of a launch its nice to see RIM finally pull through.

As with everything good there is always a bit of a catch. As quoted from Blackberry

As you know, in just seven hours, about one million Android users were using the unreleased version of BBM for Android. What you don’t know is that more than one million people have found creative ways to “side load” BBM on their iPhone. This is incredible.

To help manage this unprecedented pent up demand for BBM, we are implementing a simple line-up system to ensure a smooth roll out.

Translated, it means: While you and anyone else can install the app to your phone you need to have previously signed up to actually run it. If you didn’t opt-in before, then you need to now, then wait until your turn comes to be given access.

As one who has been following RIM since the pre-release, I have already registered with them and therefore was lucky enough to bypass their queue. If you’re stuck waiting and you have any questions about the app, then leave a comment and I’ll answer them as best I can.

BBM Play Store Link: BBM for Android

Here are a few Screenshots of the app throughout the initial start-up and installation process. [Taken on Galaxy Note II running BBM for Android]

2013-10-21-18-44-132013-10-21-18-44-302013-10-21-18-44-502013-10-21-18-46-09

bbm-for-android-screenshot

2013-10-21-19-26-30

How to install/uninstall Zimlets In Zimbra 8

TO INSTALL:

First place zip file in:

/opt/zimbra/zimlets

Then type

su zimbra
zmzimletctl install zimlet_archive_name.zip
zmzimletctl deploy zimlet_archive_name.zip
zmzimletctl enable zimlet_archive_name

 TO UNINSTALL/REMOVE:

su zimbra
cd /opt/zimbra/zimlets
zmzimletctl disable zimlet_name
zmzimletctl undeploy zimlet_name

Continue reading

A complete list of PayPal’s fees by country

Fees are calculated as ‘Fee’ + ‘Fixed’:

Country Online Purchases Personal Payments Currency Conversion
Afghanistan
Albania 3.4 3.4 free
Algeria 4.9
American Samoa  –
Andorra unknown
Angola unknown
Anguilla unknown
Antarctica  N/A
Antigua and Barbuda 4.9
Argentina 5.4
Armenia unknown
Aruba
Australia
Austria
Azerbaijan
Bahamas Continue reading