Skip to content

Instantly share code, notes, and snippets.

View developerfred's full-sized avatar
🥇
🔥

codingsh developerfred

🥇
🔥
View GitHub Profile
@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
@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 / 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 / go-stdlib-interface-selected.md
Created November 20, 2019 20:01 — forked from asukakenji/go-stdlib-interface-selected.md
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

@developerfred
developerfred / go-table-driven-tests-parallel.md
Created November 21, 2019 03:21 — forked from posener/go-table-driven-tests-parallel.md
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()
@developerfred
developerfred / substrate-knownledge-dump.md
Created November 22, 2019 04:42 — forked from jordy25519/substrate-knownledge-dump.md
Substrate/Plug/CENNZnet Knowledge Dump

Rust

cargo check

Sometimes errors from macro expansion are too opaque to debug. To see errors with the expanded macro set RUSTFLAGS like so:

RUSTFLAGS="-Z external-macro-backtrace" cargo +nightly [test|check]
{% block content %}
<div class="row card-columns">
{% for i in index %}
<div class="col-12">
<div class="card my-5">
<h3 class="card-header">Choice {{ i }}</h3>
<div class="card-body px-5">
<div class="row card-deck">
{% for choice in form.choice_1 %}
<div class="card">
@developerfred
developerfred / README.md
Created January 21, 2020 01:49 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@developerfred
developerfred / install.md
Created February 14, 2020 09:06 — forked from derhuerst/install.md
Rust WASM setup on macOS (with fish shell)
@developerfred
developerfred / github_bugbountyhunting.md
Created July 30, 2020 18:47 — forked from EdOverflow/github_bugbountyhunting.md
My tips for finding security issues in GitHub projects.

GitHub for Bug Bounty Hunters

GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.

Mass Cloning

You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.

$ python githubcloner.py --org organization -o /tmp/output