Skip to content

Instantly share code, notes, and snippets.

View jelera's full-sized avatar

Jose Elera jelera

View GitHub Profile
@jelera
jelera / seeds.rb
Created December 4, 2019 14:59
Sample seeds.rb file
#----------------------------------------------------------------------------#
#
# => Seed File
#
#----------------------------------------------------------------------------#
# Add this line, only for this project. Later on, you'll deal with Rails'
# gemfile
require 'faker'

Lightning Talks FAQ

What is a Lightning Talk?

A lightning talk is a very short presentation lasting only a few minutes, given at a conference or similar forum. Several lightning talks will usually be delivered by different speakers in a single session, sometimes called a data blitz.

Why?

The goal of lightning talks is to articulate a topic in a quick, insightful, and clear manner. These concise and efficient talks are intended to grab the attention of the audience, convey key information, and allow for several presenters to share their ideas in a brief period of time

It is also a great way to increase your communication skills and gradually get the hang of conducting yourself in public speaking.

@jelera
jelera / codechallenge.js
Last active August 2, 2019 18:02
Code Challenge to pad zeroes to integers inside a string
//
//****************************************************************************//
//
// HOW TO RUN IT
// ------------------------------
// Open the command line and using the node.js interpreter
// $ node codechallenge.js
//
@jelera
jelera / presentation-web-security.md
Created May 18, 2019 18:15
FSP Best Practices for Web Security

Best practices for Web Security

Flatiron Students Presents

Presented by:

  • Nick Moore
  • Jackson Robbins
  • Jose Elera

Outline

  • Intro to Web Security
  • Why web security is important?
@jelera
jelera / presentation-web-security.md
Created May 18, 2019 18:15
FSP Best Practices for Web Security

Best practices for Web Security

Flatiron Students Presents

Presented by:

  • Nick Moore
  • Jackson Robbins
  • Jose Elera

Outline

  • Intro to Web Security
  • Why web security is important?
@jelera
jelera / gulpfile.js
Created August 18, 2016 02:06
Gulp Frontend Build System
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var pug = require('gulp-pug');
var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var gulpIf = require('gulp-if');
var cssnano = require('gulp-cssnano');
var sourcemaps = require('gulp-sourcemaps');
var imagemin = require('gulp-imagemin');
#!/bin/bash
# This script has been tested with:
# - Ubuntu Linux 14.04 LTS
# - Thinkpad X220 Tablet
if [ $(xrandr --dryrun | awk '/LVDS1 connected/ {print $5}') = "normal" ]; then
xrandr -o right
xsetwacom set "Wacom ISDv4 E6 Pen stylus" Rotate CW
xsetwacom set "Wacom ISDv6 E6 Finger touch" Rotate CW
xsetwacom set "Wacom ISDv4 E6 Pen eraser" Rotate CW
@jelera
jelera / mate_wallpaper_changer.sh
Created December 5, 2014 03:27
MATE Desktop Wallpaper Changer
#!/bin/bash
###############################################################################
##
## Name : mate_wallpaper_changer
## Usage : ./mate_wallpaper_changer
## Description : This script will randomly change the wallpaper image in the
## MATE Desktop, using a set interval.
##
## Last Updated : Thu 04 Dec 2014 09:23:46 PM CST
##
@jelera
jelera / .fonts.conf
Created October 26, 2014 19:42
better font hinting for CentOS 7
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="autohint" >
@jelera
jelera / battery_charge.sh
Created October 23, 2014 19:14
This script prints out the battery charge on a Linux (Ubuntu 14.04 Trusty and CentOS7/RHEL7) or OSX Mountain Lion laptop
#!/bin/bash
###############################################################################
# Name : battery_charge
# Usage : ./battery_charge
# Description : This script prints out the battery charge on a Linux (Ubuntu
# 14.04 Trusty and CentOS7/RHEL7) or OSX Mountain Lion laptop
#
# Last Updated : Thu 23 Oct 2014 01:47:13 PM CDT
#
# Author : Jose Elera (https://github.com/jelera)