Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am theamith on github.
  • I am amithku (https://keybase.io/amithku) on keybase.
  • I have a public key whose fingerprint is 2438 8ACF 1AFC C299 6C07 8356 439B C126 E418 8C0D

To claim this, I am signing this object:

@theamith
theamith / git_cheat-sheet.md
Created April 4, 2018 09:01 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
Open Skype in a PC
/remotelogout - Type on any chatbox 2 - 3 times to logout from all other locations
/showplaces - check if your Skype is online in other devices
Set your status to Invisible/Offline
Sign out from Skype
Check if your still online
http://community.skype.com/t5/Mac/Can-t-sign-out-even-after-deleting-the-app-everywhere/td-p/3053956
/**
* Event handler to prevent richtext and linebreaks in contentEditable DIVs
*/
$('body').on('keydown paste', 'div.editfield', function(e) {
var $field = $(e.currentTarget);
if (e.keyCode===13 && $field.hasClass('multiline')) {
return true;
} else if (e.keyCode===13 || e.type==='paste') {
setTimeout(function() {
$field.html($field.text());
@theamith
theamith / facebook-leaked-code.md
Last active July 7, 2023 08:29
face book leaked code.
@theamith
theamith / firefox-chrome-java-pugin
Created September 3, 2013 18:14
Manually configure java plugin in chrome and firefox
1. Download appropriate jre version from http://java.com/en/download/index.jsp
2. Extract it and mv it to /usr/local
3. change to firefox installation directory
cd /usr/lib/firefox/browser/plugin
4.Make a symbolic link
sudo ln -s /usr/local/jre1.7.0_27/lib/i386/libnpjp2.so
@theamith
theamith / app.js
Last active December 21, 2015 04:18 — forked from manumaticx/BackgroundNotification.js
Android background service called from bencoding.AlarmManager BackgroundNotification.js for scheduling daily notification
//Import bencoding alarmmanager module into our Titanium App
var alarmModule = require('bencoding.alarmmanager');
var alarmManager = alarmModule.createAlarmManager();
var isRunning = Ti.App.Properties.getBool("service_running", false);//get service running bool status
if (isRunning) {
Ti.API.info('service is running');
} else {
Ti.API.info('service is not running');
alarmManager.addAlarmService({
@theamith
theamith / build-hadoop-eclipse-plugin
Created May 29, 2013 14:38
Build Hadoop Eclipse Plugin
1. Download java 5 from http://de.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/ and extract it to /usr/local/HaddopEclipsePlugin
2. Download Ant from http://ant.apache.org/bindownload.cgi and extract it to /usr/local/HadoopEclipsePlugin
3. Edit ~/.bashrc file and Add ANT_HOME and PATH
export ANT_HOME=/usr/local/HadoopEclipsePlugin/apache-ant-1.9.1
export PATH=$ANT_HOME/bin:$PATH
4. Check Ant is installed properly by
@theamith
theamith / tomcat-installation
Last active December 17, 2015 20:29
Installing tomcat
Apache Tomcat is a web server and a servlet container for Java web applications.
-
1. Download Apache Tomcat from http://tomcat.apache.org/download-70.cgi and save it to Downloads.
2. Extract it.
hduser@Hadoop:~/Downloads$ tar xvzf apache-tomcat-7.0.40.tar.gz
3. Move Extracted tomcat to /usr/local/tomcat directory
@theamith
theamith / windows_run_commands
Created May 11, 2013 07:36
Windows Run Commands
Accessibility Controls = access.cpl
Accessibility Wizard = accwiz
Add Hardware Wizard = hdwwiz.cpl
Add/Remove Programs = appwiz.cpl
Administrative Tools = control admintools
Adobe Acrobat ( if installed ) = acrobat
Adobe Distiller ( if installed ) = acrodist
Adobe ImageReady ( if installed ) = imageready
Adobe Photoshop ( if installed ) = photoshop
Automatic Updates = wuaucpl.cpl