Skip to content

Instantly share code, notes, and snippets.

@raucao
raucao / mastodon_backup.sh
Created January 21, 2018 17:23 — forked from nolanlawson/mastodon_backup.sh
Script to back up a Mastodon instance
#!/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
{
"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": [
]
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)
0xF18E631Ea191aE4ebE70046Fcb01a43655441C6d
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)
@raucao
raucao / wifi.json
Last active January 22, 2016 17:58 — forked from beanieboi/wifi.json
Hackerbeach Wifi Passwords
{
"places": [
{
"name": "Surf Shak",
"SSID": "Bar Surf",
"password": "shak2525"
},
{
"name": "Hostal Rutamar",
"SSID": "HOSTAL RUTAMAR",
Easy work:
1 complain
2 pretend
3 blame
4 procrastinate
5 resent
6 ignore
Hard work:
@raucao
raucao / fingerprint.txt
Created July 9, 2015 17:28
Current 5apps.com wildcard certificate
A2:69:DC:6F:11:BE:BE:54:36:03:58:04:97:BC:76:6C:8F:11:1A:58
@raucao
raucao / my.css
Created January 6, 2015 15:50 — forked from anonymous/my.css
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%}
@raucao
raucao / nginx-lua-s3.nginxconf
Last active September 8, 2020 01:29
Nginx proxy to S3
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;