Skip to content

Instantly share code, notes, and snippets.

ankita-kumari /
Created Nov 4, 2015 — forked from artieziff/
MongoDb & Python Essentials


###Ubuntu Install

sudo apt-get install mongodb
pip install pymongo

Table - Collection
Column - Property
Row - Document

ankita-kumari /
Created Oct 28, 2015 — forked from staltz/
The introduction to Reactive Programming you've been missing
ankita-kumari / .gitignore
Last active Aug 29, 2015 — forked from adamgit/.gitignore
.gitignore file for Xcode4 / OS X Source projects
View .gitignore
# .gitignore file for Xcode4 and Xcode5 Source projects
# Apple bugs, waiting for Apple to fix/respond:
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
# Version 2.5
# For latest version, see:
View gist:489417b42c2617b9fa0f

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.


Ctrl+⇧+K delete line
Ctrl+ insert line after
Ctrl+⇧+ insert line before
Ctrl+⇧+↑ move line (or selection) up
View gist:d572f4892817729856b2
<?xml version="1.0" encoding="UTF-8"?>
<matches software="LanguageTool" version="2.8" buildDate="2014-12-30 13:12">
<language shortname="en-US" name="English (US)"/>
<error fromy="0" fromx="0" toy="0" tox="1" ruleId="UPPERCASE_SENTENCE_START" msg="This sentence does not start with an uppercase letter" replacements="A" context="a simple test" contextoffset="0" offset="0" errorlength="1" category="Capitalization" locqualityissuetype="typographical"/>
ankita-kumari / languagetool-server-error
Created May 13, 2015
Error that I get when trying to run the HTTP server in LanguageTool.
View languagetool-server-error
ankita @ Vhagar ~/Codes/languagetool-test/languagetool-clean/languagetool/languagetool-server/target $ java -cp languagetool-server-3.0-SNAPSHOT.jar org.languagetool.server.HTTPServer --port 8081
WARNING: running in HTTP mode, consider using SSL by running org.languagetool.server.HTTPSServer instead
Exception in thread "main" java.lang.NoClassDefFoundError: org/languagetool/language/LanguageIdentifier
at org.languagetool.server.LanguageToolHttpHandler.<init>(
at org.languagetool.server.HTTPServer.<init>(
at org.languagetool.server.HTTPServer.main(
Caused by: java.lang.ClassNotFoundException: org.languagetool.language.LanguageIdentifier
at Method)
ankita-kumari / diable-remove-button
Created Mar 25, 2015
This leads to the button to become disabled when the page is rendered but with subsequent additions it does not become clickable.
View diable-remove-button
ve.ui.MWTransclusionDialog.prototype.getPageFromPart = function ( part ) {
var page = this, part );
if ( !page && part instanceof ) {
return new ve.ui.MWTransclusionContentPage( part, part.getId(), { $: this.$ } );
var parts = this.transclusionModel.getParts();
if(parts.length === 1 && part instanceof
page.removeButton.setDisabled( true );
View config-ssh
#changes to allow ssh for git
Port 443
Port 29418
User ankita-kumari
TCPKeepAlive yes
IdentityFile "/Users/Vhagar/.ssh/id_rsa"
View git-update-error-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant $ vagrant git-update
==> Updating /srv/jobrunner ...
fatal: ref HEAD is not a symbolic ref
expr: syntax error
Previous HEAD position was 5c927f9... trim() the stderr output too
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Already up-to-date.
==> Updating /srv/parsoid ...
ankita-kumari / error-log
Created Mar 11, 2015
error log for : vagrant destroy && vagrant config nfs_shares no && vagrant up
View error-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant $ vagrant destroy && vagrant config nfs_shares no && vagrant up
default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Removing puppet created files...
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'lsb_check' provisioner...
==> default: Running cleanup tasks for 'puppet' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'trusty-cloud'...
==> default: Matching MAC address for NAT networking...