Skip to content

Instantly share code, notes, and snippets.

View catwell's full-sized avatar

Pierre Chapuis catwell

View GitHub Profile
@aseemk
aseemk / README.md
Last active February 14, 2018 16:41
A bookmarklet for "selecting all" (technically, "toggling all") checkboxes on the Amazon AWS S3 console.
anonymous
anonymous / untrusted-lvl5-solution.js
Created July 26, 2015 17:30
Solution to level 5 in Untrusted: http://alex.nisnevich.com/untrusted/
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
anonymous
anonymous / untrusted-lvl6-solution.js
Created July 26, 2015 17:36
Solution to level 6 in Untrusted: http://alex.nisnevich.com/untrusted/
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
anonymous
anonymous / untrusted-lvl7-solution.js
Created July 26, 2015 17:42
Solution to level 7 in Untrusted: http://alex.nisnevich.com/untrusted/
/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
@ericwbailey
ericwbailey / twitter.css
Last active September 18, 2023 19:09
Stylus tweaks to fix Twitter's desktop web UI. #twitter #stylus
/*
* LOGO
*/
[aria-label="Twitter"] {
display: none;
}
/*
* LEFT COLUMN

Let's see how to post a message with a Slack bot, using Bearer.sh.

Steps

  1. Create a custom API on Bearer.sh dashboard (learn how here).
  2. Use the configuration below for that custom API
  3. Create a Slack bot on Slack (link)
  4. Register the Bot API Key on Bearer (it starts with xoxb-...)
  5. Post to a channel using the snippet below

Various search databases and backends as alternatives to Elasticsearch.

Rust