Skip to content

Instantly share code, notes, and snippets.

View Cabeda's full-sized avatar
:octocat:

José Cabeda Cabeda

:octocat:
View GitHub Profile
@Cabeda
Cabeda / linux-manjaro-setup.ps
Last active October 20, 2020 22:28
Setup linux manjaro
#!/bin/bash
# oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#Install starship
curl -fsSL https://starship.rs/install.sh | bash
# Install pacman packages (prefered)
@Cabeda
Cabeda / dev_day_start.sh
Last active October 23, 2020 14:21
Mac dev day starter
#bin/bash
# This is a small script that I run every day to start working
open -a spotify -g
open -a notion -g
open -a slack -g
open -a "Visual Studio Code" -g
open -a "Google Chrome"
open -a firefox
#!/bin/bash
while getopts ":i:o:" opt; do
case $opt in
i) input="$OPTARG"
;;
o) output="$OPTARG"
;;
t) title="$OPTARG"
;;
@Cabeda
Cabeda / main.py
Last active May 25, 2021 17:46
System control simulator
import numpy as np
import scipy.stats as st
import matplotlib.pyplot as plt
def validate_parameters(n1, n2, k1, k2, w):
"""Validate that sim parameteres are valid"""
if k1 < w:
raise Exception(f"K1 {k1} must be greater than w {w}")
elif k1 < k2:
@Cabeda
Cabeda / vacina.sh
Last active July 6, 2021 14:14
Script to notify when one can schedule COVID-19 vacination in Portugal
#bin/bash
day=$1
month=$2
year=$3
while true;
do
status_code=$(curl -s -o /dev/null -w "%{http_code}" 'https://covid19.min-saude.pt/pedido-de-agendamento/' \
@Cabeda
Cabeda / osx-setup.sh
Last active September 9, 2021 13:56 — forked from somebox/osx-setup.sh
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc).
#!/bin/bash
# A script to set up a new mac. Uses bash, homebrew, etc.
# Settings
node_version="14.9.0"
ruby_versions="2.7.0"
python="3.8.1"
ruby_default="2.7.0"
@Cabeda
Cabeda / README.md
Last active January 23, 2023 12:17
Deno scrapper for holland2stay residences

Scrapper house

Deno program to scrap the housing site for new houses (after getting the initial state).

How to compile

You can generate an executable by running the following

deno compile --allow-net --allow-run --allow-read --allow-env main.ts