Skip to content

Instantly share code, notes, and snippets.

View CovertCode's full-sized avatar

Prashant CovertCode

View GitHub Profile
@CovertCode
CovertCode / ai-api-pricing.json
Last active October 28, 2025 11:40
ai-api-pricing
[
{
"model": "Mistral Large",
"type": "language",
"input_cost_per_million_tokens": 8.00,
"output_cost_per_million_tokens": 24.00,
"context_length": 32000
},
{
"model": "Mistral Small",
@CovertCode
CovertCode / GoogleDorking.md
Created February 26, 2023 14:19 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@CovertCode
CovertCode / fix-wsl2-dns-resolution
Created January 25, 2023 06:29 — forked from coltenkrauter/fix-wsl2-dns-resolution.md
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@CovertCode
CovertCode / node-console-animation.js
Created January 31, 2022 11:10
Nodejs Console animation
const ora = require('ora');
const { promisify } = require('util');
const delay = promisify(setTimeout);
(async () => {
const spinner = ora('Loading unicorns').start();
await delay(6000);
spinner.text = 'Loading rainbows';
console.log('\nhere');
})();
@CovertCode
CovertCode / node-delay.js
Created January 31, 2022 11:09
nodejs delay
const { setTimeout } = require('timers/promises');
async function delay() {
console.log('start 5s wait');
await setTimeout(5000)
console.log('after 5s');
}
delay()
@CovertCode
CovertCode / nginx-cache.md
Created January 18, 2022 18:52
Clear Nginx Cache

m -rf /var/cache/nginx/

Restart Nginx to reenable caching

@CovertCode
CovertCode / gist:3c33de3dc1bbc6f14e05941b0dcdebc7
Created January 15, 2021 03:59
Download Youtube Video Playlist As MP3
./youtube-dl.exe -i --extract-audio --audio-format mp3 --audio-quality 0 -cit https://www.youtube.com/playlist?list=xxxxxx-tOzxxxxxxxxxxx
@CovertCode
CovertCode / filename_as_date.js
Created December 6, 2020 10:21
[Filaname as date] #node #javascript #filename
console.log(`Process finished....`);
const fs = require('fs')
var date = new Date().toISOString();
console.log(date);
const regex = /:/gi;
var filedate = date.replace(regex, '-')
console.log(filedate);
fs.renameSync('./db.json', `${filedate}.json`)
@CovertCode
CovertCode / sleep.js
Last active December 3, 2020 06:49
[Sleep] #sleep
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
await sleep(2000);
// Nodejs
const { promisify } = require('util');
const delay = promisify(setTimeout);
@CovertCode
CovertCode / gist:742162cf5a12a318f6494ce7a8fbede1
Created November 6, 2020 04:18 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: