This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _create_views() { | |
global $wpdb; | |
/* | |
* Post Type book and its ACF custom fields | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Temporizador | |
* Executa funções após um determinado período de tempo, | |
* o mesmo que usar delay(), porém sem interromper o fluxo do programa | |
* Autor: Edir Pedro | |
* Website: https://gist.github.com/edirpedro/15afd9681c7cb6a0a8fd537f02cb3434 | |
*/ | |
class Temporizador { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Automate uploading backups to S3 with AWS CLI | |
# Go to AWS Console and create an user with access to your bucket and a single permission to the action "PutObject" | |
# Sample policy: {"Version": "2018-01-15","Statement": [{"Effect": "Allow","Action": "s3:PutObject","Resource": ["arn:aws:s3:::BUCKETNAME/*","arn:aws:s3:::BUCKETNAME"]}]} | |
# Login to SSH as root | |
# sudo apt-get install python-pip | |
# sudo pip install awscli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Custom WP Usermeta Table | |
* | |
* Version: 1.0 | |
* Author: Edir Pedro | |
* Website: https://gist.github.com/edirpedro/528c671b31557be8769620337e2b44a0 | |
* | |
* How to use? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* Lista de checagem para fazer Deploy via Webhook | |
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = | |
* | |
* Coloque este arquivo na pasta ./public_html | |
* | |
* O servidor possui acesso via SSH? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gulp Quick Start Tool | |
# | |
# Starts a gulp watch checking if NPM and dependencies are installed. | |
# Just put this file next to package.json and gulpfile.js, then double click on it to run. | |
# This file has to be executable: chown +x gulp.tool | |
# | |
# author: Edir Pedro | |
# email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@author: Edir Pedro | |
@website: http://edirpedro.com.br | |
@version: 1.1.0 | |
## Install Node LTS version to avoid incompatibilities | |
https://nodejs.org | |
## Creating NPM package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lista | |
AC, Acre | |
AL, Alagoas | |
AP, Amapá | |
AM, Amazonas | |
BA, Bahia | |
CE, Ceará | |
DF, Distrito Federal | |
ES, Espirito Santo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* WP Instagram Feed | |
* | |
* To get a new Access Token, change the [], put it in the browser and it will return with your token in the next URL. | |
* https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URL]&response_type=token | |
*********************************************************************/ | |
function wp_instagram_feed($count = 20) { | |
$slug = "instagram_feed_self"; | |
$access_token = '[ACCESS_TOKEN_HERE]'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gform_wrapper { | |
width: 100%; | |
max-width: 100%; | |
} | |
.gform_wrapper form { | |
width: 105%; | |
padding-left: 2.5%; | |
margin-left: -2.5%; | |
} |
NewerOlder