Showing posts with label How To. Show all posts
Showing posts with label How To. Show all posts

Sunday, November 12, 2017

Googler A Command Line tool for ‘Google Search’ from Linux Terminal (Ubuntu)


 
Hey Ubuntu geek here is something that might be new for you and this might be quite interesting as well. If you want to search from the command line and jump to a user-definable browser for results then try Googler. Googler is a powerful, feature-rich and Python-based command line tool for accessing Google (Web & News) and Google Site Search within the Linux terminal. It shows the title, URL and abstract for each result, which can be directly opened in a browser from the terminal. Results are fetched in pages (with page navigation). Supports sequential searches in a single googler instance. 
Googler was initially written to cater to headless servers without X. You can integrate it with a text-based browser. However, it has grown into a very handy and flexible utility that delivers much more. For example, fetch any number of results or start anywhere, limit search by any duration, define aliases to google search any number of websites, switch domains easily all of this in a very clean interface without ads or stray URLs. The shell completion scripts make sure you don't need to remember any options. Googler is a single standalone script, so you could download just a single file if you'd like to. This tool is not associated with google in any way.

Note: Googler is not in any way associated to Google. 

For installation of googler type the following command on your terminal screen.



sudo add-apt-repository ppa:twodopeshaggy/jarun
sudo apt-get update
sudo apt-get install googler

If this method do not work on your PC then do try this method as well or you can do as in video. 
First download latest version of Googler from: download here Note:(at the time writing the latest version was v2.9). Then type the following commands on your terminal screen



cd Downloads
wget -c https://github.com/jarun/googler/arch... 
tar -xvf v2.9.tar.gz
cd googler-2.9
sudo make install
cd auto-completion/bash/
sudo cp googler-completion.bash /etc/bash_completion.d/ 
Thank you! I have tried this only in Ubuntu this works fine from 12.04 to 17.10. Comment your queries. Do like Share and Subscribe for similar interesting blogs and videos.

REFERENCE

Saturday, October 7, 2017

TODOIST SUBSCRIBERS DONOT GO PRIME

TODOSIT is a really cool app I'm using these days to set my daily goals. Todoist helps to add tasks and manage out tasks in an easy way. Wherever we are or whatever task we want to logs in any projects we can do it here at TODOIST.
Todosit has many features that are available for free, which are listed below:
  • Access tasks everywhere
    With apps and extensions for 10+ platforms, your tasks are always there: on mobile devices, web browsers, inboxes, and more.
  • Collaborate on shared tasksShare unlimited tasks with anyone – colleagues, family, friends – and collaborate in real-time on shared projects and goals.
  • Distraction-free designYour tasks are a big part of your life. Stay motivated and organized with Todoist’s intuitive and beautiful to do list.
  • Subtasks
  • SubProjects
  • And manymore which you can find in their official site

But it says you to go PREMIUM for Setting REMAINDERS


But I don't suggest you to go PRIME and pay for a feature which should be paid. With this easy trick you can get the remainder for free.

TODOIST PREMIUM FOR FREE

  • Go to the Todoist App
  • Go to Settings menu on your browser's top right area
  • Go to the Integrations
  • Now choose Google Calendar
  • Sync your Google Calendar with Todoist app.
    On your mobile phone you might be using some applications for getting the remainders like: SPlanner or the Google Calendar itself. For most of the Smart phone from Samsung which runs Android they have Splanner as default Samsung Apps.
  • Now Create a new Task something like:
    "COFFEE at 14:00 with Techjhola"  as  a remainder.
  • Your todo items will now automatically get synced with Google Calendar and you will get a remainder on your phone.
DON'T GO PREMIUM UNLESS YOU CAN HACK any apps in any possible ways. Because sneaking out and taking advantages of loopholes is more fun than paying money.
Cheers!
Happy Blogging

Related Articles

Wednesday, September 27, 2017

GitHub: How to Embed GitHub Contribution in your Webpage?

If you are an Open Source contributor and contribute to open source project via GitHub, wouldn't it be fascinating if you could display your GitHub Contribution in your personal site?  From our last blog we found a way to generate our resume:

