Skip to content

Instantly share code, notes, and snippets.

View itslukej's full-sized avatar
🥑

Luke James itslukej

🥑
View GitHub Profile
DISCORDBOTS.ORG TERMS OF SERVICE AGREEMENT
Discord, The Discord Logo, and other items are trademarks of Hammer & Chisel, Inc. By using Discord Bot List, www.discordbots.org, or any other products, services, or items offered by discordbots.org and/or its affiliates or partners, you agree to the following terms of service document in it's entirety.
By using logging in using Discord, you agree to Discord’s Terms of Service, Privacy Policy, and any other agreements offered by Hammer & Chisel, Inc. Discord Bot List, discordbots.org or its affiliates reserve the right to modify these terms of service as well as the Privacy Policy at any time without prior or former notice. Discord Bot List, discordbots.org or its affiliates reserve the right, to, at any time, for any reason, whether in violation of the terms or not, to remove content, ban a user, terminate an account, or any other actions in relation to the prior actions listed. By using www.discordbots.org you must be 13 years of age or older. Using services
const Stream = require('stream');
const https = require('https');
const http = require('http');
const URL = require('url');
/**
* Resumable stream via a Stream PassThrough
* @param {string|URL} url Input url
* @param {stream.Transform} [output=stream.PassThrough] Output stream
* @param {Object} [meta] Meta information to pass between stuff
File Hosting Terms of Service:
1. You must abide by the following limitations while uploading to RATELIMITED.
- No illegal, harmful, offensive, or fraudulent content
- No copyrighted content or content that miapproapriates the IP of others
- No viruses/malware/computer harming things
- No child pornography or jail bait
2. Your key MUST stay private unless you ask me before giving it out/creating a public service using it.
3. No attempting to break/DDoS the upload/CDN servers.
4. Don't spam uploads. (no limits are enforced except for filesize and count, just be nice and don't give me a huge data storage bill).
const snekfetch = require('snekfetch');
const EventEmitter = require('events');
const BASE_URL = 'http://discoin.sidetrip.xyz';
const endpoints = {
transactions: '/transactions',
transaction: '/transaction'
};
class DiscoinError extends Error {
@itslukej
itslukej / dbots.js
Created February 13, 2018 23:36
A script to grab all bots from discordbots.org
const superagent = require('superagent');
const bots = [];
(async () => {
for(let off = 0; off < 100; off++) {
const r = await superagent.get(`https://discordbots.org/api/bots?offset=${off*50}&limit=50`);
// Sort through bots
for(let botScraped of r.body.results) {
const bot = {
discord_id: botScraped.id,
@itslukej
itslukej / domains.js
Last active May 6, 2019 01:40
Find the shortest domains on park.io
const tlds = ['io', 'ly', 'to', 'me', 'pro', 'red', 'sh', 'ac', 'vc', 'gg', 'je', 'mn', 'bz', 'ag', 'sc', 'lc'];
const superagent = require('superagent');
const cheerio = require('cheerio');
const word = require('check-word')('en');
function getUrl(tld, page = 1) {
return `https://park.io/domains/index${tld == 'io' ? '' : `/${tld}`}/page:${page}`;
}
@itslukej
itslukej / zws.im.sxcu
Created June 16, 2019 23:03
ZWS.IM ShareX custom uploader
{
"Version": "12.4.1",
"Name": "zws.im",
"DestinationType": "URLShortener",
"RequestMethod": "GET",
"RequestURL": "https://us-central1-zero-width-shortener.cloudfunctions.net/shortenURL",
"Parameters": {
"url": "$input$"
},
"URL": "https://zws.im/$json:short$"

Keybase proof

I hereby claim:

  • I am itslukej on github.
  • I am lukeuke (https://keybase.io/lukeuke) on keybase.
  • I have a public key ASCEXV66t2aXSQiQkw9y-XlGLqXMMPZHB8YRmmmEBVMfoAo

To claim this, I am signing this object:

@itslukej
itslukej / ksoft_scrape.js
Last active January 22, 2020 14:35
Proof of Concept to scrape lyrics from KSoft.Si's upcoming lyrics pages
const puppeteer = require('puppeteer');
async function getLyrics(url) {
const browser = await puppeteer.launch({ headless: false });
const [page] = await browser.pages();
await page.setRequestInterception(true);
page.on('request', request => {
if (request.resourceType() === 'script')
@itslukej
itslukej / index.js
Created February 4, 2020 15:49
Protobuf test
const protobuf = require('protobufjs');
const sizeof = require('object-sizeof');
protobuf.load("invite.proto", (err, root) => {
const Invite = root.lookupType("prototest.Invite");
const payload = {
code: 'vexera',
guild_id: 228838562500575233n,
guild_name: 'Vexera Official',