Skip to content

Instantly share code, notes, and snippets.

Avatar
🌐
https://cosmicice.cat

cosmicice catcosmicice

🌐
https://cosmicice.cat
View GitHub Profile
@catcosmicice
catcosmicice / tables
Created May 20, 2021 15:09
Mathematical Diamond Finding Method Tables
View tables
SWAMP_CLAY COAL will work reliably on 62.5% of seeds.
Z offset 7 occurs with probability 0.375068
Z offset 4 occurs with probability 0.249943
Z offset 14 occurs with probability 0.12498
Z offset 11 occurs with probability 0.093544
Z offset 1 occurs with probability 0.0625
SWAMP_CLAY IRON will work reliably on 68.75% of seeds.
Z offset 10 occurs with probability 0.374945
Z offset 11 occurs with probability 0.187534
@catcosmicice
catcosmicice / app.py
Created February 12, 2021 12:27
Flask Chatterbot API (https://ai.bongo.ninja/)
View app.py
import os
from flask import Flask, request, abort, render_template
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
from hurry.filesize import size
import psycopg2 as pg
app = Flask(__name__, template_folder='.')
@catcosmicice
catcosmicice / keybase.md
Created January 18, 2021 12:06
keybase.io/cosmicice
View keybase.md

Keybase proof

I hereby claim:

  • I am catcosmicice on github.
  • I am cosmicice (https://keybase.io/cosmicice) on keybase.
  • I have a public key whose fingerprint is D35C B941 90DC 2310 8968 C855 F28A 2FE4 8F81 E61D

To claim this, I am signing this object:

@catcosmicice
catcosmicice / meme-stealer.md
Last active December 19, 2020 10:23
A Small PowerShell Script to steal meme's
View meme-stealer.md

Meme Stealer

A small PowerShell script to steal meme's from a URL quickly!

Requirements:

  • SSH Access to your server (OpenSSH Private Key)
  • Full permissions to the folder you want to upload meme's to (Root shouldn't be required)
  • A domain to serve meme's from
  • wget installed on your server