Skip to content

Instantly share code, notes, and snippets.

View stanlee321's full-sized avatar

Stanley Salvatierra stanlee321

View GitHub Profile
@stanlee321
stanlee321 / rem_outlier.py
Created August 24, 2019 03:17 — forked from ariffyasri/rem_outlier.py
Remove outliers in pandas
import pandas as pd
import numpy as np
from pandas.api.types import is_numeric_dtype
np.random.seed(42)
age = np.random.randint(20,100,50)
name = ['name'+str(i) for i in range(50)]
address = ['address'+str(i) for i in range(50)]
@stanlee321
stanlee321 / createFlutter.md
Created August 22, 2019 03:04
Flutter create app from console

flutter create --org com.yourcompany -i swift -a kotlin --description 'Your App Description' your_app_name

@stanlee321
stanlee321 / create_sha.md
Created August 20, 2019 23:38
CREATE SHA Android firebase

keytool -list -v
-alias androiddebugkey -keystore ~/.android/debug.keystore

@stanlee321
stanlee321 / activate.md
Created August 18, 2019 18:17
Activate conda enviroment in jupyter notebook
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
@stanlee321
stanlee321 / future.dart
Created July 23, 2019 23:02
Wait for action Flutter dart
Future sleepBeforeExit() {
return new Future.delayed(const Duration(seconds: 2), () {
});
}
@stanlee321
stanlee321 / git.md
Created June 23, 2019 16:23
Common git commands
git remote show origin
@stanlee321
stanlee321 / streams_and_event_loop.dart
Created June 8, 2019 16:18 — forked from sethladd/streams_and_event_loop.dart
Streams, stream controller, and event loops in Dart.
import 'dart:async';
import 'dart:math';
/*
* Findings:
* streams can be single or broadcast, but not sure why the diff.
* can check if a stream is broadcast with isBroadcast
* StreamController make it easy to use a stream and send it events
*/

ssh-keygen -t rsa -b 4096 -C "[email protected]" Segundo paso: Terminar de configurar nuestro sistema.

En Windows y Linux:

Encender el "servidor" de llaves SSH de tu computadora:

eval $(ssh-agent -s)

Añadir tu llave SSH a este "servidor":

ssh-add ruta-donde-guardaste-tu-llave-privada

KeyGen

Once in your terminal, type ‘ssh-keygen’ then press return three times. This will create a directory named .ssh/ with two files in it, ‘id_rsa’ and ‘id_rsa.pub’. The first one is your private key and you should keep it safe, the second one is your public key, that you will transmit to people you want to securely communicate with (in our case AWS).