Skip to content

Instantly share code, notes, and snippets.

View pataruco's full-sized avatar
♥️

Pedro Martin pataruco

♥️
View GitHub Profile

GitHub pages deployment using SSH keys

  1. Create a GitHub workflow file;

    mkdir .github
    mkdir .github/worflows
    touch ci.yml
@pataruco
pataruco / deploy-keys.md
Created August 13, 2020 10:05 — forked from holmberd/deploy-keys.md
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C your@email.here
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"brace-style": "error",
@pataruco
pataruco / mars-rover.md
Created July 1, 2020 18:45
Mars rover challenge instructions

The problem

The surface of Mars can be modelled by a rectangular grid around which robots are able to move according to instructions provided from Earth.

You are to write a program that determines each sequence of robot positions and reports the final position of the robot.

A robot position consists of a grid coordinate (a pair of integers: x-coordinate followed by y-coordinate) and an orientation (N, S, E, W for north, south, east, and west).

A robot instruction is a string of the letters “L”, “R”, and “F” which represent, respectively, the instructions:

@pataruco
pataruco / index.html
Last active June 5, 2020 09:32
SVG spinner lab
<article>
<h1>SVG Spinner Lab</h1>
<section class="spinner">
<div class="svg-wrapper">
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<g>
<circle cx="50" cy="50" r="45" />
</g>
<g class="checkmark">
<polyline points="35 45, 45 55, 70 30" />
@pataruco
pataruco / source.sh
Created February 15, 2020 13:44
environmental variables that work on shell and dotenv
#!/bin/bash
set -euo pipefail
set -a
source .env
set +a

Keybase proof

I hereby claim:

  • I am pataruco on github.
  • I am pataruco (https://keybase.io/pataruco) on keybase.
  • I have a public key ASB-TpgTfHx9dElUOZk4SrDgktvyrkU4lwdZ2_NfS3ujsQo

To claim this, I am signing this object:

@pataruco
pataruco / kubectl.md
Created February 4, 2019 12:42
Kubernetes

Kubernetes on the command line

brew install kubernetes-cli
kubectl completion -h
@pataruco
pataruco / installfest.md
Last active April 13, 2023 10:48
installfest.md