Skip to content

Instantly share code, notes, and snippets.

@sentanos
sentanos / uwctcequiv.js
Last active June 23, 2022 03:56
Outputs a compiled list of all UW and Washington Community College course equivalencies
const axios = require("axios");
const cheerio = require("cheerio");
const fs = require("fs");
const { stringify } = require('csv-stringify/sync');
const OUTPUT_FILE = "./mappings.csv";
const MASTER_LIST_URL = "https://admit.washington.edu/apply/transfer/equivalency-guide";
const ROOT_URL = "https://admit.washington.edu";
const getColleges = async (url) => {
@sentanos
sentanos / beemovie-fixed.txt
Last active May 14, 2024 05:28
The entire bee movie script but fixed
According to all known laws
of aviation,
there is no way a bee
should be able to fly.
Its wings are too small to get
its fat little body off the ground.
// Login manually through a browser and copy your .ROBLOSECURITY cookie
// Create a file "cookie" with the content: {"cookie": "PASTE COOKIE HERE"}
// After that you can use the function below and you will not have to manually login again
const rbx = require('roblox-js');
const fs = require('fs');
const cookieFile = './cookie';
const cookie = JSON.parse(fs.readFileSync(cookieFile)).cookie;
rbx.options.jar.session = cookie;
const relog = () => {
// This uses headless chrome to imitate a browser in an attempt to bypass "invisible" funcaptcha
// Note that Roblox is aggressively blocking IPs from cloud services like GCP and even VPS providers
// If your server uses a service like that it might be blocked and will be given captcha no matter what
// If you are given captcha this will fail by timeout
const puppeteer = require('puppeteer');
const rbx = require('roblox-js');
const username = 'username';
const password = 'password';
@sentanos
sentanos / login.js
Created March 7, 2017 01:26
Alternate login API
// Includes
var http = require('./http.js').func;
var options = require('../options.js');
var settings = require('../../settings.json');
var clearSession = require('./clearSession.js').func;
// Args
exports.required = ['username', 'password'];
exports.optional = ['jar'];
// Dependencies
var Promise = require('bluebird');
var parser = require('cheerio');
// Includes
var http = require('./util/http.js').func;
var getRoles = require('./util/getRoles.js').func;
var getRole = require('./util/getRole.js').func;
var promise = require('./util/promise.js');
var getVerificationInputs = require('./util/getVerificationInputs.js').func;