Skip to content

Instantly share code, notes, and snippets.

View moorthi07's full-sized avatar

PV moorthi07

View GitHub Profile
/*
* Test Code For Hoverboard with this firmware:
* https://github.com/p-h-a-i-l/hoverboard-firmware-hack
*
* Connect the PPM Receiver Data Pin to Arduino Pin 3
* And set the Amount of channels of the PPM Receiver.
* this code uses the Arduino Hardware serial.
*
*/
@moorthi07
moorthi07 / gist:02d724f53e16f51bbbb898f361e7d58e
Created September 6, 2021 02:34
Difference between Chrome devtool vs Firefox devetool
Chrome:
d.js:111 GET https://https/ef.com//api/p_search?query=cat net::ERR_NAME_NOT_RESOLVED
get @ sed.js:111
psearch @ sharedLogic-stripped.js:150
onclick @ create:304
create:1 Uncaught (in promise) TypeError: Failed to fetch
Promise.then (async)
get @ ed.js:119
psearch @ d.js:150
onclick @ create:304
@moorthi07
moorthi07 / Package installs on mac
Last active May 12, 2021 00:57
Package installs on mac
#Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1 node
2 npm
3 git clone https://github.com/moorthi07/Chevakan.git
4 git clone https://github.com/moorthi07/Chevakan.git
5 git clone https://github.com/moorthi07/aibot-react-starter-package.git
6 ssh-keygen -f ~/.ssh/jenkins_agent_key
7 /Users/indo-mars/.ssh/jenkins_agent_key
@moorthi07
moorthi07 / nginx-commands
Created June 20, 2020 18:53
nginx-commands
Site files: /var/www/site/
nginx site config files:root@localhost:/etc/nginx/sites-enabled# 
commands:
sudo chmod -R 0755 /var/www/svffi
egrep "(svm|vmx)" /proc/cpuinfo
 sudo systemctl restart nginx
@moorthi07
moorthi07 / REACT REST Example
Last active January 26, 2019 21:45
REACTJS REST CALL WITH AXIO : UPDATE A SEARCH LIST
//demo.js
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import ListItemText from "@material-ui/core/ListItemText";
import ListSubheader from "@material-ui/core/ListSubheader";
@moorthi07
moorthi07 / nativescript-tns-run-android
Last active December 29, 2017 22:00
nativescript tns run android for Angular app
C:\demo_tutorials\MyApaibot1>tns run android
Searching for devices...
Executing before-liveSync hook from C:\demo_tutorials\MyApaibot1\hooks\before-liveSync\nativescript-angular-sync.js
Copying template files...
\ Installing tns-androidInstalling tns-android
@moorthi07
moorthi07 / dpd server.js
Created November 12, 2017 00:27
dpd server.js
// require deployd
var deployd = require('deployd');
var PORT=2403;
// configure database etc.
var server = deployd({
port: process.env.PORT || PORT,
env: process.env.ENV || 'development',
db: {
@moorthi07
moorthi07 / azure_appservice_errors
Last active October 23, 2017 18:35
appservice azure errors
npm install: @ console : wwwroot:
npm WARN package.json assert@1.4.1 assert is also the name of a node core module.
npm WARN package.json bcrypt-pbkdf@1.0.1 No repository field.
npm WARN package.json buffer@4.9.1 buffer is also the name of a node core module.
npm WARN package.json callsite@1.0.0 No repository field.
npm WARN package.json events@1.1.1 events is also the name of a node core module.
npm WARN package.json has-binary@0.1.7 No repository field.
npm WARN package.json indexof@0.0.1 No repository field.
npm http GET https://registry.npmjs.org/mocha
@moorthi07
moorthi07 / gist:07b19091ee446ceefa431da5a5f86d0a
Created July 10, 2017 06:27
VM10816:1 GET http://localhost:4204/node_modules/ace-builds/src-min/theme-clouds.js
VM10816:1 GET http://localhost:4204/node_modules/ace-builds/src-min/theme-clouds.js
t.loadScript @ VM10816:1
t.loadModule @ VM10816:1
setTheme @ VM10816:1
setTheme @ VM10816:1
set @ directive.ts:85
updateProp @ core.es5.js:10966
checkAndUpdateDirectiveInline @ core.es5.js:10671
checkAndUpdateNodeInline @ core.es5.js:12084
checkAndUpdateNode @ core.es5.js:12052
https://drive.google.com/file/d/0Bw2tQfFAGNE1blNSM1VXVXZBMTQ/view?usp=sharing
https://drive.google.com/open?id=0Bw2tQfFAGNE1NjBOMGFNMWsyVEk