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 / index.markdown
Last active May 12, 2020 15:55 — forked from pedrobachiega/index.markdown
Integrações RD Station - HTML puro

Integrações RD Station

HTML Puro

Para quem não tem conhecimento técnico, a integração via HTML Puro é a mais simples de integrar ao RD Station. Mas, infelizmente, ainda é preciso fazer algumas pequenas modificações no seu arquivo HTML.

Usando a API

Quatro coisas são necessárias editar/adicionar na sua página para a integração funcionar:

@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>
@jamessom
jamessom / rails-symbols-status-code.md
Created February 3, 2020 18:27
Lista de status code symbols do Rails

Lista de status code symbols do Rails

1xx Informational
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing
2xx Success
200 OK :ok
@jamessom
jamessom / generate_authorizad_keys.md
Last active February 4, 2020 16:34
Generate authorizad_keys

You have to create the .ssh directory and the authorized_keys file the first time.

Create the .ssh directory:

mkdir ~/.ssh

Set the right permissions:

chmod 700 ~/.ssh

@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 / 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 / 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 / redshift.conf
Created May 26, 2019 17:35
My redshift configuration
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=6500
temp-night=3500
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1
@jamessom
jamessom / wordpress-to-live-site.md
Last active March 9, 2019 00:54
Move wordpress to live site

Change the Site URL

UPDATE `wp_options` SET `option_value` = 'http://newsite' WHERE `option_id` IN (1, 2);

Fix Images and Broken Links by Updating Paths

UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://localhost', 'www.yourlivesite.com/');
UPDATE wp_posts SET guid = REPLACE(guid, 'http://localhost', 'www.yourlivesite.com/');
@jamessom
jamessom / lumen-app.txt
Created December 21, 2018 18:25
Create Lumen project via Docker
docker run --rm --interactive --tty --volume $PWD:/app composer create-project --prefer-dist laravel/lumen lumen-jwt