Skip to content

Instantly share code, notes, and snippets.

View alesoto13's full-sized avatar
:octocat:
Focus

Alejandro Soto alesoto13

:octocat:
Focus
  • Santiago, Chile
View GitHub Profile
@alesoto13
alesoto13 / CSS Grid.md
Last active April 20, 2020 20:27
[CSS]

Propiedades

display:grid; -> Para indicar que el contenedor se muestra como un grid
grid-template-columns: repeat(7, 1fr); -> Para indicar cuantas columnas tendrá el grid 7 de 1 fracción (nomral: 100px,100px,100px -> 3 columnas)
grid-template-rows: repeat(2,1fr); -> Lo mismo que con las columnas pero para las filas
grid-template: repeat(3, 1fr)/repeat(4, 100px); -> Junta ambas propiedades en una sola r/f
row-gap: 15px; -> Para expresar sepración entre filas. Debe estar junto con display: grid;
column-gap: 10px; -> Para expresar sepración entre column. Debe estar junto con display: grid;
grid-gap: 15px 10px; -> Para expresar separación entre filas y columas en una sola expresión. Debe estar junto con display: grid; 
@alesoto13
alesoto13 / commands.md
Created February 8, 2020 04:23
[Terminal] #terminal

Comandos básicos en la terminal:

pwd: Nos muestra la ruta de carpetas en la que te encuentras ahora mismo.
mkdir: Nos permite crear carpetas (por ejemplo, mkdir Carpeta-Importante).
touch: Nos permite crear archivos (por ejemplo, touch archivo.txt).
rm: Nos permite borrar un archivo o carpeta (por ejemplo, rm archivo.txt). Mucho cuidado con este comando, puedes borrar todo tu disco duro.
cat: Ver el contenido de un archivo (por ejemplo, cat nombre-archivo.txt).
ls: Nos permite cambiar ver los archivos de la carpeta donde estamos ahora mismo. Podemos usar uno o más argumentos para ver más información sobre estos archivos (los argumentos pueden ser -- + el nombre del argumento o - + una sola letra o shortcut por cada argumento).
- ls -a: Mostrar todos los archivos, incluso los ocultos.
- ls -l: Ver todos los archivos como una lista.
@alesoto13
alesoto13 / elasticsearch.md
Last active February 7, 2020 18:16
[Elasticsearch] #elasticsearch

Clean

curl -X DELETE 'http://localhost:9200/_all'
@alesoto13
alesoto13 / cheatsheet.md
Created February 5, 2020 11:47
[Brew] #brew

Commands

brew install git	Install a package
brew uninstall git	Remove/Uninstall a package
brew upgrade git	Upgrade a package
brew unlink git	Unlink
brew link git	Link
brew switch git 2.5.0	Change versions
brew list --versions git	See what versions you have
Accidentally pushed sensitive data? Follow these steps to undo the damage.
If you have accidentally pushed some sensitive information to a remote repository, you don’t need to panic. Take couple of deep breaths; Wipe the sweat off your forehead; And follow the steps below.
First, control the damage:
Any sensitive information pushed to a public repository should be considered compromised. So if there are passwords and private keys in those commits, change them right now!
Scenario 1: You pushed sensitive information in your last commit.
If the sensitive information was in the last commit you just pushed to remote, you can amend it right away. Here we use the master branch as an example but you could do this on any branch.
@alesoto13
alesoto13 / snippets
Created February 3, 2020 13:58
[Proto] #proto
Para cuando no hay parámetro
import "google/protobuf/empty.proto";
service ShowGenreService {
rpc Search (google.protobuf.Empty) returns (google.protobuf.Empty);
}