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
| #!/usr/bin/env bash | |
| # | |
| # Make a backup file of a Mastodon instance. The backup file is a TGZ containing | |
| # the Postgres dump as well as the /public/system (media) files and the | |
| # .env.production file. For loading the dump file contents, see: | |
| # https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Migration-guide.md | |
| # | |
| # Usage: ./mastodon_backup.sh my_dump_file.tgz | |
| # | |
| # Advanced usage: MASTODON_LIVE_DIRECTORY=/path/to/live ./mastodon_backup.sh my_dump_file.tgz |
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
| { | |
| "phrases": [ | |
| [ "How are you?", "Na nga def?" ], | |
| [ "Sorry", "Baal ma" ], | |
| [ "I want to buy tobacco", "Fooki derem puon" ], | |
| [ "What's your name?", "Nah monee?" ], | |
| [ "Bonjour", "Kassomai" ] | |
| ], | |
| "words": [ | |
| ] |
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
| const RemoteStorage = require('remotestoragejs') | |
| const remoteStorage = new RemoteStorage({logging: true}) | |
| remoteStorage.on('ready', () => console.log('READY')) | |
| remoteStorage.on('connected', () => console.log('CONNECTED')) | |
| remoteStorage.on('not-connected', () => console.log('NOT CONNECTED')) | |
| setTimeout(() => { console.log('good bye') }, 3000) |
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
| 0xF18E631Ea191aE4ebE70046Fcb01a43655441C6d |
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
| pragma solidity ^0.4.0; | |
| library ipfsUtils { | |
| function splitHash(bytes source) returns(bytes1, bytes1) { | |
| bytes1[2] memory hash = [bytes1(0), bytes1(0)]; | |
| assembly { | |
| mstore(hash, source) | |
| mstore(add(hash, 1), source) |
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
| { | |
| "places": [ | |
| { | |
| "name": "Surf Shak", | |
| "SSID": "Bar Surf", | |
| "password": "shak2525" | |
| }, | |
| { | |
| "name": "Hostal Rutamar", | |
| "SSID": "HOSTAL RUTAMAR", |
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
| Easy work: | |
| 1 complain | |
| 2 pretend | |
| 3 blame | |
| 4 procrastinate | |
| 5 resent | |
| 6 ignore | |
| Hard work: |
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
| A2:69:DC:6F:11:BE:BE:54:36:03:58:04:97:BC:76:6C:8F:11:1A:58 |
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
| background: linear-gradient(270deg, #219f7e, #3d9cd1); | |
| background-size: 400% 400%; | |
| -webkit-animation: AnimationName 30s ease infinite; | |
| -moz-animation: AnimationName 30s ease infinite; | |
| -o-animation: AnimationName 30s ease infinite; | |
| animation: AnimationName 30s ease infinite; | |
| @-webkit-keyframes AnimationName { | |
| 0%{background-position:0% 50%} | |
| 50%{background-position:100% 50%} | |
| 100%{background-position:0% 50%} |
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
| location ~* ^/s3/(.*) { | |
| set $bucket '<REPLACE WITH YOUR S3 BUCKET NAME>'; | |
| set $aws_access '<REPLACE WITH YOUR AWS ACCESS KEY>'; | |
| set $aws_secret '<REPLACE WITH YOUR AWS SECRET KEY>'; | |
| set $url_full "$1"; | |
| set_by_lua $now "return ngx.cookie_time(ngx.time())"; | |
| set $string_to_sign "$request_method\n\n\n\nx-amz-date:${now}\n/$bucket/$url_full"; | |
| set_hmac_sha1 $aws_signature $aws_secret $string_to_sign; | |
| set_encode_base64 $aws_signature $aws_signature; |