Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Aman Bansal khanakia

🎯
Focusing
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>
</div>
</section>
@khanakia
khanakia / mongo_ubuntu.md
Last active Nov 22, 2019
Mongodb on Ubuntu 18
View mongo_ubuntu.md
@khanakia
khanakia / install_nodejs.sh
Last active Nov 22, 2019
Install Node.js Ubuntu
View install_nodejs.sh
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
## For Older Version you can use
curl -sL https://deb.nodesource.com/setup_12.x | 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
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: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"globals" : {
@khanakia
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)
console.log(ReactDOMServer.renderToString(App()))
@khanakia
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) ...