Skip to content

Instantly share code, notes, and snippets.

@BatteryAcid
BatteryAcid / apple-app-site-association
Created October 11, 2021 18:06
apple-app-site-association file for enabling Universal Links in your app. Note there's no file extension.
{
"applinks":
{
"apps": [],
"details": [
{
"appID": "YOUR_APP_ID.YOUR_APP_BUNDLE_ID",
"paths": ["*"]
}]
}
@BatteryAcid
BatteryAcid / GameLIftPolicyActions.js
Created March 11, 2021 20:06
GameLIft policy to allow for searching and creating game sessions as well as creating player sessions.
{
"Effect": "Allow",
"Action": [
"gamelift:StartGameSessionPlacement",
"gamelift:DescribeGameSessionPlacement",
"gamelift:StopGameSessionPlacement",
"gamelift:CreatePlayerSession",
"gamelift:CreatePlayerSessions",
"gamelift:DescribeGameSessions",
"gamelift:SearchGameSessions",
// javac Test.java
// java Test
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Test {
public static void main(String args[]) {
@BatteryAcid
BatteryAcid / GameSession.cs
Created July 26, 2020 17:46
Unity + Amazon GameLift Part 3: Integrate GameLift with your project
// Reference for YouTube tutorial Unity + Amazon GameLift Part 3: Integrate GameLift
// https://youtu.be/1U5A01JuDJ0
using System;
using UnityEngine;
using Aws.GameLift.Realtime.Types;
using Amazon;
using Amazon.Lambda;
using Amazon.Lambda.Model;
using Amazon.CognitoIdentity;
@BatteryAcid
BatteryAcid / lambdaClientService.js
Last active October 26, 2021 14:28
Unity + Amazon GameLift setup in web console Part 2 snippets
// Example Lambda Client Service for Realtime Server example
// Original source: https://aws.amazon.com/blogs/gametech/creating-servers-for-multiplayer-mobile-games-with-amazon-gamelift/
// Contains @BatteryAcid's edits to accompany video Unity + Amazon GameLift setup in web console
// https://youtu.be/WaAZyqgkXDY
//const uuid = require('uuid');
const {"v4": uuidv4} = require('uuid');
const AWS = require('aws-sdk');
const GameLift = new AWS.GameLift({region: 'us-east-1'});

How to create a whisper macro in WoW

  1. Hit Macro on the game menu:

Macro view

  1. Hit New

New Macro