Skip to content

Instantly share code, notes, and snippets.

View ewized's full-sized avatar

ewized

View GitHub Profile
@ewized
ewized / config.yml
Last active August 29, 2015 14:08
AntiCheat Settings
# AntiCheat configuration file
# Please report any bugs: https://github.com/gravitylow/AntiCheat/issues
xray:
# Should AntiCheat use calculations to try and find xrayers?
check-xray: false
# Should a warning be sent to admins when a person is found that could be xraying?
alert: false
# How often (in seconds) should AntiCheat check for xrayers if alert is true?
alert-interval: 60
# Should players in creative mode be tracked for possible xray usage?
@ewized
ewized / countdown.py
Created October 24, 2014 21:47
Sample code to display the new countdown for MC 1.8 titles
#!/usr/bin/python3
import time
# Center the text with the deli
def center_text(header: str, deli: str, size: int) -> str:
half = int(size / 2 - len(header) / 2)
return deli*half + " " + header + " " + deli*half
# Return True or False if index is in the no no spot
def nono(header: str, size: int, pos: int):
@ewized
ewized / keep_sync.sh
Last active August 29, 2015 14:07
Mirror GitHub repos, when you have oauth access keys set up, this can be set up as a cron job.
#!/bin/bash
# This will keep a list of repositories in sync.
# This is a one way parent -> fork
DATE=$(date -u +%F-%H-%M-%S)
SYNC_FOLDER=keep_sync_folder
KEY=
cd ~
@ewized
ewized / keygen.php
Created September 23, 2014 04:58
Simple md5 encrypt.
<?php
$data = $_POST["data"];
$is_data = isset($data);
?>
<form method="post">
<label> Key
<?php if ($is_data): ?>
<input name="data" type="text" value="<?= md5($data) ?>" size="30" />
<?php else: ?>
<input name="data" type="password" size="30" />
@ewized
ewized / Web Portal
Last active November 1, 2024 19:49
Simple web portal with HTML5, CSS3, and Javascript.
<!DOCTYPE html>
<html>
<head>
<title>Portal Site</title>
<meta name="description" content="Portal Site not Portal"/>
<meta name="keywords" content="Minecraft"/>
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style type="text/css" rel="stylesheet">
body {