Skip to content

Instantly share code, notes, and snippets.

View CesarChaMal's full-sized avatar

Cesar Francisco Francisco Chavez Maldonado CesarChaMal

View GitHub Profile
@CesarChaMal
CesarChaMal / db-backup-utils.sql
Created September 12, 2016 10:23 — forked from timabell/db-backup-utils.sql
Sql for simplifying and automating the process of loading/backing up multiple databases
USE master;
SET NOCOUNT ON
GO
-- Sql for simplifying and automating the process of loading/backing up multiple databases.
-- Optionally override the restored db name.
-- Also has proc for doing an upgrade of a backup file via an intermediate sql server version.
-- The UI for backup/restore in ssms takes many clicks and doesn't remember anything, this
-- script will allow you to codify repetive actions.
@CesarChaMal
CesarChaMal / gist:58fc4cb8dfdbe3dd69f07b29f72ed4fb
Created December 21, 2016 14:44 — forked from ngocdaothanh/gist:3764694
Scala Assignment: Recursion
package recfun
import scala.collection.mutable.ListBuffer
import common._
/** https://class.coursera.org/progfun-2012-001/assignment/view?assignment_id=4 */
object Main {
def main(args: Array[String]) {
println("Pascal's Triangle")
for (row <- 0 to 10) {
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@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
@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 / README.md
Created December 29, 2017 21:47 — forked from magnetikonline/README.md
NSSM - the Non-Sucking Service Manager cheatsheet.
@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 / 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 / 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 : [ ];
} );