Skip to content

Instantly share code, notes, and snippets.

View twilson63's full-sized avatar

Tom Wilson twilson63

View GitHub Profile
@twilson63
twilson63 / README.md
Last active February 9, 2024 19:59 — forked from ropats16/ao-effect-bot.lua
Arena Debugging

Arena Game

Create a new game process

.load arena.lua

.load ao-effect.lua

.load-blueprint token
import Arweave from "arweave";
import { JWKInterface } from "arweave/node/lib/wallet";
import { LoggerFactory, WarpNodeFactory } from "warp-contracts";
import fs from "fs";
import path from "path";
import ArLocal from "arlocal";
(async () => {
const arlocal = new ArLocal(8080);
await arlocal.start();
const arweave = Arweave.init({
@twilson63
twilson63 / slack-coc.md
Last active October 1, 2021 17:27 — forked from annalee/sample-slack-coc.md
hyper-chat code of conduct

hyper-chat Code of Conduct

Welcome!

hyper-chat slack workspace is for the hyper community, the hyper community is about improving as developers to provide great products and services with anti-fragile developer tools and serivces.

The current admins are:

  • @twilson63
/**
* Campfire plugin for the uptime project - https://github.com/fzaninotto/uptime
*
* This index.js files goes to a directory `plugins/campfire` in your installation of uptime.
*
* Notifies all events (up, down, paused, restarted) to campfire
*
* This plugin has a dependency on `ranger`.
* Add this to the "dependencies" object in your `package.json` file :
*
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html

Install instructions for node-webkit on fedora 19 beta 64 bit

sudo yum install curl -y
curl -O https://s3.amazonaws.com/node-webkit/v0.6.3/node-webkit-v0.6.3-linux-ia32.tar.gz
tar -zxvf node-webkit-v0.6.3-linux-ia32.tar.gz
sudo ln -s /usr/lib64/libudev.so.1 /usr/lib64/libudev.so.0
echo 'export PATH=$PATH:/home/username/node-webkit-v0.6.3-linux-ia32' >> ~/.bashrc
source ~/.bashrc
nw
@twilson63
twilson63 / output.log
Created June 14, 2012 11:52
curl node repl (possibly dangerous?)
josh@onix:/tmp/http-repl$ curl -sSNT. localhost:8000
Actual repl over http. NOW WITH A LIMITED CONTEXT!!
>> help
'Exits are North, South and Dennis.'
>> .exit
Terminal exiting.
You'll want to mash ctrl-c.
^C
josh@onix:/tmp/http-repl$
@twilson63
twilson63 / client.js
Created April 26, 2012 12:10
connecting to a dnode socket.io server from node
var io = require('socket.io-client');
var sock = io.connect('http://localhost:8080');
var dnode = require('dnode');
var Stream = require('stream');
var stream = new Stream;
stream.writable = true;
stream.readable = true;
stream.write = function (buf) {
sock.emit('message', String(buf));
@twilson63
twilson63 / app.coffee
Created April 12, 2012 12:52 — forked from angelochen960/app.coffee
index.coffee
express = require 'express'
routes = require './index'
app = module.exports = express.createServer()
# Configuration
app.configure ->
app.set 'views', __dirname + '/views'
app.set 'view engine', 'jade'
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bash_profile
. ~/.bash_profile
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-v0.2.3.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl http://npmjs.org/install.sh | sh