A site for random web experiments

You'll find random tools and documentation here, including slack integrations and random pieces of code.

Frinkiac Slack Command

A Slack command integration that searches the Frinkiac database

More..

Slack against humanity: CAH Slack Integration

A Slack command that generates CAH style cards

More..

Giphy Passphrase Generator

Generate long random pass phrases and memorise them with Giphy images

More..

Frinkiac Slack Command

The Frinkiac Slack Integration allows you to search the frinkiac database within slack. Currently it's not added to the Slack APPs database and is only available via custom intgration using the slash commands app.

Credit is due to the Simpsons creators and the frinkiac creators. I've just written some plumbing to link Slack and all their good works.

USAGE:

To add /frinkiac for your Slack team:

  1. Add the app 'Slash Commands'
  2. Go to the configuration page for the app and click 'Add Configuration'
  3. Enter the command as /frinkiac
  4. Enter the following settings:
    URL: "https://api.moochers.org/slack-frinkiac.php"
    Customize Name: "frinkiac"
    Tick 'Show command in the autocomplete list'
    Description: "Search frinkiac from Simpsons images"
    Usage hint: "[preview;] search text [;meme text]"
    Descriptive Label: "Preview to see a private list of 5 images with options to show a specific one"			
  5. Click 'Save Integration'
  6. You should now be able to use /frinkiac in slack! Glayvin!

Want Morbotron as well?

If you'd like to integrate Morbotron as well. The usage and setup is identical to above, except change all references from 'frinkiac' to 'morbotron'.

Slack against humanity: CAH Slack Command

This slack command allows you to generate Cards Against Humanity style cards within slack with your own custom text. The text also gets stored in a database for use in fetching random cards with the /cah random command.

Credit for the original idea goes to the Cards Against Humanity crew.

USAGE:

To add /cah for your Slack team:

  1. Add the app 'Slash Commands'
  2. Go to the configuration page for the app and click 'Add Configuration'
  3. Enter the command as /cah
  4. Enter the following settings:
    URL: "https://api.moochers.org/slack-cah.php"
    Customize Name: "Slack CAH"
    Tick 'Show command in the autocomplete list'
    Description: "Create and get random custom CAH cards"
    Usage hint: "/cah help; /cah white [text]; /cah random;"
    Descriptive Label: "Create and get random custom CAH cards"          
  5. Click 'Save Integration'
  6. You should now be able to generate CAH cards using /cah in slack!

Just want to generate CAH cards?


http://api.moochers.org/cah-image.php?c={{card.type}}&text={{card.text}}

Want to see all the cards in the DB?

... Incidentally, do you want bulk blank CAH cards?

Nerds Against Humanity discusses this issue at their site and provides good instructions on how to do this. Looks like you can get 54 blanks for about 16 bucks US a pack. Pretty neat.

Unfortunately the formatting of the page is a bit terrible so here is the cleaned up version of the instructions:

  1. Go here: http://www.printerstudio.com/personalized/custom_playing_cards_blank_cards.html. These are 63 x 88mm custom cards. That is the size of regular CAH cards.
  2. Select "Premium 310gsm (linen)" for the card quality. These will have the same texture as regular CAH cards.
  3. Select the total number of the color of card you are working on. (You will have to do white cards and black cards separately, unfortunately.)
  4. Click "Personalize it".
  5. Under "Color Background & Text", click "same message". This is for the blank fronts of your cards.
  6. Click "next step". You will then see the screen where you add the text to the card.
  7. Click "add text". Type "Cards Against Humanity". Font: Arial Black. Pick the black color swatch. Size: 9 px. Position the text at the very bottom of the card.
  8. Click "next step". Now you will design the backs.
  9. Under "Color Background & Text", click "same message".
  10. Drag the black square from the color swatches over to the card only if you are designing black cards now, otherwise, leave blank.
  11. Click .next step..
  12. Click .add text.
  13. Type: Cards Against Humanity just like that in the text box. Pick the right text color for contrast, and Arial Black (or Arial Bold) for the Font. For size, I chose 38 px, and adjusted it so the words were near the top of the card. (It won.t look exactly like a real CAH card, but it will be pretty close.)
  14. When you click .next step., it will bring you to a preview page full of cards that have a big .Cards Against Humanity. on the back, and a tiny one on the front. If you don.t like how it looks, go back and change it. Make it say whatever you want; these are your cards.
  15. At this point, you can either .add to saved projects. or .add to cart.. If you're happy with it, do it again for the other color of cards. Don't forget to check the box saying you have the rights to do this. (You do. Creative Commons license. Just don't turn around and sell them. That would be shitty.)

That's it! You can get as many as 252 cards in one deck if you have a serious commitment to making your own cards and want them to look really nice.
*If anyone has any problems using these instructions, please let me know and I will fix them. I wrote them very late at night.
**I have no affiliation with printerstudio.com. They just have a decent price for this quality of card. I am an independent photographer and graphic designer who apparently has way too much time on her hands.

Giphy Passphrase Generator

Historical reasons have encouraged us to use short difficult to remember random strings of words. Which are relatively easy to crack. XKCD bought up this issue in this comic here.

Based on this, I created a passphrase generator that builds XKCD style passwords and pairs them with a random Giphy image to improve recall. However a word of warning the generation of PWDs here does not use a true random algorithm and also sends all the words to Giphy. Use it at your own risk.

Generate Me a Random Passphrase