Skip to content

Instantly share code, notes, and snippets.

View jthmiranda's full-sized avatar
🎯
Focusing

Jonathan Miranda jthmiranda

🎯
Focusing
View GitHub Profile
@jthmiranda
jthmiranda / unmaskdocker.sh
Created September 29, 2015 19:15
to enable again when docker daemon is masked... yet don't know why happen
# when you try to start docker
# sudo systemctl start docker
# and the output is: Failed to start docker.service: Unit docker.service is masked.
#
#
# ls -la /etc/systemd/system | grep docker
# see for /dev/null if there is
systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service
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 / owncloud.conf
Created October 21, 2015 14:22
Install ownCloud in a subdirectory using nginx
upstream php-handler {
server 127.0.0.1:9000;
#server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name example.com;
return 301 https://$server_name$request_uri;
}
@jthmiranda
jthmiranda / openerp-server.conf
Created October 13, 2014 19:42
config file for openerp 7
[options] ;
This is the password that allows database operations: ;
admin_passwd = admin
db_host = False
db_port = False
db_user = openerp
db_password = False
addons_path=/opt/openerp/server/addons
;logfile = /var/log/openerp/openerp-server.log
xmlrpc_port = 8069
@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;