Skip to content

Instantly share code, notes, and snippets.

View light-bringer's full-sized avatar
:bowtie:
maomao

Debapriya Das light-bringer

:bowtie:
maomao
View GitHub Profile
0.000000] Booting paravirtualized kernel on Xen HVM
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.000000] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:15 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 33 pages/cpu @ffff88003e200000 s98008 r8192 d28968 u262144
[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 257928
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-45-generic root=UUID=a34eec5e-27ac-4b01-abbd-4af9ac82df96 ro console=tty1 console=ttyS0
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 999112K/1048180K available (8409K kernel code, 1283K rwdata, 3944K rodata, 1480K init, 1292K bss, 49068K reserved, 0K cma-reserved)
@light-bringer
light-bringer / interviewitems.MD
Created November 10, 2016 12:38 — forked from KWMalik/interviewitems.MD
My answers to over 100 Google interview questions

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
package com.semsoft.research_bi.summarization;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DemoClass {
public static void main(String[] argv) {
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Vector;
@light-bringer
light-bringer / lsb_release
Created May 23, 2017 11:17 — forked from skx/lsb_release
Simple alternative to /usr/bin/lsb_release
#!/bin/sh
#
# This is a simple alternative to /usr/bin/lsb_release which
# doesn't require python.
#
# If /etc/os-release exists then we use that to output data
# in a compatible format to the original lsb_release utility.
#
# I consider this script trivial enough to be in the public-domain,
# but any patches or suggestsions will be welcome.
(function() {
var adyen = window.adyen = window.adyen || {};
adyen.cse = adyen.cse || {};
adyen.cse.version = "0_1_18";
adyen.cse.id = "1214343660265799";
adyen.cse.available = true;
adyen.cse.plugins = adyen.cse.plugins || {};
adyen.cse.plugins.version = "0_1_18";
@light-bringer
light-bringer / readme
Created December 12, 2017 22:04
Problems faced in developing the model
1. the very first problem was gathering data to train the neural net
@light-bringer
light-bringer / Apps Script pdfToText utility.md
Created February 26, 2018 23:18 — forked from mogsdad/Apps Script pdfToText utility.md
For http://stackoverflow.com/questions/26613809, a question about getting pdf attachments in gmail as text. I got a little carried away - this does much more than asked.

Google Apps Script pdfToText Utility#

This is a helper function that will convert a given PDF file blob into text, as well as offering options to save the original PDF, intermediate Google Doc, and/or final plain text files. Additionally, the language used for Optical Character Recognition (OCR) may be specified, defaulting to 'en' (English).

Note: Updated 12 May 2015 due to deprecation of DocsList. Thanks to Bruce McPherson for the getDriveFolderFromPath() utility.

    // Start with a Blob object
    var blob = gmailAttchment.getAs(MimeType.PDF);
    
@light-bringer
light-bringer / gist:ddf66fc858e0f40577c9722adb983bf0
Last active March 8, 2018 12:03
Install your own app in Heroku!
1. setup git on your computer. Setting up on a linux/mac machine fetches you brownie points.
2. setup heroku CLI on your system.
3. get your github account, send us your username, feteches you brownie points.
4. setup your heroku account, configure it.
5. Setup your python/node.js/java(we may need to provide separate apps for separate environments) environemnt
6. Fork and Clone this repository - https://github.com/heroku/node-js-getting-started (or some deployable easy code)
7. Deploy this app on heroku, obviously we won't say how, the internet is your best friend!
8. Explore the code, and change it to show your name, commit your changes and push them to your github account, send us your github repo link(points)! (figure out how)
9. Deploy the final verion to Heroku.
10. Send us the Deployed URL. (fetches you points)
@light-bringer
light-bringer / main.ts
Created March 15, 2018 09:18 — forked from tablekat/main.ts
Making gmail push notifications to webhook
import * as request from 'request';
import * as fs from 'fs';
import * as readline from 'readline';
var google = require('googleapis');
var googleAuth = require('google-auth-library');
/*************** STEPS
- made a project on https://console.cloud.google.com/cloudpubsub/topicList?project=testmabs thing?