Skip to content

Instantly share code, notes, and snippets.

View IceCruelStuff's full-sized avatar

IceCruelStuff

View GitHub Profile
@IceCruelStuff
IceCruelStuff / index.js
Created November 4, 2019 05:48
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@IceCruelStuff
IceCruelStuff / source_installer.cmd
Last active January 14, 2020 00:09
Steadfast5 Source Installer
@echo off
::
:: ___ _____ ___ __ _ ___ ___ __ _ ___ _____ ____
:: / __|__ __|/ _ \/ _` | \| _|/ _` |/ __|__ __| | __|
:: \__ \ | | | __/ | | | | || _| | | |\__ \ | | |__ \
:: |___/ |_| \___|\__,_|___/|_| \__,_/|___/ |_| |____/
::
:: This program is free software: you can redistribute it and/or modify
:: it under the terms of the GNU Lesser General Public License as published by
@IceCruelStuff
IceCruelStuff / installer.cmd
Last active January 14, 2020 00:08
Steadfast5 release installer
@echo off
::
:: ___ _____ ___ __ _ ___ ___ __ _ ___ _____ ____
:: / __|__ __|/ _ \/ _` | \| _|/ _` |/ __|__ __| | __|
:: \__ \ | | | __/ | | | | || _| | | |\__ \ | | |__ \
:: |___/ |_| \___|\__,_|___/|_| \__,_/|___/ |_| |____/
::
:: This program is free software: you can redistribute it and/or modify
:: it under the terms of the GNU Lesser General Public License as published by
@IceCruelStuff
IceCruelStuff / Tutorial.md
Created February 13, 2020 06:11
A short discord.js tutorial with examples

Discord.js Tutorial - a short tutorial

After this tutorial you are able to code a cool bot with many commands and a level system.

Setup

Did you ever want to write your own bot but you think you are too bad for it or you don't have motivation to do so? Stop thinking that way. Writing discord bots using discord.js is really, really, easy if you know some javascript basics.

In this tutorial we will use some ES6, which makes javascript more powerful. If you have never heard of ES6, I'll explain some stuff whenever I use it. Found a mistake? Just comment.

@IceCruelStuff
IceCruelStuff / proxy.py
Created April 6, 2020 23:22 — forked from scturtle/proxy.py
use opera's built-in VPN as proxy
#!/usr/bin/env python3
import asyncio
from vpn import get_proxy
proxy = port = auth = None
pool = asyncio.Queue(5)
psize = 0
async def process_client(client_reader, client_writer, *, CHUNK=4096):
global psize
Roblox.Hack = {
original: 'missingno',
balance: 0,
initialized: 0,
loading: false,
items: [],
inventoryString: '<li class="list-item item-card ng-scope"><div class="item-card-container"><a class="item-card-link" href="%1" data-ytta-id="-"><div class="item-card-thumb-container"><div ng-hide="item.Product.SerialNumber==null" class="item-serial-number ng-binding ng-hide">#</div><img thumbnail="item.Thumbnail" image-retry="" class="item-card-thumb ng-isolate-scope" src="%2"></div><div class="text-overflow item-card-name ng-binding" title="%6 ">%6 </div></a><!-- ngIf: item.Item.AudioUrl --><div class="text-overflow item-card-creator"><span class="xsmall text-label">By</span> <a class="xsmall text-overflow text-link ng-binding" ng-href="%3" ng-hide="assetsListContent.assetItems.data.Data.PageType!==\'favorites\'&amp;&amp;currentData.category.name==\'Places\'&amp;&amp;(currentData.subcategory.name==\'My VIP Servers\'||currentData.subcategory.name==\'Other VIP Servers\')&amp;&amp;staticData.isOwnPage" href="%3"
<?php
/**
* Quick-and-dirty password generator, fully-commented edition ;)
*
* Author: Abraham Vegh <[email protected]>
*/
// Our password generator, with a default length of eight
function random_password ($length = 8)
{
@IceCruelStuff
IceCruelStuff / README-Template.md
Created September 18, 2020 04:03 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@IceCruelStuff
IceCruelStuff / private_fork.md
Created November 26, 2020 03:26 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@IceCruelStuff
IceCruelStuff / harness.py
Created December 21, 2020 03:05 — forked from phunkyg/harness.py
Minecraft server harness for Python
import subprocess
import time
import threading
import sys
import signal
WD = '/opt/test_server'
SERVERCMD = '. {}/start.sh'.format(WD)