Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Jonathan Miranda jthmiranda

🎯
Focusing
View GitHub Profile
View gist:4b1c27d26d61cf9ba52b7f76822d36df
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 Jan 18, 2017 — forked from mcls/osx_setup.md
Setup mac for ruby dev
View osx_setup.md
@jthmiranda
jthmiranda / install.sh
Created Jan 13, 2017
instalar jekill ubuntu 14
View install.sh
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 Jan 2, 2017
Get the time lenght from video files using the next repo https://github.com/caprica/vlcj-info
View Example.java
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");
View keybase.md

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 Oct 17, 2016
uso para expresar campo requerido al usuario
View agreements.html
<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 Apr 29, 2016
configuración de moodle
View moodle_nginx.conf
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 Apr 12, 2016
ejemplo de unidad de persistencia con declaracion de propiedades para realizar consultas JPQL desde el IDE
View persistence.xml
<?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 Mar 3, 2016
some address to use on file host
View 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 Feb 22, 2016 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?
View node-folder-structure-options.md

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