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 / 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
@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 / 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:
#!/bin/bash
while getopts ":i:o:" opt; do
case $opt in
i) input="$OPTARG"
;;
o) output="$OPTARG"
;;
t) title="$OPTARG"
;;
@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)
# Script to install on Windows 10
# Requires Microsoft Package Manager from microsoft https://github.com/microsoft/winget-cli
winget install vlc -h
winget install calibre
winget install firefox -h -e
winget install --Id Spotify.Spotify -h
winget install authy -h
winget install notion -h
@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
@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 / query.sql
Last active June 18, 2019 09:07
Check if two tables have the same columns
--Check different columns
select znew.column_name as newcol,
zold.column_name as oldcol
from (
select column_name
from information_schema.columns
where table_schema = 'zendesk'
and table_name = '_groups') zold
full join
(select column_name

Keybase proof

I hereby claim:

  • I am cabeda on github.
  • I am cabeda (https://keybase.io/cabeda) on keybase.
  • I have a public key ASDNDauw0vzWmlyjbot1j6lgfaes9c1iRpJ6zkoNMjU50go

To claim this, I am signing this object: