Skip to content

Instantly share code, notes, and snippets.

View rujmah's full-sized avatar
👨‍🚀
Looking to the future

Robin Mayfield rujmah

👨‍🚀
Looking to the future
View GitHub Profile
@rujmah
rujmah / gist:db1c41d5341e4d66f30190b07d4541cf
Created November 28, 2023 12:03 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@rujmah
rujmah / random_passwords.md
Last active April 21, 2023 13:54
random passwords

Generate Random Passwords

Some command line tools and techniques for generating random strings.

openssl rand -base64 64
# cGuDXUoShzLaAgQSf7TX0trpQ6CtWD5u0VpGyBvGeuoYwFGDs+ZRLIP+TIFGyOln
# 3LYbPyKlHxkLfhiUKgCUSQ==
@rujmah
rujmah / rails_with_rspec_mongoid.md
Last active March 4, 2023 14:59
Quick setup for rails/rspec/mongoid spec_helper

dev bit of Gemfile

group :development, :test do
  gem "rspec-rails"
  gem 'capybara'
  gem 'factory_girl_rails'
  gem 'forgery'
  gem "database_cleaner"
  gem "mongoid-rspec"
@rujmah
rujmah / setup-kong.sh
Created November 18, 2022 10:50
Kong & kubectl Env Settings setup script
#!/bin/env bash
set -e
RED="\e[31m"
GREEN="\e[32m"
YELLOW="\e[33m"
ENDCOLOR="\e[0m"
CLUSTER_NAME=$1
@rujmah
rujmah / README.md
Last active May 22, 2022 17:47
Flutter Firebase config

Configure Flutter IOS and Android app with Firebase

This Gist hopes to document my efforts to try and get past the Firebase Setup Step of the Fireship.io Flutter course and to understand Flutter and Fireship

From Step 3 of CodeLab Firebase get to know Flutter

Prerequisites

@rujmah
rujmah / App.js
Last active February 22, 2022 13:53
Quick and yucky vanilla code to test CRA react app
import { useState } from "react";
const App = () => {
const [onOffStatus, setOnOffStatus] = useState(false);
return (
<div className="App" style={{ margin: "1rem" }}>
<header className="App-header">
<h1>Seriously, this is a React App</h1>
</header>
<main>
<div
@rujmah
rujmah / get_aws_instances_example.js
Created September 15, 2020 15:49
Quick example of getting EC2 instance ids with JS async await
const AWS = require('aws-sdk')
AWS.config.update({region: 'eu-west-1'})
const ec2 = new AWS.EC2()
const inst = ec2.describeInstances().promise()
async function main(){
const result = await inst
@rujmah
rujmah / authmongoid.md
Created April 17, 2012 16:35
Mongoid implementation for authentication from scratch

Mongoid implementation of Ryan Bates authentication-from-scratch lesson on Railscasts.

Also uses 'username' rather than 'email' for validation

Commandline:

rails new authmongoid -O
cd authmongoid/

Gemfile:

@rujmah
rujmah / .gitignore
Last active December 30, 2019 09:59 — forked from octocat/.gitignore
Some common .gitignore configurations
.vscode/
tmp/
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
@rujmah
rujmah / setup_howto.md
Last active October 25, 2019 16:06
Setting up Vagrant for Node.js development

##Setting up Vagrant for Node.js development

These are instructions for an internal project setup for node.js development in the same enviromment regardless of host OS. Some items may be specific to our project and internal processes, but I put it here as a starting point for others or help to setting up your own OS.

There is an internal postinstall.sh on install of the vagrant box mentioned here, but I prefer to roll my own and outline the essential steps so that other can input the items that they require.

###Setting up Vagrant box

  • Install VirtualBox
  • Download and install Vagrant
  • Follow the instructions for creating an ubuntu 'precise32' vagrant box on the 'Getting Started' page (really quick)