Skip to content

Instantly share code, notes, and snippets.

View AndrewJByrne's full-sized avatar

Andrew Byrne AndrewJByrne

View GitHub Profile
@AndrewJByrne
AndrewJByrne / Info-icon.jpg
Last active August 23, 2018 22:58
Compute Flowchart
Info-icon.jpg
@AndrewJByrne
AndrewJByrne / README.md
Last active November 23, 2017 05:43
An image of yours truly

#This is a gist of an image of myself for use in my own pages and sites.

@AndrewJByrne
AndrewJByrne / foo.gif
Last active May 11, 2017 17:58
scratch
foo.gif
@AndrewJByrne
AndrewJByrne / UpdateMinecraft.md
Last active March 27, 2016 01:43
Note to myself on how to update my Minecraft server VM hosted in Azure to use the latest version of Minecraft (1.9)
  1. Log into your server. I use putty
  2. Stop Minecraft sudo stop minecraft-server
  3. Go your your minecraft_server directory
  4. ✋ Rename all .json files to .json.orig. For example, mv ops.json ops.json.orig. These are your current game settings/configuration and you'll want to restore them later on.
  5. ✋ Rename server.properties to server.properties.orig
  6. ✋ Rename the world directory to world.orig. This is very important because it is your original world.
  7. Go to the minecraft site and find the section that mentions server download. Here it is highlighted:
  8. Hover over the link, right-click and select copy shortcut. The link will look something like https://s3.amazonaws.com/Minecraft.Download/versions/1.9/minecraft_server.1.9.jar
  9. Download this version of Minecraft server
@AndrewJByrne
AndrewJByrne / MacBook Tips.md
Last active February 27, 2017 22:24
MacBook Commands

Lock your screen

CTRL+SHIFT+Power

Take a screenshot of a selection

Cmd+SHIFT+4 then rubber band the area you want to capture with your mouse, release and the image will be saved by default as a .png to your desktop.

Cmd+Shift+4+spacebar and select a window will take a screenshot of that window.

Open Force Quit window (so you can terminate a stubborn program)

@AndrewJByrne
AndrewJByrne / ViewModelBase.cs
Last active August 29, 2015 14:12
Shows a simple base class for a ViewModel that implements INotifyPropertyChanged and uses the CallerMemberName attribute to default the name of the property when the PropertyChanged event is raised. Saves some typing and reduces the use of strings coded manually in your ViewModel.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Text;
namespace My.Gists
{
/// <summary>