irb
- command to launch ruby interpreter in any directory
rails c
- command lets you interact with your Rails application from the command line
reload!
- reload rails environment if you had changed model functionality
gem outdated
- show all outdated gems on project
gem update [<gem_name>]
- update a specific gem
./bin/webpack-dev-server
- start webpacker dev server for fast compiling
code $(bundle show gem_name)
- shortcut to open a Ruby gem in VS Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
tmux new-session -d -s logs || true | |
for name in `docker ps --format json | jq -s 'sort_by(.Names)|.[].Names)'` | |
do | |
tmux split-window -h -f | |
tmux send-keys "docker logs -f -n 20 $name" C-m | |
tmux select-pane -T $name | |
done | |
tmux kill-pane -t 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Recaptcha Solver (Automatically solves Recaptcha in browser) | |
// @namespace Recaptcha Solver | |
// @version 2.1 | |
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser | |
// @author engageub | |
// @match *://*/recaptcha/* | |
// @connect engageub.pythonanywhere.com | |
// @connect engageub1.pythonanywhere.com | |
// @grant GM_xmlhttpRequest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.7.1-slim AS base | |
LABEL maintainer="Yann Defretin <[email protected]" | |
# Common dependencies | |
RUN apt-get update -qq \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq \ | |
--no-install-recommends \ | |
build-essential=12.6 \ | |
gnupg2=2.2.12-1+deb10u1 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::str; | |
fn main() { | |
// -- FROM: vec of chars -- | |
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
// to String | |
let string1: String = src1.iter().collect::<String>(); | |
// to str | |
let str1: &str = &src1.iter().collect::<String>(); | |
// to vec of byte |
Single script to test common Tezos user workflows. Additionally this sample illustrates the use of ConseilJS for interactions with a Tezos blockchain node.
This tutorial requires nodejs 12.21+ & npm. It's highly recommended to install those via nvm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"TransactionInput": { | |
"parent_output": "Hash", | |
"signature": "Signature" | |
}, | |
"TransactionOutput": { | |
"value": "u128", | |
"pubkey": "Hash", | |
"sale": "u32" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parity --chain ethereum --ports-shift 0000 --no-warp --node-key supersecret0000 | |
parity --chain classic --ports-shift 0100 --no-warp --node-key supersecret0100 | |
parity --chain ropsten --ports-shift 0200 --no-warp --node-key supersecret0200 | |
parity --chain kovan --ports-shift 0300 --no-warp --node-key supersecret0300 | |
parity --chain ethereum --ports-shift 1000 --light --no-hardcoded-sync --node-key supersecret1000 | |
parity --chain classic --ports-shift 1100 --light --no-hardcoded-sync --node-key supersecret1100 | |
parity --chain ropsten --ports-shift 1200 --light --no-hardcoded-sync --node-key supersecret1200 | |
parity --chain kovan --ports-shift 1300 --light --no-hardcoded-sync --node-key supersecret1300 |
All of this is prefaced on having Go installed: https://golang.org/doc/install
Go is properly installed if echo $GOPATH
returns something that makes sense.
First, install Ethermint. Normally I'd do this:
$ go get -u -d github.com/tendermint/ethermint
$ cd $GOPATH/src/github.com/tendermint/ethermint
NewerOlder