This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================= | |
| # 2501-infra CLI Installer | |
| # ============================================================================= | |
| # Install the 2501 on-prem infrastructure CLI from AWS ECR | |
| # | |
| # Usage: | |
| # curl -fsSL https://2501.ai/install-cli-infra.sh | bash | |
| # | |
| # Requirements: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| J’ai envie de vous raconter une très vieille histoire à propos d’un homme qui ne croyait pas à l’amour. C’était quelqu’un d’ordinaire, comme vous et moi, mais ce qui le distinguait était sa manière de penser. Il pensait que l’amour n’existe pas. Bien sûr, il avait fait de nombreuses expériences pour tenter de trouver l’amour, et il avait bien observé les gens autour de lui. La plus grande part de sa vie avait été consacrée à rechercher l’amour, pour finalement découvrir que celui-ci n’existait pas. Où qu’il allât, cet homme disait à tout le monde que l’amour n’était qu’une invention des poètes, une trouvaille des religions servant à manipuler les esprits faibles des humains, afin de les contrôler et de les pousser à croire. Il disait que l’amour n’est pas vrai et donc qu’aucun humain ne pourrait jamais le trouver, même s’il le cherchait. Cet homme était très intelligent et très convaincant. Il avait lu de nombreux livres, était allé dans les meilleures universités et était devenu un érudit respecté. Il pouvai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { generichash, tcrypto, utils } from '@tanker/crypto'; | |
| import { fromString, fromBase64, toBase64 } from '@tanker/core'; | |
| // trustchainID = base64 encoded trustchain ID | |
| // trustchainPrivateKey = base64 encoded trustchain private key | |
| // userIdString = userID, as text string | |
| function generateToken(trustchainID, trustchainPrivateKey, userIdString) { | |
| const userIdBuffer = utils.concatArrays(fromString(userIdString), fromBase64(trustchainId)); | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| p = l["default"](a.createClass({ | |
| displayName: "XkcdEmbed", | |
| getInitialState: function() { | |
| return {json: null} | |
| }, | |
| componentDidMount: function() { | |
| var e = this; | |
| r.get({ | |
| url: "/integrations/embed/xkcd", | |
| data: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| e=0 | |
| arm-elf-readelf -s bootloader/bootloader.thumb.elf | grep 'FUNC\|OBJECT' | grep -v ": 500" | sed 's/ \+/ /g' | cut -d" " -f4,5,9 | while read a b c; do | |
| printf "%0.6d %0.6s %s %s\n" "$a" "$b" "$c" "$a" | |
| done | sort | while read aa bb cc dd; do | |
| e=$(( $e + $dd )) | |
| printf "%6s %6s %6s %s\n" "$dd" "$e" "$bb" "$cc" | |
| done |