Remover arquivos deletados, faz um filtro:
- git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached
Remover, parar de versionar arquivos individuais:
- git rm nameFileHere --cached
Exportar log de commit para csv:
| {{-- file: /app/views/layouts/master.blade.php --}} | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| {{-- Part: all meta-related contents --}} | |
| @yield('head-meta') | |
| {{-- Part: site title with default value in parent --}} | |
| @section('head-title') |
| <div class="row" id="box-search"> | |
| <div class="thumbnail text-center"> | |
| <img src="img/cafe.jpg" alt="" class="img-responsive"> | |
| <div class="caption"> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, quisquam?</p> | |
| </div> | |
| </div> | |
| </div> |
Remover arquivos deletados, faz um filtro:
Remover, parar de versionar arquivos individuais:
Exportar log de commit para csv:
| <?php | |
| class Page_Object { | |
| public $ID; | |
| public $original_post; | |
| public $data = array(); | |
| public function __construct( $id ) { |
| // Usage: | |
| // get_id_by_slug('any-page-slug'); | |
| function get_id_by_slug($page_slug) { | |
| $page = get_page_by_path($page_slug); | |
| if ($page) { | |
| return $page->ID; | |
| } else { | |
| return null; | |
| } |
| #!/bin/sh | |
| # Sublime Text 3 Install (last update: Monday 13 March 2017) | |
| # | |
| # No need to download this script, just run it on your terminal: | |
| # | |
| # curl -L git.io/sublimetext | sh | |
| # Detect the architecture |
This should help you get Sendmail installed with basic configuration on Ubuntu.
sudo apt-get install sendmail/etc/hosts file: nano /etc/hosts127.0.0.1 localhost yourhostnamesudo sendmailconfigsudo service apache2 restart| /** | |
| * Remove acentos de caracteres | |
| * @param {String} stringComAcento [string que contem os acentos] | |
| * @return {String} [string sem acentos] | |
| */ | |
| function removerAcentos( newStringComAcento ) { | |
| var string = newStringComAcento; | |
| var mapaAcentosHex = { | |
| a : /[\xE0-\xE6]/g, | |
| e : /[\xE8-\xEB]/g, |
| <?php | |
| # Load slim WP | |
| define( 'WP_USE_THEMES', false ); | |
| require( './wp-load.php' ); | |
| # http://phpexcel.codeplex.com/ | |
| require_once dirname(__FILE__) . '/Classes/PHPExcel.php'; | |
| global $wpdb; | |
| $query = "SELECT * FROM $wpdb->comments |