Skip to content

Instantly share code, notes, and snippets.

@jvegaf
jvegaf / setup_all.sh
Last active August 13, 2020 14:47
bash script for setup enviroment
#!/bin/bash
## php 7.4
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt upgrade -y
sudo apt-get install -y php7.4-{cli,xml,bcmath,bz2,intl,gd,mbstring,mysql,zip}
sudo apt-get -y install inkscape transmission git zsh ubuntu-restricted-extras
@jvegaf
jvegaf / keymap.json
Last active March 3, 2019 13:58
Brackets shorcuts Mac
{
"documentation": "https://github.com/adobe/brackets/wiki/User-Key-Bindings",
"overrides": {
"Cmd-Shift-L": "edit.splitSelIntoLines",
"Ctrl-Shift-Up": "edit.addCursorToPrevLine",
"Ctrl-Shift-Down": "edit.addCursorToNextLine",
"Cmd-Shift-D": "edit.duplicate",
"Ctrl-Shift-K": "edit.deletelines",
"Cmd-L": "edit.selectLine",
"Cmd-D": "cmd.addNextMatch",
@jvegaf
jvegaf / setup-all-2019.ps1
Last active October 22, 2020 11:15
chocolaey-setup-2019
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
cinst visualstudiocode -y
cinst intellijidea-ultimate -y
cinst nodejs -y
cinst yarn -y
cinst docker-desktop -y
cinst gitkraken -y
cinst sublimetext3 -y
cinst git -y
@jvegaf
jvegaf / keymap.json
Created March 4, 2019 09:08
Brackets shortcuts Windows
"overrides": {
"Ctrl-Shift-L": "edit.splitSelIntoLines",
"Ctrl-Alt-Up": "edit.addCursorToPrevLine",
"Ctrl-Alt-Down": "edit.addCursorToNextLine",
"Ctrl-Shift-D": "edit.duplicate",
"Ctrl-Shift-K": "edit.deletelines",
"Ctrl-D": "cmd.addNextMatch",
"Alt-Shift-1": "cmd.splitViewNone",
"Alt-Shift-2": "cmd.splitViewVertical",
"Alt-Shift-8": "cmd.splitViewHorizontal",
@jvegaf
jvegaf / .bashrc
Created April 18, 2019 16:35
Linux Mint bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@jvegaf
jvegaf / .conkyrc
Created August 23, 2019 23:12
Conky setup
conky.config = {
use_spacer = 'left',
pad_percents = 3,
background = false,
double_buffer = true,
font = 'DejaVu Sans Mono:size=10',
use_xft = true,
alignment = 'top_right',
gap_x = 10,
gap_y = 40,
@jvegaf
jvegaf / Brewfile
Last active April 15, 2020 11:13
Brewfile
tap "buo/cask-upgrade"
tap "dandavison/delta", "https://github.com/dandavison/delta"
tap "denisidoro/tools"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
brew "autojump"
@jvegaf
jvegaf / .zshrc
Last active July 23, 2020 22:38
ZSH dotfile
# 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/.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
@jvegaf
jvegaf / setup_all_mint_20.sh
Last active August 20, 2020 20:18
Environment setup on Linux Mint 20
#!/bin/bash
sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update
sudo apt upgrade -y
sudo apt-get install -y php7.4-{cli,xml,bcmath,bz2,intl,gd,mbstring,mysql,zip}
sudo apt-get -y install inkscape transmission git zsh
sudo apt-get -y install filezilla neovim vlc snapd gedit build-essential
sudo apt-get -y install htop screenfetch openjdk-11-jdk composer snapd
sudo apt-get -y install wget docker.io docker-compose curl

#Configurando GitHub en Linux

###Conectando nuestro equipo con GitHub por medio de SSH Una vez completado nuestro registro en GitHub, debemos indicarle a GitHub de que equipo o equipos nos comunicaremos con el, esta comunicación la haremos por medio de SSH (Secure Shell), para esto debemos crear un par de llaves SSH una publica y otra privada. Esto es algo que asusta a algunos desarrolladores que recién comienzan en esto de GIT y GitHub. Comencemos con la creación de las llaves, para esto vamos a nuestra terminal y revisamos que exista la carpeta .sshdentro del $HOME

~ ls -a | grep .ssh