Skip to content

Instantly share code, notes, and snippets.

View ccortezb's full-sized avatar

Carlos Eduardo Cortez Bazan ccortezb

View GitHub Profile
@ccortezb
ccortezb / Prueba
Created October 31, 2014 16:29
Hello!!!!
Welcome to StackEdit!
===================
Hey! I'm your first Markdown document in **StackEdit**[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the **Utils** tab of the <i class="icon-cog"></i> **Settings** dialog.
----------
Documents
@ccortezb
ccortezb / gist:f5dc96365d0355a571ab7af69b951c00
Created November 20, 2016 04:10 — forked from douglasjarquin/gist:2208690
Amazon RDS Performance Tuning Settings
rds-modify-db-parameter-group {param-group-name} \
--parameters="name=character_set_server, value=utf8, method=pending-reboot" \
--parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \
--parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=query_cache_type, value=1, method=pending-reboot" \
--parameters="name=query_cache_size, value=131072, method=pending-reboot" \
--parameters="name=table_open_cache, value=2500, method=pending-reboot" \
--parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \
--parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \
#Install R and then following packages
#repr failed to create
yum install R-*
install.packages("evaluate", dependencies = TRUE)
install.packages("base64enc", dependencies = TRUE)
install.packages("devtools", dependencies = TRUE)
install_github('IRkernel/repr')
install.packages("dplyr", dependencies = TRUE)
install.packages("caret", dependencies = TRUE)
install.packages("repr", dependencies = TRUE)
{
"region": "us-east-1",
"detail": {
"type": "UnauthorizedAccess:EC2/SSHBruteForce",
"resource": {
"resourceType": "Instance",
"instanceDetails": {
"instanceId": "i-99999999",
"instanceType": "m3.xlarge",
"launchTime": "2016-08-02T02:05:06Z",
{
"region": "us-east-1",
"detail": {
"type": "UnauthorizedAccess:EC2/SSHBruteForce",
"resource": {
"resourceType": "Instance",
"instanceDetails": {
"instanceId": "i-99999999",
"instanceType": "m3.xlarge",
"launchTime": "2016-08-02T02:05:06Z",
@ccortezb
ccortezb / installr331loki.sh
Last active May 13, 2019 19:29
install R 3.3.1 on Elementary OS loki with R studio RGTK 2.2 and Rattle for Data mining
# Get R (base) and a few dependencies for packages
sudo apt-get -y install r-base libapparmor1 libcurl4-gnutls-dev libxml2-dev libssl-dev
sudo su - -c "R -e \"install.packages('tidyverse', repos = 'http://cran.rstudio.com/')\""
sudo su - -c "R -e \"install.packages('devtools', repos='http://cran.rstudio.com/')\""
sudo su - -c "R -e \"devtools::install_github('daattali/shinyjs')\""
sudo su - -c "R -e \"install.packages('rmarkdown', repos='http://cran.rstudio.com/')\""
# install java8
sudo apt install openjdk-8-jdk
@ccortezb
ccortezb / DevOps - Docker- Kubernetes Courses
Created August 25, 2019 13:39 — forked from sd031/DevOps - Docker- Kubernetes Courses
DevOps - Docker - Kubernetes Courses that I liked
I will keep updating the list whenever I come accross excellent Devops related courses.
DevOps:
Beginner level:
DevOps Essentials (Free): https://linuxacademy.com/cp/modules/view/id/192
DevSecOps Essentials (Free): https://linuxacademy.com/cp/modules/view/id/266
DevOps Foundation: https://www.linkedin.com/learning/devops-foundations/welcome
DevOps Advance Topics:
@ccortezb
ccortezb / deploy-demo-stepfunctions.txt
Last active April 15, 2020 22:54
Create AWS Step Functions Demo - Call Center Example - awsugperu
Demo AWS UG PE - Step Functions - Day 1
Paso 1: Step Functions Demo - State Language - awsugperu
{
"Comment": "A simple AWS Step Functions state machine that automates a call center support session.",
"StartAt": "Open Case",
"States": {
"Open Case": {
"Type": "Task",
@ccortezb
ccortezb / deploy-stepfunctions.txt
Last active April 16, 2020 18:07
Deploy Step Functions in Serverless Framework
paso 1: instalar serverless framework
sudo npm i -g serverless
paso 2: crear un proyecto vacío
serverless create --template aws-nodejs --path step-functions-demo
serverless.yml:
service: step-functions-demo
@ccortezb
ccortezb / ingestando-noticias-de-mi-propia-web.ipynb
Created March 31, 2021 01:52
Ingestando noticias de mi propia web.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.