Skip to content

Instantly share code, notes, and snippets.

View jcxk's full-sized avatar
🎯
Focusing

Juan carlos Escamilla jcxk

🎯
Focusing
View GitHub Profile
@jcxk
jcxk / index.html
Created August 9, 2020 15:32
YGC V2 Timeline
<section id="cd-timeline" class="cd-container">
<div class="cd-timeline-block">
<div class="cd-timeline-img cd-picture">
</div>
<div class="cd-timeline-content">
<h2>Penta Consulting</h2>
<div class="timeline-content-info">
<span class="timeline-content-info-title">
<i class="fa fa-certificate" aria-hidden="true"></i>
ntpdate -s ntp.ubuntu.com
dpkg-reconfigure tzdata
sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
wget -O - https://bit.ly/docker-install | bash
sudo apt install fonts-powerline zsh terminator
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@jcxk
jcxk / rinkenby
Last active September 19, 2017 12:27
0x625EF728E6E1894e1Ff0D2C2D6E1353a27052B84
@jcxk
jcxk / index.js
Created September 5, 2017 14:37 — forked from zerbfra/index.js
node-postgres connection and query with async/await
const pg = require('pg')
// create a config to configure both pooling behavior
// and client options
// note: all config is optional and the environment variables
// will be read if the config is not present
var config = {
user: '', // env var: PGUSER
database: '', // env var: PGDATABASE
password: '', // env var: PGPASSWORD
@jcxk
jcxk / install-postgresql-9.6-in-ubuntu-16.04.md
Created September 2, 2017 13:18 — forked from ziyan-junaideen/install-postgresql-9.6-in-ubuntu-16.04.md
How to install PostgreSQL 9.6 in Ubuntu 16.04

Background

I believe Ubuntu 16.04 comes with PostgreSQL 9.5. Thats good for a start, but it is a matter of time before you have the need of a PostgreSQL 9.6 cluster. For me it was to import a PG backup from Heroku.

The procedure couldn't have been any easier and is described below. If you are interested in upgrading your old cluster to 9.6 afterwards, you may be interested in this.

Instructions

@jcxk
jcxk / gist:39cc7aace835bef24352f2b8d61f970e
Last active April 19, 2017 13:30
package explore truffle
https://github.com/search?utf8=%E2%9C%93&q=truffle+filename%3Apackage.json&type=Code
@jcxk
jcxk / gist:83c1318572c77a92a61a52581ac50a02
Created January 5, 2017 11:47
dockerForMac config loopback fix xdebug
sudo ifconfig lo0 alias 10.254.254.254
xdebug.remote_host=10.254.254.254
xdebug.idekey = PHPSTORM
xdebug.remote_connect_back=0
[mysqld]
#innodb_log_archive=OFF
innodb_log_file_size = 2G
innodb_buffer_pool_size=6G
max_allowed_packet = 1024M
innodb_log_buffer_size = 1024M
innodb_file_format=Barracuda
innodb_file_format_max=Barracuda
innodb_file_per_table=1
innodb_read_io_threads=4
@jcxk
jcxk / mysql_info.sh
Created March 24, 2016 08:17
mysql_info.sh
mysql -uroot -p -NBe 'SHOW VARIABLES' | sed 's,\t,^=,' | column -ts^ | tr "\n" '@' | eval $(echo "sed '" "s,@\("{a..z}"\),\n\n\1,;" "'") | tr '@' "\n" | sed 's,^,# ,g' | grep timeout