Skip to content

Instantly share code, notes, and snippets.

View jamessom's full-sized avatar
✔️
Working

Jamessom Queiroz jamessom

✔️
Working
  • Brasilia, Brasil
View GitHub Profile
@jamessom
jamessom / silver.md
Created February 7, 2017 14:47 — forked from sean2121/silver.md

Ruby Association Certified Ruby Examination Silver Sample Questions

Q1. Which of the following have true values in Ruby? (Choose two.)

  • (a) ""
  • (b) 0
  • (c) false
  • (d) nil

@jamessom
jamessom / google-fonts.sh
Created September 4, 2017 01:54 — forked from dyoungwd/google-fonts.sh
Install Google Fonts on fedora
# Original : Michalis Georgiou
# Modified : D4zzy for Fedora
_wgeturl="https://github.com/google/fonts/archive/master.tar.gz"
_gf="google-fonts"
# install wget
echo "Installing wget..."
sudo dnf install wget
@jamessom
jamessom / excel-csv-download-slim-php.md
Created March 26, 2018 03:40
Creating and downloading Excel files with Slim

Creating and downloading Excel files with Slim

Maybe you need the possibility to create excel files and automaticly download it.

To be able to create Excel docs I'm using PHPExcel. Here is a tiny example how to create and download the created file directly from your server.

Installation

@jamessom
jamessom / PHPExcel_Basics.md
Created March 26, 2018 04:24 — forked from r-sal/PHPExcel_Basics.md
PHPExcel Notes and code snippets

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet:

@jamessom
jamessom / Capybara.md
Created May 15, 2018 00:56 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@jamessom
jamessom / bitbucket-pipelines.yml
Created June 12, 2018 03:36 — forked from mcnamee/bitbucket-pipelines.yml
Bitbucket Pipelines - Deploy via FTP to shared hosting
# Installation ---
# 1. In Bitbucket, add $FTP_USERNAME $FTP_PASSWORD and $FTP_HOST as environment variables.
# 2. Commit this file to your repo
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will
# push everything and initial GitFTP)
#
# Usage ---
# - On each commit to master branch, it'll push all files to the $FTP_HOST
# - You also have the option to 'init' (from Bitbucket Cloud) - pushes everything and initialises
# - Finally you can also 'deploy-all' (from Bitbucket Cloud) - if multiple deploys fail, you
@jamessom
jamessom / postman-deb.sh
Created September 24, 2019 12:25 — forked from SanderTheDragon/postman-deb.sh
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
ls Postman*.tar.gz > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
fi
echo "Downloading latest Postman tarball"
curlExists=$(command -v curl)
@jamessom
jamessom / watch_files.md
Last active December 5, 2019 13:53 — forked from ArturT/.bash_profile
Watch file changes with nodemon and run rspec for the test file or specified line number test. Use spring with rspec optionally.

Watch files with Nodemon and RSpec

Watch file changes with nodemon and run rspec for the test file or specified line number test. Use spring with rspec optionally.

We need to install Nodemon

$ npm install -g nodemon

Add this in your default bash:

  • ~/.bash_profile
  • ~/.zshrc
@jamessom
jamessom / git.md
Created December 7, 2019 15:53 — forked from pedronauck/git.md
Terminal commands

Comandos Gerais

Clonar um Repositório

$ git clone 'nome-do-repositório'

Verificar status

$ git status
@jamessom
jamessom / index.html
Created March 27, 2020 19:59 — forked from maykbrito/index.html
WS special hands on! - Texto dia 1
<p>
Ficar em casa em períodos longos, não deve ser nada fácil.
</p>
<p>
Iremos catalogar ideias, brincadeiras, jogos, filmes, livros, cursos, dicas e tudo que for necessário para tornar esse momento mais interessante.
</p>
<p>
Comece clicando em ver ideias para ver as ideias cadastradas e contribua adicioando a sua ideia.
</p>