Some command line tools and techniques for generating random strings.
openssl rand -base64 64
# cGuDXUoShzLaAgQSf7TX0trpQ6CtWD5u0VpGyBvGeuoYwFGDs+ZRLIP+TIFGyOln
# 3LYbPyKlHxkLfhiUKgCUSQ==
# 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! |
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"
#!/bin/env bash | |
set -e | |
RED="\e[31m" | |
GREEN="\e[32m" | |
YELLOW="\e[33m" | |
ENDCOLOR="\e[0m" | |
CLUSTER_NAME=$1 |
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
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 |
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 |
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:
.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 |
##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
'precise32'
vagrant box on the 'Getting Started' page (really quick)