Skip to content

Instantly share code, notes, and snippets.

View dariusk's full-sized avatar

Darius Kazemi dariusk

View GitHub Profile
@dariusk
dariusk / fibs.md
Created November 4, 2021 17:56
How to play Backgammon via Telnet on FIBS

you log in:

telnet fibs.com 4321

put guest as your username, which will then prompt you to register a user/pass. do that, and you'll be dumped into the main lobby.

type help to get a list of commands, help [command] to get help on the command.

actual helpful documentation is here: http://www.fibs.com/CommandReference/index.html

echo "<!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"utf-8\"> <title>${PWD##*/}</title> <meta charset=\"UTF-8\"> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> <link rel='stylesheet' href='../css/style.css' type='text/css' media='all' /> </head> <body><p><a href=\"..\">&larr; Tiny Subversions</a></p>" > index.html
marked --gfm -i index.md >> index.html
echo "<script src=\"../js/highlight.pack.js\"></script><script>hljs.initHighlightingOnLoad();</script></body></html>" >> index.html
@dariusk
dariusk / friendcamp.md
Last active January 12, 2020 18:49
Friend Camp Info

Some quick things about Friend Camp

from your admin, Darius

  • Friend Camp is compatible with any mobile Mastodon app BUT you will not have friend camp specific features like the ability to post local-only posts just to Friend Camp. For this reason I recommend using the web client (https://friend.camp in your mobile browser) whenever possible.

    • On Android this is fine because Android lets a website send native notifications. Just go to Friend Camp in your browser and choose "add to home screen" from the browser menu. It will behave just like an app and you'll get notifications like normal.
    • On iOS you can pin the website to your home page and it will work great EXCEPT there are no native notifications, so for that reason a lot of users on iOS use other clients like Amaroq or Mast. But I also recommend trying out friend camp without notifications at all! It's nice.
  • Please file bugs with me. Just DM them to me or @ them to me. I will add them to the Friend Camp todo list.

  • We have lots of friend

Keybase proof

I hereby claim:

  • I am dariusk on github.
  • I am dariusk (https://keybase.io/dariusk) on keybase.
  • I have a public key ASAz0a1xSp-pGUyG4_n8dDEROns5q1WsFA2GQbLxNnW7ego

To claim this, I am signing this object:

Some suggestions for Twitter to help devs struggling with the Streaming API deprecation

I'm writing this up in a hurry tonight, apologies if it's a little rambly/ranty. There are a lot of devs out there who have really great apps that rely on the Streaming API and really want to port their apps to webhooks but have no idea how to do it because the technical communication around all this has been scattershot.

-Darius Kazemi, @tinysubversions, 14 May 2018

Make your Securing Webhooks document more helpful

If there is one thing that your team has been clear on, it is this: we need to replace our usage of the Streaming API with the Account Activity API, which uses webhooks. In your Getting Started with webhooks document, the first step is "get your auth keys", which is fine. The second step refers the reader to [Securing webhooks](https://deve

@dariusk
dariusk / recs.md
Created February 23, 2018 17:10
Recommendations for ML5

Recommendations for ML5

Darius Kazemi, Feb 23 2018

After a few days of poking around at ML5 I have some recommendations for making it a healthier open source project. I am, of course, happy to sit down and talk through any of these recommendations in depth, but I thought I'd get them documented first.

Project management

These are project management, rather than technical, recommendations.

@dariusk
dariusk / osascomp.js
Created September 8, 2016 15:25
adjective order lists
var opinion = [
'beautiful', 'sweet', 'pretty', 'gorgeous', 'lovely', 'handsome', 'good', 'better', 'best', 'bad', 'worse', 'worst', 'wonderful', 'splendid', 'mediocre', 'awful', 'fantastic', 'ugly', 'clean', 'dirty', 'wasteful', 'difficult', 'comfortable', 'uncomfortable', 'valuable', 'worthy', 'worthless', 'useful', 'useless', 'important', 'evil', 'angelic', 'rare', 'scarce', 'poor', 'rich', 'disgusting', 'amazing', 'surprising', 'loathesome', 'unusual', 'usual', 'pointless', 'pertinent',
].pick();
var size = [
'large', 'heavy', 'light', 'big', 'small', 'little', 'tiny', 'tall', 'short', 'fat', 'thin', 'slender', 'willowy', 'lean', 'svelte', 'scrawny', 'skeletal', 'underweight', 'lanky', 'wide', 'enormous', 'huge', 'vast', 'great', 'gigantic', 'monstrous', 'mountainous', 'jumbo', 'wee', 'dense', 'weighty', 'slim', 'trim', 'hulking', 'hefty', 'giant', 'plump', 'tubby', 'obese', 'portly',
].pick();
var age = [
'young', 'old', 'baby', 'babyish', 'teenage', 'ancient', 'antique', 'old-fashioned', 'youthful', 'el
@dariusk
dariusk / pinboard.json
Last active September 2, 2016 21:47
pinboard.json
[
{"href":"http://tinysubversions.com",
"description":"Tiny Subversions","time":"2016-09-01T20:23:48Z","shared":"yes","toread":"yes","tags":"readability_import"},
{"href":"http://example.com",
"description":"Example","time":"2016-09-01T22:23:48Z","shared":"yes","toread":"yes","tags":"readability_import"},
{"href":"http://google.com",
"description":"Google","time":"2016-08-31T20:23:48Z","shared":"yes","toread":"yes","tags":"readability_import"}
]
@dariusk
dariusk / 0_reuse_code.js
Created March 11, 2016 19:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dariusk
dariusk / index.js
Created February 20, 2016 19:28
@TinyAssistant
var Twit = require('twit');
var T = new Twit(require('./config.js'));
var wordfilter = require('wordfilter');
var ent = require('ent');
var readability = require('readability-api');
readability.configure({
consumer_key: 'CONSUMER_KEY',
consumer_secret: 'CONSUMER_SECRET'
});