Skip to content

Instantly share code, notes, and snippets.

@AlJohri
AlJohri / Red Alert 3 Setup.md
Last active Jun 5, 2021
Instructions to set up optimal Red Alert 3 playing experience
View Red Alert 3 Setup.md

Red Alert 3 Setup

This is a highly opinionated guide helping you set up the "optimal" Red Alert 3 gaming experience. This install will allow you to:

  1. Play the game online using C&C:Online (Revora).
  2. Play the game over LAN using Hamachi VPN (LogMeIn).
  3. Enable use of a second monitor while playing instead of a black screen.
  4. Allow Zoom video chat overlay on top of the game.

Setup

View allocate_alb_rule_priority.py
# Source: https://stackoverflow.com/questions/50003378/automatically-set-listenerrule-priority-in-cloudformation-template
import random
import uuid
import traceback
import boto3
# Member must have value less than or equal to 50000
ALB_RULE_PRIORITY_RANGE = 1, 50000
View down-ballot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlJohri
AlJohri / # pup - 2020-04-13_12-31-39.txt
Created Apr 13, 2020
pup on Ubuntu 18.04.2 LTS - Homebrew build logs
View # pup - 2020-04-13_12-31-39.txt
Homebrew build logs for pup on Ubuntu 18.04.2 LTS
Build date: 2020-04-13 12:31:39
View outlook_ical_sync.js
#!/usr/bin/osascript -l JavaScript
/*
Usage: ./extract.jxa
Outlook Object Model: https://docs.microsoft.com/en-us/office/vba/api/overview/outlook/object-model
*/
ObjC.import("stdlib");
SystemEvents = Application("System Events");
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View batch.sh
#!/bin/bash
set -e
REPOSITORY=$(basename $(realpath $(dirname "$0")))
VCPUS=16
MEMORY=$(expr 1024 \* 32)
COMMAND='[]'
JOB_QUEUE=default
View ner.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View stream_s3_deflate.py
import io
import csv
import zlib
import boto3
from tqdm.auto import tqdm
s3 = boto3.resource('s3')
def iterable_to_stream(iterable, buffer_size=io.DEFAULT_BUFFER_SIZE):
"""
View lambda_calculus.py
# the switch
def LEFT(a):
def f(b):
return a
return f
def RIGHT(a):
def f(b):
return b