Skip to content

Instantly share code, notes, and snippets.

View jmscarnatto's full-sized avatar
🎯
Focusing

Jose Scarnatto jmscarnatto

🎯
Focusing
View GitHub Profile
@jmscarnatto
jmscarnatto / bitcoin.svg
Created May 8, 2020 14:04
Bitcoin Logo SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmscarnatto
jmscarnatto / gist:8b872692a4377f3489e4a9c7bb653fcb
Created May 8, 2020 20:52
Debian download web page or file
wget "https://storage.googleapis.com/www-paredro-com/uploads/2019/04/bitcoin.jpg"
@jmscarnatto
jmscarnatto / gist:c9a4e6549d8fdd2c6171072ed085bc7c
Created May 8, 2020 20:53
Free API bitcoin cryptocurrencies data
https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=ars
@jmscarnatto
jmscarnatto / Git clone single branch
Created June 10, 2020 18:15
Git clone single branch
git clone --single-branch --branch <branchname> <remote-repo>
@jmscarnatto
jmscarnatto / Crud Vue Vuetify
Created July 5, 2021 23:42
Simple Crud Vue Vuetify
https://www.dropbox.com/s/qovgni72u6ylo68/crud_vuetify_2020.zip?dl=0
@jmscarnatto
jmscarnatto / Always Sudo Privileges
Created July 7, 2021 00:10
Always Sudo Privileges
> cd /etc
> sudo visudo
edit line
# User privilege specification
root ALL=(ALL:ALL) ALL
por
root,your-user-name ALL=(ALL:ALL) ALL
@jmscarnatto
jmscarnatto / RSA Key generator
Created July 24, 2021 17:13
Online RSA Public and Private Key Generator
http://travistidwell.com/blog/2013/09/06/an-online-rsa-public-and-private-key-generator/
ActiveRecord::Base.connection.execute("TRUNCATE TABLE <table_name>")
@jmscarnatto
jmscarnatto / Git_Snippets.md
Last active August 4, 2025 00:02
Git most frequently used commands

Really frequent mistake!! - Push when the remote has changed

git reset --soft HEAD~1  # this undoes the last commit and preserves last changes
git pull
git commit -m 'my erased last commit comments'
git push

Prompt for PR description creation

Act as an agent that generates raw markdown pull request descriptions following the structure below.  
Compare the current branch with a reference branch, analyze all differences, and generate a clear, professional, and technical summary. 
alias ll="ls -al"
alias linda='ls -lah | sort -r | awk '\''NF==9 { if ($1~/^d/) { printf $1 "/" $2 "/" $3 "/" $4 "/" $5 "/" $6 " " $7 "/" $8 " " "\033[1;34m" $9 "\033[0m" "\n" } else { printf $1 "/" $2 "/" $3 "/" $4 "/" $5 "/" $6 " " $7 "/" $8 " " "\033[1;32m" $9 "\033[0m" "\n" } }'\'' | column -t -s"/"'
alias dps="docker ps"
alias dcps="docker compose ps"
alias dim="docker images"
alias bus="cd ~/Documents/Projects/Clients/BusPatrol"
alias gck="git checkout"
alias gil="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gis="git status"
alias gita="git commit --amend --no-edit"