Skip to content

Instantly share code, notes, and snippets.

View du2x's full-sized avatar

Eduardo Monteiro du2x

View GitHub Profile
@du2x
du2x / js2table.ts
Created April 19, 2017 01:43
typescript list (or a parsed JSON) to html table
// see http://stackoverflow.com/questions/5180382/convert-json-data-to-a-html-table
// Builds the HTML Table out of myList.
export function buildHtmlTable(myList:any[]) {
let columns:string[];
columns=[];
let res = '<table class="table">';
let headerTr = '';
for (var i = 0; i < myList.length; i++) {
var rowHash = myList[i];
@du2x
du2x / aws-linux-2-wordpress.sh
Created June 15, 2021 21:27 — forked from byronfriesen/aws-linux-2-wordpress.sh
Amazon Linux 2 LTS - Wordpress / PHP-FPM / NGINX / MariaDB / WP-CLI Auto Install
#!/bin/bash
##############################################################
# Set Your System and Wordpress Config Preferences
##############################################################
export SYSTEM_USER=username # User PHP-FPM runs under
# Database
export WP_DB_NAME=wordpress
openssl.exe pkcs7 -in ~/Downloads/signature.p7s -inform PEM -print_certs -text
@du2x
du2x / gist:2b30600fe36239212121cdf16d22a15d
Created May 5, 2021 13:36
get cert info from signature
openssl.exe pkcs7 -in ~/Downloads/signature.p7s -inform PEM -print_certs -text
@du2x
du2x / capstone-notebook.ipynb
Created January 28, 2020 01:38
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@du2x
du2x / capstone-final.ipynb
Created January 28, 2020 01:36
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@du2x
du2x / capstone-final.ipynb
Created January 28, 2020 01:36
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@du2x
du2x / capstone-final.ipynb
Created January 28, 2020 01:33
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@du2x
du2x / capstone-final.ipynb
Created January 27, 2020 22:55
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@du2x
du2x / capstone-data.ipynb
Created January 27, 2020 12:46
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.