Skip to content

Instantly share code, notes, and snippets.

View goncalor's full-sized avatar

Gonçalo Ribeiro goncalor

View GitHub Profile
FROM alpine
RUN apk --no-cache add python3 py3-pip git
WORKDIR /app
RUN adduser -h /app -D user
RUN git clone --depth=1 https://github.com/sdgathman/pyspf/ .
RUN python3 setup.py install
#!/bin/sh
#
# Converts `masscan`'s JSON output to JSON lines that can be
# parsed by `jq` or `python -m json.tool --json-lines`.
# masscan (1.0.4) outputs an array with a trailing comma, which is invalid.
# This basically breaks the array into its elements, one per line.
#
# Example:
# [
# {...},
#!/bin/sh
#
# A hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
files=$(git diff --cached --name-only --diff-filter=ACM | grep "\.py$")
pass=true
# gen a new RSA key
ssh-keygen -t rsa -b 4096 -f /home/user/.ssh/whatever
# .ssh/config
Host host.local
PreferredAuthentications publickey
IdentityFile ~/.ssh/whatever
@goncalor
goncalor / atmega328pb.markdown
Last active February 14, 2024 02:50
How to add support for ATmega328PB to avr-gcc and avrdude

Adding support for ATmega328PB to avr-gcc and avrdude

avr-gcc

  1. Download ATmega's support pack from Microchip's website
  2. Unzip the relevant files

unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \

FROM debian:stable-slim
RUN apt update \
&& apt install -y chromium curl unzip \
&& rm -rf /var/lib/apt/lists/*
#RUN useradd -m -d /app user
WORKDIR /app
RUN curl -L -o file.zip \
FROM alpine
RUN apk --no-cache add #python3 py3-pip git
WORKDIR /app
RUN adduser -h /app -D user
#RUN git clone --depth=1 URI .
#COPY ["file", "./"]

Keybase proof

I hereby claim:

  • I am goncalor on github.
  • I am goncalor (https://keybase.io/goncalor) on keybase.
  • I have a public key whose fingerprint is 5AAE 5B73 BC0E 1B38 0223 C652 57EF 4D95 A5EB 8140

To claim this, I am signing this object:

FROM alpine:latest
RUN echo @testing http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
>> /etc/apk/repositories
RUN apk --no-cache add masscan@testing libpcap-dev
CMD ["/bin/sh"]
# split panes
bind - split-window -v -c "#{pane_current_path}"
bind _ split-window -h -c "#{pane_current_path}"
# create window
bind c new-window -c "#{pane_current_path}"
# switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D