Core data structure in Ethereum
|
Go to the image source
As an overview of this post, following topics will be discussed:
# 0. [OPTIONAL] In case: `Error: Failed to link all completions, docs and manpages: Permission denied @ rb_file_s_symlink` | |
sudo chown -R $(whoami) /usr/local/share/zsh | |
# 1. Install x86_64 Homebrew version: | |
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# 2. In case `brew --prefix` is not `/usr/local` run this (for zsh) and restart the terminal: | |
echo 'export PATH="/usr/local/bin/:/usr/local/sbin:$PATH"' >> ~/.zshrc |
FROM ruby:2.6.1 | |
ARG PG_VERSION | |
ARG NODE_VERSION | |
ARG TINI_VERSION=v0.18.0 | |
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ | |
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' $PG_VERSION > /etc/apt/sources.list.d/pgdg.list \ | |
&& curl -o /tmp/nodejs.deb https://deb.nodesource.com/node_11.x/pool/main/n/nodejs/nodejs_$NODE_VERSION-1nodesource1_amd64.deb \ | |
&& apt-get update -qq \ |
require "benchmark" | |
iteration = 10000000 | |
Benchmark.bm do |bm| | |
bm.report("method") do | |
class RPC0 | |
def new_address | |
"0" | |
end |
from time import time | |
import sys | |
import boto3 | |
client = boto3.client('cloudfront') | |
# Uncomment this to pass a URL to the script | |
#def get_id(url): | |
# print("get_id args: {0}".format(url)) | |
# # url: asdf.cloudfront.net | |
# # return: E2134123ASDF |
Core data structure in Ethereum
|
Go to the image source
As an overview of this post, following topics will be discussed:
# Change to the project directory | |
cd $FORGE_SITE_PATH | |
# Turn on maintenance mode | |
php artisan down || true | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
git pull origin $FORGE_SITE_BRANCH |
#!/bin/bash | |
# Simple command to display the wireless strenght signal | |
# | |
clear | |
while x=1 | |
do /System/Library/PrivateFrameworks/Apple*.framework/Versions/Current/Resources/airport -I \ | |
| grep CtlRSSI \ | |
| sed -e 's/^.*://g' \ | |
| xargs -I SIGNAL printf "\rWifi dBm: SIGNAL" | |
sleep 0.5 |
Hold on to your pants. This is a bit nuts.
CCPLauncher.exe
for windows.CCPLauncher.exe
to the VM's Desktop'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Get request and request headers | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
// Configure authentication | |
const authUser = 'user'; | |
const authPass = 'pass'; |
Short link to this page: caseywatts.com/quicktime
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
Scenario: You want to talk with someone over google hangouts (like for a user study), and you want to record BOTH: