Skip to content

Instantly share code, notes, and snippets.

View lezi's full-sized avatar
:octocat:

Osvaldo Júnior "mwanalezi" lezi

:octocat:
View GitHub Profile
@lezi
lezi / mysqlsilent.txt
Created November 13, 2011 20:41
Silent instalation of mysql
This entry provides instructions for “silently” installing MySQL on a Microsoft Windows server. I use the term “silent install” to describe the method of passing parameters to the Microsoft Installation Package (MSI) to bypass installation screens. This allows you to deploy MySQL with your application and to install MySQL without end-user intervention. The developer can define the install location, the appropriate storage engines, the root password and the server configuration.
Most application developers use some sort of software for creating an application installer. Common tools include Install Shield, Wise Installation, InstallBuilder and Windows Installer. These installation software tools can also be used to install MySQL by launching the MySQL MSI and the MySQL Instance configuration utility ( MySQLInstanceConfig.exe ) from the command-line.
To get started, download the Windows Essentials from http://dev.mysql.com/downloads.
Then, look for an option in your installation tool to execute the foll
@lezi
lezi / install-tensorflow-using-anaconda.md
Created April 22, 2020 19:56 — forked from johndpope/install-tensorflow-using-anaconda.md
Create a virtual environment using Anaconda and install various ML tools and TensorFlow
@lezi
lezi / paisesPortuguesIngles.sql
Created September 20, 2016 13:51 — forked from thiagosilr/paisesPortuguesIngles.sql
Tabela MYSQL com o nome de todos os países em Português / Inglês
--
-- Estrutura da tabela `pais`
--
CREATE TABLE IF NOT EXISTS `pais` (
`paisId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`paisNome` varchar(50) NOT NULL,
`paisName` varchar(50) NOT NULL,
PRIMARY KEY (`paisId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=253 ;
EditableValueHolder evh = (EditableValueHolder) this.uiInput;
evh.resetValue();
FacesContext ctx = FacesContext.getCurrentInstance();
List<String> clientIds = Lists.newArrayList("form:input1", "form:input2");
UIViewRoot view = ctx.getViewRoot();
view.resetValues(ctx, clientIds); // reseta os componentes da lista
/**
*
* Hooking up Watchify with Google's Web Starter Kit
*
* The primary use cases for Browserify/Watchify are:
* - Node.js-style `require`s on the client-side
* - Use of npm modules on the client-side
* - No more new <script> tags for each new script/module
*
* 1. npm install --save-dev vinyl-source-stream browserify watchify gulp-notify
@lezi
lezi / gist:5e838912de94d5acb259
Created December 25, 2015 11:17 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@lezi
lezi / A-Pen-by-osvaldo-a.-júnior-"mwanalezi".markdown
Created August 21, 2013 13:46
A CodePen by osvaldo a. júnior "mwanalezi".
<?php
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
/* Drupal theming: Get field values in Drupal 7
Submitted by criz on Thu, 10/06/2011 - 00:54
Drupal 7 has another array structure for storing field values in $node. There is a new array key for the language.
For example:
*/
<?php
$node->field_your_field['en'][0]['value'];
?>
This can be quite useful but makes it difficult to access the right data.
# Puppet manifest for my PHP dev machine
class iptables {
package { "iptables":
ensure => present;
}