Skip to content

Instantly share code, notes, and snippets.

View marti1125's full-sized avatar
🐍

Willy Aguirre marti1125

🐍
View GitHub Profile
@marti1125
marti1125 / gist:8c25d87b921e6275ef7e
Created July 4, 2015 06:05
install nodejs from source
remove all version of node
sudo make uninstall
tar -xvzf
./configure && make && sudo make install
@marti1125
marti1125 / gist:4247ffc146c6a4c4c21a
Created July 2, 2015 23:34
update size of hard disk virtualbox
C:\Program Files\Oracle\VirtualBox
λ VBoxManage.exe modifyhd "C:\Users\Willy\VirtualBox VMs\ubuntu-test\ubuntu-test.vdi" --resize 20000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
@marti1125
marti1125 / gist:fc441d7cf62bf42de923
Created June 30, 2015 05:36
run chrome external files
chrome --allow-file-access-from-files
@marti1125
marti1125 / gist:d600675e319a7b9c918e
Last active August 29, 2015 14:23
[config] P6Spy in playframework 1.3 using mysql
application.conf
db.default.driver=com.p6spy.engine.spy.P6SpyDriver
jpa.default.dialect=org.hibernate.dialect.MySQLDialect
http://www.mkyong.com/hibernate/how-to-display-hibernate-sql-parameter-values-solution/
Creating project from local git repos. If you have any errors, it may be from missing repositories.
To clone repositories:
./cordova-coho/coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r firefoxos -r js -r plugins
mkdir cordova-cli/node_modules
(cd cordova-lib/cordova-lib/ && npm install)
(cd cordova-plugman/ && npm install)
mkdir cordova-cli/node_modules
ln -s ../../cordova-lib/cordova-lib cordova-cli/node_modules
(cd cordova-cli && npm install)
To update all repositories:
(view as text)
Creating project from local git repos. If you have any errors, it may be from missing repositories.
To clone repositories:
./cordova-coho/coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r firefoxos -r js -r plugins
mkdir cordova-cli/node_modules
(cd cordova-lib/cordova-lib/ && npm install)
(cd cordova-plugman/ && npm install)
mkdir cordova-cli/node_modules
ln -s ../../cordova-lib/cordova-lib cordova-cli/node_modules
var map = new Map();
map.set("foo", "bar");
map.set("bb", "teeee");
map.set("aa", "bgggar");
var lineas = []
for (var key of map.keys()) {
lineas.push(key);
}
@marti1125
marti1125 / gist:d1752ab708688fd0a335
Created April 5, 2015 05:37
Imagen play framework
#{extends 'main.html' /}
#{set title:'Maquinarias' /}
<div class="row">
#{list items:tiposDeMaquinarias, as: 'tipoDeMaquinaria'}
<div class="col-md-3">
<img class="col-md-12" src="@{'/public/img'}/${tipoDeMaquinaria.img_id}.png" />
<br/>
<h4 class="center">${tipoDeMaquinaria.nombre}</h4>
G:\scala\src\scaladoc\scala\tools\nsc (2.11.x)
λ sbt console
[warn] The global sbt directory is now versioned and is located at C:\Users\Willy\.sbt\0.13.
[warn] You are seeing this warning because there is global configuration in C:\Users\Willy\.sbt but not in C:
\Users\Willy\.sbt\0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Set current project to nsc (in build file:/G:/scala/src/scaladoc/scala/tools/nsc/)
[info] Updating {file:/G:/scala/src/scaladoc/scala/tools/nsc/}nsc...
[info] Resolving org.scala-lang#scala-library;2.10.3 ...
[info] Resolving org.scala-lang#scala-compiler;2.10.3 ...
(view as text)
No platforms were selected. Please choose at least one of the supported platforms.
Usage: node C:\Users\Willy\slave_firefoxos\cordova-firefoxos\build\cordova-mobile-spec\createmobilespec\createmobilespec.js PLATFORM... [--help] [--plugman] [--link] [--global] [--globalplugins] [--skipjs] [--skiplink] [directoryName]
A project will be created with the mobile-spec app and all the core plugins.
At least one platform must be specified. See the included README.md.
PLATFORM: [--<amazon|android|blackberry10|ios|windows|windows8|wp8>]