Skip to content

Instantly share code, notes, and snippets.

@fbonetti
fbonetti / todo
Last active October 31, 2018 13:43
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<style>
.completed {
text-decoration: line-through
}
</style>
</head>
<body>
@fbonetti
fbonetti / manual_stake_instructions.md
Last active September 17, 2018 20:18
How to manually stake SPANK via MyCrypto

Approving the token transfer

  1. Navigate to the "Contracts" tab on MyCrypto: https://mycrypto.com/contracts/interact
  2. Make sure your network is set to "Ethereum (AUTO)" in the top right corner
  3. Set "Contract Address" to 0x42d6622deCe394b54999Fbd73D108123806f6a18
  4. Paste the following into the "ABI / JSON Interface" textfield:
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outpu
import Graphics.Element exposing (..)
import Color exposing (blue, white)
import Task exposing (Task)
import Signal exposing (Mailbox, Address)
import Html exposing (Attribute, input)
import Html.Attributes exposing (type')
import Html.Events exposing (on, targetValue)
import Json.Decode exposing (Decoder)
import String
# Login as root
ssh root@domain
# Create deploy user
adduser <username> #Adds User with username given. Enter Password when Prompted. Other Details are Optional
# Add user to sudo group
usermod -g <groupname> <username>
# Add .ssh/authorized_keys for deploy user