You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
# Terraform: How to create five instances on Amazon Web Services | |
# and define the name tag individually using a list type variable. | |
# It is just a simple example of how to create a given instance | |
# number and set the names according to the size of the list. | |
data "aws_ami" "ubuntu" { | |
most_recent = true | |
filter { | |
name = "name" |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
// Create a new directory, install bitcore-explorers, and run the node shell | |
mkdir bitcoin && cd bitcoin | |
npm install --save bitcore-explorers | |
node | |
// Require the Bitcore libraries into the global namespace | |
var bitcore = require(“bitcore-lib”) | |
var explo = require(“bitcore-explorers”) | |
var shell = {} |
import { h, Component } from 'preact'; | |
/** Creates a new store, which is a tiny evented state container. | |
* @example | |
* let store = createStore(); | |
* store.subscribe( state => console.log(state) ); | |
* store.setState({ a: 'b' }); // logs { a: 'b' } | |
* store.setState({ c: 'd' }); // logs { c: 'd' } | |
*/ |
I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.
It's currently synchronized with my .vimrc
config except for a block of neovim-specific terminal key mappings.
This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.
These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,
import time | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
HOST_NAME = 'localhost' | |
PORT_NUMBER = 9000 | |
class MyHandler(BaseHTTPRequestHandler): | |
def do_HEAD(self): | |
self.send_response(200) |
#!/bin/bash | |
# Download GitKraken | |
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz | |
# Extract the Kraken | |
tar -xvzf gitkraken-amd64.tar.gz | |
# Move the Kraken |
FFmpeg has been removed from Ubuntu 14.04 and was replaced by Libav. This decision has been reversed so that FFmpeg is available now in Ubuntu 15.04 again, but there is still no official package for 14.04. In this tutorial, I will show you how to install FFmpeg from mc3man ppa. Add the mc3man ppa: | |
sudo add-apt-repository ppa:mc3man/trusty-media | |
And confirm the following message by pressing <enter>: | |
Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades | |
More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media | |
Press [ENTER] to continue or ctrl-c to cancel adding it | |
Update the package list. |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
#!/usr/bin/env python | |
import argparse | |
import http.server | |
import os | |
class HTTPRequestHandler(http.server.SimpleHTTPRequestHandler): | |
def do_PUT(self): | |
path = self.translate_path(self.path) | |
if path.endswith('/'): |