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
| 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
| 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
| { | |
| "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
| #!/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
| # | |
| # Cookbook Name:: kosmos-mastodon | |
| # Recipe:: default | |
| # | |
| include_recipe "kosmos-nodejs" | |
| include_recipe "kosmos-redis" | |
| node.override['postgresql']['enable_pgdg_apt'] = false | |
| include_recipe "postgresql::server" | |
| include_recipe "postgresql::ruby" |
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
| # For use with Pathogen and Syntastic | |
| # Install typescript-vim for syntax highlighting | |
| git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/bundle/typescript-vim | |
| # Install and compile procvim.vim | |
| git clone https://github.com/Shougo/vimproc.vim.git ~/.vim/bundle/vimproc.vim | |
| pushd ~/.vim/bundle/vimproc.vim | |
| make | |
| popd |
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
| " Highlight trailing whitespaces | |
| highlight ExtraWhitespace ctermbg=red guibg=red |
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
| <iq id='set1' | |
| type='set' | |
| to='[email protected]'> | |
| <vCard xmlns='vcard-temp'> | |
| <PHOTO> | |
| <TYPE>image/png</TYPE> | |
| <BINVAL> | |
| iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAAAAAB5Gfe6AAAIi0lEQVR42u2deWwUZRiHZ2Z7QFtoFyhtkQqIggoECkiUSyEFW2yLhYCRIwgqkRgOQyKKhkA4xOCFQRIQIgZDTBStEGhpoRAQsMYYSPAPoZRGLrl7bLdl226lJUJblt35jpnfzPR9/ibwvg/vd3/zrdLQxlHQAaAhAegA0JAAdABoSAA6ADQkAB0AGhKADgANCUAHgIYEoANAQwLQAaAhAegA0JAAdABoSAA6ADQkAB0AGhKADgANCUAHgIYEoANAQwLQAaAhAegA0JAAdABoSAA6ADQkAB0AGhKADgANCUAHgIYEsPxhv7fs2mWLc63MW2+QAN/Z9ZOHdFIsjjsl+7Mzt40QkDehezg6O32Ed0vbJVuA/9Sc9ui8WGg386RfqoCCJBWdExtqwl6JAmrWJ6ITYqfrOq8sAfXr0cnw8bGe4UCPgLxYdCp8dNTTFeoQUDwAnQkvff+SIaBqhs36v/uoUyslCMi1yegfiPCfJAiYhM5ChHRxAf9YfvIbjLhSYQGrXOgkRHB9EGpCGErA7YnoHMQYF2o2FEpA1XB0CmKklAkKqHi85V+oxVocrWW83a8JCrjVahWQ2GBxureMN+4yCRATUJZkbwHuf0kACRATQH2AvQUIV0CbHwVIAAlo4wKoE6QKsLcAqgCqAFEBxlWA31t+pmDL0tenZo0bNbT/oOcnzlq4dk9pZa1UAXEWXQzVlRfvXT0mwJGb9tScLSfKme54BBVgzdVgXcH8kV2jNCUganiXkUuOW0eA7Cbgrzi2cmiHEKdtmjt1+5U6awiQWwH+a9uGKPpIXl2s85KHjQTcXDe4ne6jVl |