Skip to content

Instantly share code, notes, and snippets.


Aman Bansal khanakia

View GitHub Profile
View product4.txt
<section class="sectionArticle border-bottom">
<div class="container">
<h1 class="entry-title" itemprop="headline" style="text-align: center;">We Help Purpose-Driven Entrepreneurs<br>
To Change The World</h1>
<p style="text-align: center;">Tenbulls strives to help small business owners to live their passion and designing their life on their terms.<br>
We provide our customers with first-class web design support to build your brand online so you can focus on the things you love.</p>
khanakia /
Last active Nov 22, 2019
Mongodb on Ubuntu 18
khanakia /
Last active Nov 22, 2019
Install Node.js Ubuntu
sudo apt-get install curl
curl -sL | sudo -E bash -
## For Older Version you can use
curl -sL | sudo -E bash -
sudo apt-get install nodejs
## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
khanakia / profiles.json
Created Nov 14, 2019
Windows Terminal Preview Profile.json
View profiles.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
"$schema": "",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"globals" : {
khanakia / index.js
Last active Mar 31, 2019
Render React.js Component from CommonJs File
View index.js
const React = require('react')
var ReactDOMServer = require('react-dom/server')
const _app = require("./public/dist/admin/main.cjs")
var App = React.createFactory(_app)
khanakia / mysql_connection.cpp
Last active Feb 23, 2018
Connection To Mysql using mysql.h in C++ in Mac OSX
View mysql_connection.cpp
By Default g++ uses clang compiler which comes with Xcode which is not a genuine compiler so you need to reinstall to have genuine compiler for g++
You can check version with g++ --version
1. Install macports using brew
2. sudo port selfupdate
3. sudo port install gcc46
4. sudo port select --set gcc mp-gcc46
5. Now check again gcc --version it should Say (gcc (MacPorts gcc46 4.6.4_11) 4.6.4) ...