This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { writeFileSync} = require("node:fs"); | |
async function getArticles(page) { | |
if (!page) page = 1; | |
const response = await fetch(`https://dev.to/api/articles?username=cristuker&page=${page}&per_page=100`); | |
if (!response.ok) { | |
throw new Error('Erro searching for articles'); | |
} | |
const articles = await response.json() | |
return articles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the process running on port 3333 and kill it! Change 3333 to use on another ports. | |
kill -9 "$(lsof -w -n -i tcp:3333 | awk 'FNR == 2 {print $2=$2}')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
...anothers settings, | |
"hotkey-show-app": "<Super>space" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//Editor configs | |
"workbench.colorTheme": "Dracula", | |
"editor.fontLigatures": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontWeight": "400", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.formatOnSave": true, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"git.autofetch": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap "exit" INT | |
docker image prune --all -f | |
docker container prune -f | |
docker volume prune -f | |
docker network prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = cristian123105@gmail.com | |
name = Cristian Silva | |
[core] | |
editor = code --wait | |
[alias] | |
s = !git status -s # git status whit less information | |
c = !git add --all && git commit -m #git add and git commit alias | |
l = !git log --pretty=format:'%C(blue)%h %C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr' #Format git log message | |
[includeIf "gitdir:~/work/"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/csilva/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |