Skip to content

Instantly share code, notes, and snippets.

View pedromfedricci's full-sized avatar

Pedro Fedricci pedromfedricci

  • São Paulo, Brazil
View GitHub Profile
@pedromfedricci
pedromfedricci / keybase.md
Created April 26, 2021 06:29
Keybase proof

Keybase proof

I hereby claim:

  • I am pedromfedricci on github.
  • I am pedromfedricci (https://keybase.io/pedromfedricci) on keybase.
  • I have a public key ASBHDIRtOpF1asQOu4xycoPYjymSbaY0KzSjuPa-pqgFTwo

To claim this, I am signing this object:

@pedromfedricci
pedromfedricci / Dockerfile.rust-wasm-js
Last active October 3, 2021 12:35
Dockerfile for working with Rust and WebAssembly.
ARG RUST_IMAGE=rust:1.52.1
FROM $RUST_IMAGE AS install-sys-pkgs
RUN apt-get update \
&& \
apt-get install -y --no-install-recommends \
# Z shell is a customizable Unix shell.
zsh \
# Install node & npm.
@pedromfedricci
pedromfedricci / Dockerfile
Last active August 14, 2021 18:26
Image for Rust development
ARG RUST_IMAGE=rust:latest
FROM $RUST_IMAGE AS install-system-packages
RUN apt-get update -y && apt-get install -y --no-install-recommends \
# Programming tool for memory debugging and profilling.
valgrind \
&& \
apt-get remove -y --auto-remove && rm -rf /var/lib/apt/lists/*
@pedromfedricci
pedromfedricci / Dockerfile.sqlx-postgres
Created August 11, 2021 02:34
PostgresSQL enabled sqlx-cli
ARG RUST_BASE_IMAGE=rust:slim
FROM ${RUST_BASE_IMAGE} AS base
ARG SQLX_CLI_VERSION=0.5.5
RUN apt-get update \
&& \
apt-get install -y --no-install-recommends \
libssl-dev \
@pedromfedricci
pedromfedricci / nix.nu
Last active September 17, 2022 04:25
Nix profile script for nushell
#!/usr/bin/env nu
module nix-profile {
# Return user's `.nix-profile` path, if it exists, `$nothing` otherwise.
def nix-profile [] {
if ("HOME" in (env).name && "USER" in (env).name) {
$"($env.HOME)/.nix-profile"
}
}