Skip to content

Instantly share code, notes, and snippets.

View dexterbrylle's full-sized avatar
:fishsticks:
SRE

Dexter Brylle dexterbrylle

:fishsticks:
SRE
View GitHub Profile
upstream app {
server 127.0.0.1:3000;
keepalive 16;
}
server {
listen 0.0.0.0:80;
server_name app.com www.app.com;
access_log /var/log/nginx/themixrapp.log;
@dexterbrylle
dexterbrylle / usersettings.json
Last active September 11, 2017 06:23
VS Code User Settings
{
"workbench.colorCustomizations": {
// The background is optional
"terminal.background": "#282a36",
"terminal.foreground": "#eff0eb",
"terminal.ansiBlack": "#282a36",
"terminal.ansiRed": "#ff5c57",
"terminal.ansiGreen": "#5af78e",
"terminal.ansiYellow": "#f3f99d",
"terminal.ansiBlue": "#57c7ff",
@dexterbrylle
dexterbrylle / ubuntu-dev-setup.md
Last active August 30, 2017 08:53
Ubuntu dev setup

Ubuntu Dev Environment setup

Chromium

sudo apt install -y chromium-browser

Chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
@dexterbrylle
dexterbrylle / gitlab-ci.yml
Created September 3, 2017 17:37
Gitlab CI for node/express
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:latest
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
@dexterbrylle
dexterbrylle / chart.html
Last active September 20, 2017 07:17
Chart html sample
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer",
{
title:{
text: "Skills Matrix"
AutoClose Tag
AutoRename Tag
Debugger for Chrome
*DotENV
*EditorConfig for VSCode
*GitLens
HTML CSS Support
HTML Snippets
Intellisense for CSS class names
*Javascript Standard Style
@dexterbrylle
dexterbrylle / gist:1b9bf0f7e98854c4ab3f733a7aaa1cf6
Created July 4, 2018 11:47
Change the location of macOS screenshots
# Create a new folder or choose an existing folder
defaults write com.apple.screencapture location /Users/<username>/Desktop/Screenshots
killall SystemUIServer
# That's it!
/**
* JS String Utils
* @author Dexter Brylle Matos <[email protected]>
*/
'use strict'
function toString (value) {
return value === null ? '' : value.toString()
}
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCMBtfx7lCNr+1OEVHbDws/w+IdjqJQ1B6tELswI0FoJNQg0B4H
0pd9rwhHtas+uV0zc+2ynZay4z/fj/9e2a27fZqDNI9tPL9lkx6npVtoNB+F+ktK
xhIpUDvQGP9orYYHQoUgrDJRT4kMS5J3TY44FryMjmEaCiFViXOhvGpf9wIDAQAB
AoGAcWeVer2MhcPGiCRky+oaLTFirpd3A8lXcsiLIYhcD5FML6r9t04qHMMmDJWo
M+uB/QrVpoQUqZp8f34qz1GybmSyTExYyNEeVSuUwik/Slt+yd8d3P9C1RFkfSgv
VHnlcLu6kswXyrvYC8W8eGeOTCuYsoMQSo1WrptPGaMqQKECQQC+2qQCsyuTtOMG
8dtFjdUul0XEZMJ39E1cKk/7WzKPh3OpFrwA0B0PoPhev7UsRzuJQSqvm8F9edr+
4onWai6xAkEAu9LE5A6nMspXSLan31NlN4YX1NIgANSvZBRJHSH2iDYAY+R2UbBa
3aPeyMnB8RcfYt1upxzA4abqJRkctfAzJwJAVANI6UtXpmic+2Shwmdh7WV3t7En