Skip to content

Instantly share code, notes, and snippets.

View rvvvt's full-sized avatar
💭
hail, traveler.

rvvvt rvvvt

💭
hail, traveler.
View GitHub Profile
@rvvvt
rvvvt / ajax-JSON.js
Created February 25, 2023 20:12 — forked from Jiantastic/ajax-JSON.js
All about AJAX and JSON
// Learn all about AJAX - post on public github
// first, the vanilla JavaScript approach ( before jQuery )
// initialise new XMLHttpRequest() object
var xhr = new XMLHttpRequest();
// check if AJAX request is completed
// state 4 = completed request
xhr.onreadystatechange = function(){
if(xhr.readyState === 4){
@rvvvt
rvvvt / scrappe.js
Created February 16, 2023 16:00 — forked from KMurphs/scrappe.js
Save JS Object as file from DevTools
/**
* Given some Javascript object, the function will have the browser download it as a
* json file (exactly like if it was downloaded from some server).
* The content of the file downloaded by the browser would be the "data" object input.
* One could also pass a name for the file to be downloaded to the function.
* References:
* - https://www.freecodecamp.org/news/how-to-use-the-browser-console-to-scrape-and-save-data-in-a-file-with-javascript-b40f4ded87ef/
* - https://github.com/edubey/browser-console-crawl/blob/master/single-story.js
* @date 2021-06-18
* @param {object} data
@rvvvt
rvvvt / Service KMS
Created January 11, 2023 03:02 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
# Usage: ./dns_check.py <list_of_domain_names.txt>
import dns.resolver
import requests
import re
import json
import sys
resolver = dns.resolver.Resolver()
resolver.timeout = 5
resolver.lifetime = 5
@rvvvt
rvvvt / CheckGmailExists.txt
Created December 8, 2022 22:02
Validate email GMAIL
#!/usr/bin/python
import sys
import argparse
from multiprocessing.dummy import Pool as ThreadPool
from functools import partial
import requests
def check(email, verbose = 'no'):
url = "https://mail.google.com/mail/gxlu?email={0}".format(email)
r = requests.get(url)
@rvvvt
rvvvt / index.js
Created February 2, 2022 03:41 — forked from arnoclr/index.js
Instagram JS images scraper by tag
const IMAGES_NUM = 250
let imgSrcs = new Set()
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function appendImages() {
var imgs = document.getElementsByTagName("img")
@rvvvt
rvvvt / generate-ssh-key.sh
Created March 23, 2021 04:42 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@rvvvt
rvvvt / Engine.cs
Created February 24, 2021 02:21 — forked from andrewpisula/Engine.cs
A Proxy Scraper created by mysterious.
using System;
using System.Net;
using System.Text.RegularExpressions;
namespace Proxy_Scraper
{
class Engine
{
public static string ScrapeProxies()
{
@rvvvt
rvvvt / Method2.cs
Created February 23, 2021 22:43 — forked from vainolo/Method2.cs
public static void Scrape()
{
var scraper = new HtmlWeb();
var page = scraper.Load("https://vainolo.z14.web.core.windows.net/WebScraping.html");
var nodes = page.DocumentNode.Descendants().SkipWhile(e => e.Id != "Techniques").Skip(1).TakeWhile(e => e.Name != "h2");
foreach (var currNode in nodes)
{
if(currNode.GetClasses().Contains("mw-headline"))
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Screenshotter : MonoBehaviour {
public TextMesh text;
public void Awake() {
float r = 1, g = 1, b = 1;
// Read r, g and b parameters passed into the query as <URL>?r=0.5?g=0?b=0.1