GitHub: Create your Awesome Resume with resume.github.io
But there were no information about your commit. So this blog can be helpful because now you can display your Contribution in your personal web site/blog. On today's Blow we will be exploring another open source project which displays your GitHub Contributions Timeline. And we can embed that contribution timeline in any website we want. 

Tuesday, September 26, 2017

GitHub: Create your Awesome Resume with resume.github.io

Today's blog is informative as well as interesting. It's a fun post which I found today on Github. While I was googling several ways of creating resumes, I found this site resume.github.io which generates your resume based upon your contribution on github. 

Interesting part about this resume generating site is that on  6 Feb, 2011 Creator of jQuery John Resig tweeted something about Github Commit logs over a resume: 
After this David Coallier started a project GITHUB RESUME GENERATOR on the same day 6 Feb, 2011.

resume.github.io

All you need to do is enter your github username and press enter. It will automatically crawl to your repository and creates a resume for you. Resume covers following section:
  • Name
  • GitHub Profile
  • Website
  • Languages
  • Popular Repositories
  • Contributions
  • Organizations
These info are all you need to let people know what kind of developer you are. Rather than the long page CV this GitHub resume will help define your skills, community participation in open source projects as well as contribution and level of expertise which tech companies are always searching for.

So from now on, if a company asks for your resume provide them your github resume :)

Monday, September 18, 2017

GITHUB: HOW TO CREATE A WEBSITE WITH GITHUB PAGES?


Many of us have created sub pages from domains who let us host some space for free like .me, .wordpress.com, .blogspot.com. We used such domains for displaying our profile online. Back in 2008, Github announced GitHub Pages. GitHub Pages allow you to publish web content to a github.com subdomain named after your username. We don't need to worry about the database and many other tedious process of hosting and having it available 24*7. 


CREATING GITHUB PAGES

You don't need any technical expertise to publish your web content. You can create a GitHub page following few steps which I'll be explaining in today's blog. Before that I will be explaining different ways of publishing a page at GitHub. 

First way of publishing GitHub page is easy one. You can create a page from settings of your repository.
Second way of publishing a GitHub page is directly adding content to the repository. These contents within your repository will point to the github page.
Third way is by using Jekyll framework which helps you to create a blog like website just by pushing the content to your repository.

In this blog I'll explain first two ways of publishing GitHub pages. Using Jekyll Framework is not that hard. I've tried building GitHub pages with Jekyll Framework, but I'm not prepared right now to demonstrate. I'll be writing another blog to explain how to use Jekyll framework for building Blogs with Jekyll Frameworks. 

First Method
  • Create a repository and keep the repository name exactly the same which is something like: your-username.github.io
  • This is the default GitHub page that will be displayed. In case you want to create a repository page for any of your project. You need to keep it in mind that Url for your repository's page will be appended to your main github page
  • Make sure your repository has any of these two files: README.md or index.html
  • This tells GitHub Pages that the repository contains web contents that needs to be hosted.
  • Go to Settings of your Repository. Scroll down and you will see this GitHub Pages:
  • Choose a theme. There are a number of themes available for creating the Github Pages:
  • Select one of the theme and save the changes and you can see the github page build already.
  • Browse it whose url is: your-username.github.io

SECOND METHOD
Well second method came in the middle of first step because this has something to do with the first Image above i.e. the GitHub Pages Section.
    • Github pages are disabled by default. Click None and you will see three options


      In your master branch if you are going to display the README file as the default information. Choose Master Branch.
      If all your web pages are hosted in the master branch and your index.html is hosted in aster Choose Master Branch.
      If you have an ongoing project codes in the repository and you plann to separate the project's Wiki that will be displayed as github page in a separate folder, name that folder as docs. Then select the second option.master branch /docs folder.
    These are two easy methods of hosting your github Pages. The third One i.e. using Jekyll Framework, I'll soon be writing a blog post about it and explain steps by steps how to use it for creating a GitHub Pages.
    RELATED ARTICLES:

    Friday, August 4, 2017

    GITHUB: Shorten your GitHub Repository Url with GIT.IO

    Today's Article is a quick glance about this less known feature provided by Github: GIT.IO . What GIT.IO does is shortens your repository's url. Seems pretty basic us, but this actually plays a significant role for those who always stick to GIT BASH.

    Most of us during our web application development use the Command Line Interface. They are so ease to use rather than using drag and drops or simultaneous clicks for a single task. CLI is next cool technology trend that every software framework are fascinated about. So whenever we start a new project we initialize the project configuration via Command Line Interface.

    I do some AngularJs Web App development. Talking about my way of configuring projects i normally do npm init which within next steps asks for the github repository. So either I need to copy paste the git repository or type it manually. And here by shortening the repository url with the help of GIT.IO all we need to keep not of is the fiveunique characters linked with the git.io url like shown below:

    Here I shorten url of a repository that belongs to a organization that I'm involved with:
    Later this long url turns out to be short with just 5 characters appended to git.io.
    It would have been even more helpful if github could provide short urls for any Url. But git.io only shortens GitHub.com URLs.


    RELATED ARTICLES:




    Thursday, July 13, 2017

    How To Integrate Disqus in Blogger?

    Disqus (pronounced discuss) is a worldwide blog comment hosting service for web sites and online communities that uses a networked platform. The company's platform includes various features, such as social integration, social networking, user profiles, spam and moderation tools, analytics, email notifications, and mobile commenting.

    Why Disqus?

    • User can post comment, vote comment, flag comment and share comments to social networks. Also they can subscribe to comments.
    • You will get notification to your email for each new comment.
    • A commenter can attach media files (image, video) in their comments.
    • You can see your site’s comment activity in a graph.
    • You can set custom avatar for comments for those who don’t actually display their avatar.
    • Commenter can post their comment as guest or they can post using their open ID.
    • Disqus adds real time threaded comments and shows a related discussion below comments which reduces your bounce rate.
    • You can make money from Disqus by showing recommendations just like nRelate related posts.
    There are two different way to integrate disquss in any of the content management system(CMS). You can either do all the configuration from the disqus website or do it from your blog gadgets and templates.You just need to choose a platform and follow the instruction.

    As our site is hosted in blogger. I did exlpore ways to integrate blogger and disqus. I wanted to integrate it so much because this medium of comment posting is similar to that of some of the great news sharing sites reddit and 4chan. Like these sites, disqus also maintains the threads within thread,  vote ups, as well as the recommendation of comments and sharing them. You can not only expect if your blogger read the blogs but with the help of disqus now you can also get their valuable feedback.


    Configuration from blogger(Manual work):
    • In your blogger Dashboard , Click "Layout", and Click "Add a Gadget below the blog text area of your layout where your blog is posted.
    • Clicking the "Add a Gadget", you will see the collection of Gadgets made available by blogger as well as third parties. Search for "HTML/Javascript"
    • Enter the title of the gadget as "Disqus".
    • Save the gadget and also save the arrangements.
    Now we will add a disqus code inside that gadget from our Template section. Before doing that make sure that you have created a disqus account. If not signup now it is too easy, Signup and get a username.
    • Now again go to the dashboard and Click "Template". Then click "Edit HTML".
    • After that click within the code area and find the text "Disqus". (Searching is done by CTRL+F key combination)
    • After you find the code block expand the code division.
    • Find the code snippets withing that division and remove them.
    • Instead of those codes you just deleted, copy the code mentioned below:
    • That's It. Now Save your template.
    • Don't forget to hard refresh your blog( Which is generally done by pressign CTRL+ F5)
    You Should now see a  disqus comments area just below your website. Cheers1

    Sunday, July 9, 2017

    How to replace a string in a file(s)?


    Working with Files and strings in a file in Unix is what a beginner shell script learner wants to do after s/he learns the very basic commands via terminal. So I found this really really really important resource on unix.stackexchange.com which describes multiple operations on strings in files.
    The link mentioned below answers following questions.
    • replace string foo with bar in all files in the current directory?
    • do the same recursively for sub directories?
    • replace only if the file name matches another string?
    • replace only if the string is found in a certain context?
    • replace if the string is on a certain line number?
    • replace multiple strings with the same replacement
    • replace multiple strings with different replacements



    Clone a System using Clonezilla

    For me Cloning is another term for copying. Cloning is performing a mass copy paste operation but not just normal files like movies and documents. You want to clone an operating system in multiple blank hard disks, what will you do? Will you insert the bootable CS/USB everytime in all of those machines and install them on and on taking a week? I suggest you not to, because I've an alternative which can perform that task. And that is "CLONEZILLA"

    Clonezilla is a partition and disk imaging/cloning program which helps us to install or creating a working system via system deployment. We can also perform system recovery tasks with Clonezilla. We can download the iso from its official website.
    There are two types of Clonezilla which can choose based upon our need and they are: Clonezilla live and Clonezilla SE (server edition).
    • Clonezilla live is suitable for single machine backup and restore.
    • Clonezilla SE is for massive deployment, it can clone many (40 plus!) computers simultaneously.
    Clonezilla saves and restores only used blocks in the hard disk. This increases the clone efficiency. With some high-end hardware in a 42-node cluster, a multicast restoring at rate 8 GB/min was reported.
    Today I will be demonstrating the Clonig Operation on my blog:
    Here are few things which you will need prior to begin Cloning.
    • Clonezilla iso
    •  Bootable Pendrive(conezilla bootable)
    • A source hard drive for clonning
    • A destination hard drive to clone.
    1. Download Clonezilla iso file and make a bootable pendrive and boot from it.
    2. It will show the boot menu as in the Image 1 below.
    Image 1
    3. Choose the Clonezilla live (Default settings, VGA 800x600) option and press enter.

    Image 2
    4. Choose your preferred Language 


    Image 3

    5. Now Choose Don’t touch Keymap option as in Image 3.
    6. Choose Start_Clonezilla Start Clonezilla option and press enter as in Image 4 below.

    Image 4

    7. Choose device-device option and press enter as in Image 5 below.

    Image 5

    8. Choose Beginner Beginner mode: Accept the default options option and press enter as in the Image 6 below.

    Image 6

    9. Choose disk_to_local_disk local_disk_to_local_disk_clone option and press enter as in the Image 7 below.

    Image 7

    10. Be careful in this step, this is the crucial part. Now you have to choose the Hard Disk from which data is to be transferred. So, check the Serial Number of Hard disk from which data is to be transferred (known as SOURCE) and accordingly choose the option with that serial number and press enter. Double Check the serial number of hard disk because it can cause the reverse process which we wouldn’t want.
    Image 8

    11. Now in this step, it will show only one option which is the hard disk where the data will be copied (Known as Destination). That is in this hard disk we’ll clone our updated data or contents. Be sure and double check if it is the disk where we want to clone our updated hard disk. To be sure Check the serial number of the hard disk.
    Image 9

    12. Choose Skip checking/repairing source file system option and press enter as in Image 10 below.

    Image 10

    13. Press ENTER to proceed as in Image 11 below.

    Image 11

    14. Type Y and press ENTER for confirmation as in the Image 12 below.

    Image 12

    15. Again for confirmation type Y and press ENTER as in the Image 13 below.

    Image 13

    16. Now the partition table will be created on the destination disk. You don’t have to do anything in this step just for info, screen like Image 14 will be appeared.

    Image 14

    17. Now it will ask for confirmation for cloning boot loader to target or destination disk so basically, type Y and press ENTER as in Image 15 below.

    Image 15

    18. Now the cloning will start and let it be, the screen will look as in Image 16 below.

    Image 16

    19. After complete cloning, it will ask to continue so press ENTER. The screen is as in Image 17 below.
    Image 17

    20. Now Power off the system. And the cloning is completed.
    Image 18



    Subscribe techjhola !! Enojy!!!

    About Me

    authorHello, my name is Jack Sparrow. I'm a 50 year old self-employed Pirate from the Caribbean.
    Learn More →