Skip to content

Instantly share code, notes, and snippets.

View jthmiranda's full-sized avatar
🎯
Focusing

Jonathan Miranda jthmiranda

🎯
Focusing
View GitHub Profile
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/untitle --nointeraction
https://www.geekrar.com/create-macos-catalina-iso-file/
https://superuser.com/questions/1351460/how-can-i-install-a-macos-vm-guest-under-virtualbox-on-a-mac-host/1351461#1351461
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
@jthmiranda
jthmiranda / osx_setup.md
Created January 18, 2017 19:07 — forked from mcls/osx_setup.md
Setup mac for ruby dev
@jthmiranda
jthmiranda / install.sh
Created January 13, 2017 05:45
instalar jekill ubuntu 14
sudo apt-get install ruby2.0 ruby2.0-dev
sudo apt-get install zlib1g-dev
sudo gem2.0 install jekyll
@jthmiranda
jthmiranda / Example.java
Created January 2, 2017 21:20
Get the time lenght from video files using the next repo https://github.com/caprica/vlcj-info
import uk.co.caprica.vlcjinfo.MediaInfo;
import uk.co.caprica.vlcjinfo.Section;
import uk.co.caprica.vlcjinfo.Sections;
public class Ejemplo {
public static void main(String[] args) {
System.setProperty("jna.library.path", "C:\\Program Files\\MediaInfo"); //windows path
MediaInfo media = MediaInfo.mediaInfo("C:\\Videos\\yourVideo.mp4");
Sections sections = media.sections("Video");

Keybase proof

I hereby claim:

  • I am jthmiranda on github.
  • I am jonathan_miranda (https://keybase.io/jonathan_miranda) on keybase.
  • I have a public key whose fingerprint is 71AB FD66 07BC DC65 91FD 1355 D028 DB1F 3275 DF47

To claim this, I am signing this object:

@jthmiranda
jthmiranda / agreements.html
Created October 17, 2016 07:09
uso para expresar campo requerido al usuario
<div class="form-group required">
<label class="col-md-2">&#160;</label> <!-- remove class control-label -->
<div class="col-md-4">
<div class="checkbox">
<label class='control-label'> <!-- use this class as the red * will be after control-label -->
<input class="" id="id_tos" name="tos" required="required" type="checkbox" /> I have read and agree to the Terms of Service
</label>
</div>
</div>
</div>
@jthmiranda
jthmiranda / moodle_nginx.conf
Created April 29, 2016 16:12
configuración de moodle
upstream moodle-app {
server ip/domainname/dockername;
}
# creando una zona de memoria de 10 megas para IP's
# taza de concurrencia a 1 solicitud por segundo
# limit_req_zone $binary_remote_addr zone=admin:10m rate=10r/s;
server {
listen 80;
server_name escuela.dominio.com;
@jthmiranda
jthmiranda / persistence.xml
Created April 12, 2016 14:30
ejemplo de unidad de persistencia con declaracion de propiedades para realizar consultas JPQL desde el IDE
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="PUnombre" transaction-type="JTA">
<jta-data-source>jdbc/recurso</jta-data-source>
<properties>
@jthmiranda
jthmiranda / host
Created March 3, 2016 20:31
some address to use on file host
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@jthmiranda
jthmiranda / node-folder-structure-options.md
Created February 22, 2016 21:36 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin