Rahul Bansal rahul286
-
rtCamp
- Pune, India
- Sign in to view email
- https://rahul286.com
Documentation-Driven Development
The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.
- Document the feature first. Figure out how you're going to describe the feature to users; if it's not documented, it doesn't exist. Documentation is the best way to define a feature in a user's eyes.
- Whenever possible, documentation should be reviewed by users (community or Spark Elite) before any development begins.
- Once documentation has been written, development should commence, and test-driven development is preferred.
- Unit tests should be written that test the features as described by the documentation. If the functionality ever comes out of alignment with the documentation, tests should fail.
- When a feature is being modified, it should be modified documentation-first.
- When documentation is modified, so should be the tests.
#!/bin/bash | |
# This script takes a remote repository and merges it into | |
# the current one as a subdirectory | |
set -e | |
if [ -z "$1" ] | |
then | |
echo "Usage:" |
Install deps using
pip install ipwhois
You may need to prefix above command with sudo
if you are using python version that ships with system.
Or change ownership (not recommended) by running sudo chown -R $USER /Library/Python/2.7
Download script and execute it
// goto https://www.facebook.com/rahulb286/allactivity?privacy_source=activity_log&log_filter=receivedfriendrequests | |
// open js console | |
// insert jquery by copy-pasting http://code.jquery.com/jquery-latest.min.js | |
jQuery('#pagelet_all_activity_2018_6 ._5ep8').each(function (index) { | |
console.log( jQuery( this ).text() + " : " + jQuery(this).next('.uiList').find('a.profileLink').filter(':odd').length) | |
}); |
# goto https://www.linkedin.com/feed/following/ | |
# in JS console run | |
var buttons = $("button"), | |
interval = setInterval(function(){ | |
var btn = $('.is-following'); | |
console.log("Clicking:", btn); | |
btn.click(); | |
if (buttons.length === 0) { | |
clearInterval(interval); |
Commit, clone a container
To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.
For example;
docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade |
brew install rbenv ruby-build rbenv-bundler
Run
rbenv --init
Open JavaScript console and run following codes on respective sites.
It hides all vegeterian dishes from the menu!
Zomato - https://www.zomato.com/
$('.veg').parent().parent().parent().parent().parent().hide()