Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
// Note that this is not the production code | |
pragma solidity 0.5.6; | |
import "./IERC20.sol"; | |
contract Wallet { | |
address internal token = 0x123...<hot_wallet_addr>; | |
address internal hotWallet = 0x321...<hot_wallet_addr>; | |
constructor() public { |
#!/usr/bin/env python2 | |
# lrdcq | |
# usage python2 unwxapkg.py filename | |
import sys, os | |
import struct | |
class WxapkgFile(object): | |
nameLen = 0 |
Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
This gist is based on the information available at golang/dep, only slightly more terse and annotated with a few notes and links primarily for my own personal benefit. It's public in case this information is helpful to anyone else as well.
I initially advocated Glide for my team and then, more recently, vndr. I've also taken the approach of exerting direct control over what goes into vendor/
in my Dockerfiles, and also work from
isolated GOPATH environments on my system per project to ensure that dependencies are explicitly found under vendor/
.
At the end of the day, vendoring (and committing vendor/
) is about being in control of your dependencies and being able to achieve reproducible builds. While you can achieve this manually, things that are nice to have in a vendoring tool include:
import json | |
import glob | |
import os | |
from os.path import join, basename | |
# install this with "conda install -c conda-forge python-graphviz" | |
import graphviz as gv | |
# path to your conda environment | |
path = os.environ.get('CONDA_PREFIX') | |
if path is None: |
I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).
The solution is to compile libimobiledevice and ifuse from source.
Who is this guide intended for?
A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.
The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.
git clone https://android.googlesource.com/platform/system/extras | |
cd extras/ext4_utils | |
git checkout android-4.1.1_r1 | |
gcc -o simg2img -lz sparse_crc32.c simg2img.c | |
ln -s ${PWD}/simg2img ~/bin/simg2img | |
# Last step make sure ~/bin is in your $PATH. |
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for the iPhone. | |
# Creates a set of universal libraries that can be used on an iPhone and in the |