Skip to content

Instantly share code, notes, and snippets.

View developerfred's full-sized avatar
👓

codingsh developerfred

👓
View GitHub Profile
@developerfred
developerfred / rust_nightly.rb
Created November 14, 2019 01:30 — forked from gcv/rust_nightly.rb
Homebrew formula for installing the official Rust nightly binary build. Useful because: (1) the `rust.rb` formula in Homebrew does not currently install Crate, and (2) the official binary `.pkg` pollutes `/usr/local`. This formula respects Homebrew's installation directory.
class RustNightly < Formula
url "https://static.rust-lang.org/dist/rust-nightly-x86_64-apple-darwin.pkg", using: :nounzip
homepage "http://www.rust-lang.org"
sha1 ""
version Date.today.to_s
def install
system "pkgutil --expand rust-nightly-x86_64-apple-darwin.pkg rn"
@developerfred
developerfred / .bashrc
Created November 13, 2019 05:49 — forked from vsouza/.bashrc
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@developerfred
developerfred / println.rs
Created November 11, 2019 01:15
Learning Rust Codes
fn main() {
let x = 5;
let y = 10;
println!("x = {} and y = {}", x, y);
}
@developerfred
developerfred / RangeandMaps.go
Last active November 10, 2019 16:23
Go BootCamp
package main
import (
"fmt"
)
func main() {
cities := map[string]int{
"New York": 8336697,
"Los Angeles": 3857799,
@developerfred
developerfred / ipfs-guide-mac.md
Created November 5, 2019 19:06 — forked from tgerring/ipfs-guide-mac.md
IPFS Mac Guide

IPFS Guide

Mac Installation

  1. Install Homebrew
  2. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. Install prerequisites
  4. brew install git hg
  5. brew install osxfuse (see Mac issues to troubleshoot common errors)
  6. Install Go
Verifying my Blockstack ID is secured with the address 1yJVpBi9EW9sY5ygYTbyyaqQChKQ4WCXr https://explorer.blockstack.org/address/1yJVpBi9EW9sY5ygYTbyyaqQChKQ4WCXr