Skip to content

Instantly share code, notes, and snippets.

View CristhianMotoche's full-sized avatar
馃槇
Coding!

Cristhian Motoche CristhianMotoche

馃槇
Coding!
View GitHub Profile
@CristhianMotoche
CristhianMotoche / output.txt
Created November 5, 2024 21:45
Error when recreating PagerDuty workflow
```
Stack trace from the terraform-provider-pagerduty_v3.17.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe84165]
goroutine 85 [running]:
github.com/PagerDuty/terraform-provider-pagerduty/pagerduty.flattenIncidentWorkflowTrigger(0xc000012398?, 0xc0004374a0)
github.com/PagerDuty/terraform-provider-pagerduty/pagerduty/resource_pagerduty_incident_workflow_trigger.go:212 +0x85
github.com/PagerDuty/terraform-provider-pagerduty/pagerduty.fetchIncidentWorkflowTrigger.func1()
@CristhianMotoche
CristhianMotoche / .ghci
Created December 12, 2018 03:07
Example of Tasty Golden Tests
:set -package tasty-golden
:set -package blaze-html
@CristhianMotoche
CristhianMotoche / blank.hsfiles
Created May 11, 2017 23:56
A stack template for my little projects related to a particular topic.
{-# START_FILE {{name}}.cabal #-}
name: {{name}}
version: 0.1.0.0
license: BSD3
author: {{author-name}}{{^author-name}}Author name here{{/author-name}}
maintainer: {{author-email}}{{^author-email}}[email protected]{{/author-email}}
build-type: Simple
cabal-version: >=1.10
library
  • Identificar la visi贸n, misi贸n, objetivos y estrategias existentes de la empresa. Adem谩s incluir los valores corporativos existentes.
  • Analizar si la visi贸n y misi贸n se encuentran bien formuladas, explicar el porque (si se encuentran bien formuladas) o re-formularlas (no se encuentran bien formuladas), seg煤n sea el caso.
  • Cadena de Valor
  • Investigar y analizar sobre las TIC
  • Identificar las oportunidades y las amenazas externas de la empresa.
  • Identificar las fortalezas y las debilidades internas de la empresa.
  • Elaborar una matriz de Evaluaci贸n del Factor Externo (EFE).
  • Elaborar una Matriz de Perfil Competitivo (MPC).
  • Elaborar una matriz de Evaluaci贸n del Factor Interno (EFI).
  • Preparar una matriz de Amenazas, Oportunidades, Debilidades y Fortalezas (FODA);
@CristhianMotoche
CristhianMotoche / 101.md
Last active December 23, 2023 12:44
101 Template

My 101 for learning any language

The following lists will be implemented in any new language that I'd like learn. I'll apply TDD for everyone of these examples.

Easy

The following list:

  • Calculator
  • Sorting and Search algorithms
    • Bubble sort
    • Quick sort
  • Merge sort
@CristhianMotoche
CristhianMotoche / skeleton.html
Created September 30, 2016 03:23
Example of Skeleton
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Your page title here :)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
</head>
<body>
<div class="row">
@CristhianMotoche
CristhianMotoche / cifrar.html
Created September 30, 2016 03:20
Uso de bibliotecas especializadas para cifrar una contrase帽a en base a alg煤n algoritmo.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Crifrar</title>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
<script>
function cifrar(word){
hash = CryptoJS.MD5(word);
document.getElementById("pass").innerHTML = hash;
@CristhianMotoche
CristhianMotoche / Determinate-times.c
Created September 30, 2016 03:01
Determinate times between operations
#include <stdio.h>
#include <sys/time.h>
//#include <rand.h>
/* Funcion prototipo */
double tiempos(struct timeval , struct timeval );
/* Funcion principal */
int main(){
int x;
@CristhianMotoche
CristhianMotoche / camera.html
Last active April 25, 2017 20:16
Using the camera with HTML5
<!DOCTYPE html>
<html lang="en" dir="ltr" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8" />
<title>Camera and Video Control with HTML5 Example</title>
<style>
video { border: 1px solid #ccc; display: block; margin: 0 0 20px 0; }
#canvas { margin-top: 20px; border: 1px solid #ccc; display: block; }
</style>
</head>