Skip to content

Instantly share code, notes, and snippets.

View CesarChaMal's full-sized avatar

Cesar Francisco Chavez Maldonado CesarChaMal

View GitHub Profile
@CesarChaMal
CesarChaMal / quickpick
Created January 30, 2019 15:31 — forked from Dyrcona/quickpick
A bash script to batch git cherry-pick of many commits from a single source branch. It can become a new git command if you save it in your path with a name like git-quickpick. Then, you can run it like so `git quickpick foo/bar'. Very handy, that.
#!/bin/bash
# Author: Thomas Berezansky <[email protected]>
# Author: Jason Stephenson <[email protected]>
#
# Feel free to use and to share this script in anyway you like.
# This script is intended as a shortcut for the git cherry-pick
# command when you have several commits that you want to cherry-pick
# into your local branch from another branch. It often results in a
<?php
/*
* Plugin Name: WP Remove Assets
* Plugin URI: https://gist.github.com/CesarChaMal/d8bc69fcbb5d0e8562a60682b3a08007
* Version: 0.1
* Description: Filter particular scripts and style to load in posts or pages that don't need it.
* Author: Cesar Chavez
* Author URI: https://github.com/CesarChaMal
*/
<?php
/*
* Plugin Name: WP Remove Assets
* Plugin URI: https://github.com/CesarChaMal
* Version: 0.1
* Description: Filter particular scripts and style to load in posts or pages that don't need it.
* Author: Cesar Chavez
* Author URI: https://github.com/CesarChaMal
*/
@CesarChaMal
CesarChaMal / remove-resources.php
Created January 7, 2019 22:03 — forked from rilwis/remove-resources.php
Remove scripts and styles for metabox.io
<?php
// Remove styles of plugin
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
add_filter( 'bbp_default_styles', '__return_empty_array' );
// Remove bbPress scripts on non-bbPress pages
add_filter( 'bbp_default_scripts', function ( $scripts )
{
return is_bbpress() ? $scripts : [ ];
} );
@CesarChaMal
CesarChaMal / gist:bb427a3a407bd6b06d106e4de148a773
Created October 22, 2018 09:34 — forked from trodrigues/gist:1023167
Checkout only certain branches with git-svn
If you want to clone an svn repository with git-svn but don't want it to push all the existing branches, here's what you should do.
* Clone with git-svn using the -T parameter to define your trunk path inside the svnrepo, at the same time instructing it to clone only the trunk:
git svn clone -T trunk http://example.com/PROJECT
* If instead of cloning trunk you just want to clone a certain branch, do the same thing but change the path given to -T:
git svn clone -T branches/somefeature http://example.com/PROJECT
@CesarChaMal
CesarChaMal / XGH - PT-BR.txt
Last active May 11, 2018 11:18 — forked from banaslee/XGH - de-de.txt
eXtreme Go-Horse Process
Fonte: http://gohorseprocess.wordpress.com
1- Pensou, não é XGH.
XGH não pensa, faz a primeira coisa que vem à mente. Não existe
segunda opção, a única opção é a mais rápida.
2- Existem 3 formas de se resolver um problema, a correta, a errada e
a XGH, que é igual à errada, só que mais rápida.
@CesarChaMal
CesarChaMal / README.md
Created December 29, 2017 21:47 — forked from magnetikonline/README.md
NSSM - the Non-Sucking Service Manager cheatsheet.
@CesarChaMal
CesarChaMal / sublimetext
Created December 26, 2017 15:20 — forked from ianchan85/sublimetext
Sublime text 3 license
----- BEGIN LICENSE -----
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
@CesarChaMal
CesarChaMal / sublime.md
Created December 26, 2017 15:11
Sublime
Ctrl + Shift + P       - Command Pallete
Ctrl + ~               - Console

Ctrl + g               - go to line
Ctrl + r               - go to function
Ctrl + Shift + up/down - move line up/down
F5                     - razeni podle abecedy vybraneho textu
F6                     - spellcheck
F11 - fullscreen