Skip to content

Instantly share code, notes, and snippets.

View jassriver's full-sized avatar
:shipit:
WordPress Today, WordPress Tomorrow, WordPress Always!

River jassriver

:shipit:
WordPress Today, WordPress Tomorrow, WordPress Always!
View GitHub Profile
@jassriver
jassriver / my_ps1_prompt_color_favorite.md
Last active October 20, 2022 09:22
Minha cor favorita do prompt no centos 7 :3

Minha cor favorita do prompt do terminal no Centos 7 xD

PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'

Para tornar a cor permante, insira em

/etc/bashrc

(você pode encontrar o diretório verificando o arquivo .bashrc no diretório /root)

@jassriver
jassriver / README.md
Created May 24, 2023 03:31 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@jassriver
jassriver / index.php
Created June 6, 2023 19:33
pegar_filmes_de_2_anos_atras_ate_agora
<?php
$ano_atual = date('Y');
$dois_anos_atras = $ano_atual - 2;
$args = array(
'post_type' => 'filmes',
'meta_query' => [
'relation' => 'AND',
[
'key' => 'genero',
'value' => 'ação',
@jassriver
jassriver / multiple_ssh_setting.md
Created June 14, 2023 12:01 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"