Skip to content

Instantly share code, notes, and snippets.

@ThomasTheFourth
ThomasTheFourth / gist:8d2aa12edfeb72773492cfbc3de96962
Last active August 13, 2019 18:17
How to install Synchronet on a new Ubuntu 18.04 install - tested on Digital Ocean droplet
Install Synchronet:
apt-get update
apt-get install make g++ linux-libc-dev libncurses5-dev libnspr4-dev cvs libcap2-dev gdb zip unzip lrzsz gkermit dosemu pkg-config python
mkdir /sbbs
cd /sbbs
wget 'http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/install/GNUmakefile'
make install SYMLINK=1 DOSEMU=1
export SBBSCTRL=/sbbs/ctrl
echo 'export SBBSCTRL=/sbbs/ctrl' >> ~/.bashrc
@ThomasTheFourth
ThomasTheFourth / gist:4b41e1c3a25194e73ee49c82dad5b6e4
Created September 18, 2020 14:39
es6 to retrieve a random card from any list on a Trello board
let key='';
let token='';
let boardid='';
fetch('https://api.trello.com/1/boards/' + boardid + '/lists?key=' + key + '&token=' + token + '')
.then(response => response.json())
.then(data => {
randomList = data[Math.floor(Math.random()*data.length)];
console.log(randomList);
fetch('https://api.trello.com/1/lists/' + randomList.id + '/cards?key=' + key + '&token=' + token + '')
.then(response => response.json())