Skip to content

Instantly share code, notes, and snippets.

View btarg's full-sized avatar

btarg btarg

View GitHub Profile
@btarg
btarg / clone.sh
Last active January 2, 2018 20:45
Clone/Update BlazeBot shell script (Linux only)
#!/bin/bash
#Delete existing BlazeBot files and clone BlazeBot with Git
sudo rm -r BlazeBot
git clone https://github.com/iCrazyBlaze/BlazeBot
@btarg
btarg / fancy_publish.bat
Created January 15, 2018 18:24
Garry's Mod Addon Publisher Batch Tool
@echo off
title GMA Publisher Batch Tool
cls
echo ------------------------------------------
echo iCrazyBlaze's Garry's Mod Addon Publisher
echo ------------------------------------------
echo.
color C
echo Notice - It's recommended that you run this file from the Garry's Mod bin folder. If you want to run it somewhere else, copy "gmpublish.exe" and "steam_api.dll" into the same directory as this file.
echo You can only upload .GMA files; other filetypes are not supported!!
@btarg
btarg / send_email.py
Last active March 28, 2020 16:38
Send Emails in Python 3
# Send emails in Python, converted for Python 3.6 by iCrazyBlaze
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# Your email details
fromaddr = "your email"
PASSWORD = "your password"
# Email message
@btarg
btarg / make-apk.py
Last active May 7, 2019 10:19
[KALI LINUX] Create shell.APK for Meterpreter and copy it to the Apache server
# Create shell.APK for Meterpreter and copy it to the Apache server
# iCrazyBlaze, 27/02/2018.
import os
print("==============================================")
print("iCrazyBlaze's Meterpreter APK generator v1.0")
print("==============================================")
print("")
@btarg
btarg / mcapi.py
Last active May 7, 2019 10:18
[UPDATED] Get MC UUID from username (for use with APIs like Crafatar)
import requests
import urllib.request
import json
while True:
username = input("Enter username: ")
try:
# Make requests to Mojang API and grab info
data = urllib.request.urlopen("https://api.mojang.com/users/profiles/minecraft/" + username).read()
uuid = json.loads(data)["id"]
@btarg
btarg / backup.sh
Created September 25, 2019 16:20
Minecraft backups for Google Cloud
#!/bin/bash
screen -r mcs -X stuff '/save-all\n/save-off\n'
/usr/bin/gsutil cp -R ${BASH_SOURCE%/*}/world gs://<bucket>/$(date "+%Y%m%d-%H%M%S")-world
screen -r mcs -X stuff '/save-on\n'
@btarg
btarg / updater.sh
Created September 25, 2019 16:40
Minecraft Server update script from Minecraft Wiki
#----------------------------------------
# A shell script for updating the minecraft server jar file on Linux Servers
# Written by: Andrew Haskell
# Updated by: Zukaro Travon
# Last updated on: 2019.Sep.23
# Distributed under The MIT License (MIT)
#
# Dependencies
# cURL For downloading of the manifest and jar files
# jq For parsing the manifests
@btarg
btarg / mc-setup.sh
Last active October 7, 2019 18:55
Google Cloud Minecraft server setup
#!/bin/bash
###########################################################
# Google Cloud Minecraft server setup
# Written by iCrazyBlaze
# Last edited 07/10/2019
###########################################################
path=/home/minecraft/server
backuphours=6
@btarg
btarg / launch.sh
Created September 28, 2019 12:21
Launch Minecraft is Screen virtual terminal
#!/bin/bash
sudo screen -S mcs java -Xms1G -Xmx7G -d64 -jar server.jar nogui
@btarg
btarg / InitMods.cs
Created September 30, 2019 18:09
Mod.io Unity: Load mods
using System.Collections.Generic;
using UnityEngine;
using ModIO;
using System.IO;
public class InitMods : MonoBehaviour
{
public string bundleName = "modbundle";
// Start is called before the first frame update