Skip to content

Instantly share code, notes, and snippets.

View CovertCode's full-sized avatar

Prashant CovertCode

View GitHub Profile
var express = require('express');
var Note = require('../models/notes');
var router = express.Router();
var mongoose = require('mongoose')
var apiKeys = require('../models/apikeys');
router.get('/:key', function (req, res, next) {
var apiKey = req.params.key;
if (apiKey !== '1234') {
res.status(401).json('False API Key');
@CovertCode
CovertCode / tele.py
Created September 2, 2019 17:07
Tele
import pyautogui
userList = ['@Goltak1993','@AzGrman','@Jshshsho','@Cryptofuture86','@ghiezqi13','@Bddbdbg','@goli5378','@gokhanbayar','@Mariagul','@Alex8656','@Glayba','@mishagaltsev','@GrowithJune','@gunjan5kumat','@jekigagak','@jom09']
locationGroup = [834,216]
pyautogui.click(locationGroup)
pyautogui.PAUSE = 2
locationGroupTab = [1101,90]
pyautogui.click(locationGroupTab)
const pupptier = require("puppeteer");
const px01 = require("./px01");
const px02 = require("./px02");
const px03 = require("./px02");
const px04 = require("./px02");
const px05 = require("./px02");
const px06 = require("./px02");
const px07 = require("./px02");
const px08 = require("./px02");
const px09 = require("./px02");
@CovertCode
CovertCode / app.js
Last active September 17, 2019 17:14
const pupptier = require("puppeteer");
const px01 = require("./px01");
const px02 = require("./px02");
const px03 = require("./px02");
const px04 = require("./px02");
const px05 = require("./px02");
const px06 = require("./px02");
const px07 = require("./px02");
const px08 = require("./px02");
const px09 = require("./px02");
@CovertCode
CovertCode / px01.js
Created September 17, 2019 17:13
px01 to px10
const puppeteer = require("puppeteer");
const VISIT_URL = "https://website.com/";
const botRun = {
initialize: async (proxyList, myDevice) => {
var proxyID = (await "--proxy-server=") + proxyList;
console.log(`Current Proxy: ${proxyList}`);
bash create_ocean_reports_database_v2.sh
+ '[' false = true ']'
+ '[' true = true ']'
+ '[' false = true ']'
+ psql -c 'create database ocean_reports'
" to address: Name or service not knowncalhost
+ export PGDATABASE=ocean_reports
+ PGDATABASE=ocean_reports
+ '[' false = false ']'
+ '[' true = true ']'
+ '[' false = true ']'
+ '[' true = true ']'
+ '[' false = true ']'
+ psql -c 'create database ocean_reports'
ERROR: database "ocean_reports" already exists
+ export PGDATABASE=ocean_reports
+ PGDATABASE=ocean_reports
+ '[' false = false ']'
+ '[' true = true ']'
+ psql -c 'create schema nonspatial'
fname = req.body.namefirst;
lname = req.body.namelast;
email = req.body.email;
address = req.body.addressaddr1;
city = req.body.addresscity;
state = req.body.addressstate;
zip = req.body.addresszip;
country = req.body.addresscountry;
phoneNumber = req.body.phone;
const express = require("express");
const bodyParser = require("body-parser");
const cors = require("cors");
const path = require("path");
const port = 3004;
const app = express();
const postListRoute = require("./controller/postList");
const homeController = require("./controller/singlePost");
router.get("/:xxxx", async (req, res) => {
let postPath = `/${xxxx}/${xxxx}/${title}`;
let postByURL = `.....`;
await axios
.get(postByURL)
.then(response => {
let {
......