Skip to content

Instantly share code, notes, and snippets.

View ryanswanstrom's full-sized avatar
🏠
South Dakota

Ryan Swanstrom ryanswanstrom

🏠
South Dakota
View GitHub Profile
@ryanswanstrom
ryanswanstrom / minecraft-pe-server-install.md
Last active December 16, 2022 17:35
Steps to create a server for Minecraft Pocket Edition
  1. Create an Ubuntu VM in either Azure or AWS or Digital Ocean or somewhere
  2. Open port for the VM on port number 19132. (In Azure, in the Network Security Group, add an Inbound security rule)
  3. remote connect to the VM (Putty will work for this)
sudo apt-get update
sudo apt-get install default-jre

wget http://ci.mengcraft.com:8080/job/nukkit/lastSuccessfulBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar
mv nukkit-1.0-SNAPSHOT.jar nukkit.jar
@ryanswanstrom
ryanswanstrom / UrlCallForPocket.cs
Last active January 22, 2018 04:15
How to setup Pocket for API calls
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace URLCall
{
class Program
import urequests as requests
#common functions
def mb_safe(func):
def _wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as e:
print('===== mb_safe: ' + str(e))
return ''