Skip to content

Instantly share code, notes, and snippets.

View vaporic's full-sized avatar
🏠
Working from home

Hugo Epinosa vaporic

🏠
Working from home
View GitHub Profile
@vaporic
vaporic / remote.txt
Last active January 18, 2017 20:53
Remote Jobs
https://authenticjobs.com/#remote=true
https://www.wfh.io/jobs
https://weworkremotely.com/
https://stackoverflow.com/jobs/remote-developer-jobs
http://jobslist.io/?q=anywhere
https://inbound.org/jobs/search?query=&where=Remote
Ofertas
https://www.computrabajo.com.mx/ofertas-de-trabajo/oferta-de-trabajo-de-programador.andevaspollo-worldpress-remoto-en-benito-juarez-DE8FFF33F78759FE?utm_source=opcionempleo&utm_medium=referral&utm_campaign=opcionempleo
@vaporic
vaporic / cloud9-php5.6.md
Created January 25, 2017 22:20
Update Cloud9 php5.6
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install libapache2-mod-php5.6
sudo a2dismod php5
sudo a2enmod php5.6
sudo add-apt-repository ppa:ondrej/php5-compat
sudo apt-get update
apt-get install php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xml php5.6-xmlrpc
@vaporic
vaporic / parseVideo.php
Created January 28, 2017 02:29
Parse Video Youtube & Vimeo
<?php
function parseVideo(url) {
// - Supported YouTube URL formats:
// - http://www.youtube.com/watch?v=My2FRPA3Gf8
// - http://youtu.be/My2FRPA3Gf8
// - https://youtube.googleapis.com/v/My2FRPA3Gf8
// - Supported Vimeo URL formats:
// - http://vimeo.com/25451551
// - http://player.vimeo.com/video/25451551
// - Also supports relative URLs:
@vaporic
vaporic / uploadFile.php
Created March 23, 2017 19:42
Upload File Laravel
<?php
public function uploadFile(Request $request)
{
$file = $request->file;
$extension = $file->getClientOriginalExtension();
$file_name = md5(time()).".".$extension;
$id_user = $request->id;
if(!empty($file)) {
@vaporic
vaporic / index.html
Created June 3, 2017 05:41
visualizar thumbnail de youtube
<iframe width="420" height="315" src="//www.youtube.com/embed/1sIWez9HAbA" frameborder="0" allowfullscreen></iframe>
<div>Click the thumbnail</div>
@vaporic
vaporic / avatar.html
Last active June 26, 2017 19:42
Avatar Generator from Name
<canvas id="user-icon" width="256" height="256"></canvas>
@vaporic
vaporic / accordion.js
Created July 14, 2017 16:07
Accordion with plus/minus icon
function toggleIcon(e) {
$(e.target)
.prev('.panel-heading')
.find(".more-less")
.toggleClass('glyphicon-plus glyphicon-minus');
}
$('.panel-group').on('hidden.bs.collapse', toggleIcon);
$('.panel-group').on('shown.bs.collapse', toggleIcon);
<?php
/**
* Get Vimeo video id from url
*
* Supported url formats -
*
* https://vimeo.com/11111111
* http://vimeo.com/11111111
@vaporic
vaporic / readme.md
Created November 24, 2017 17:59 — forked from lenivene/readme.md
Get YouTube url ID

Example code

$link = "https://www.youtube.com/watch?v=sOnqjkJTMaA";
$youtube_ID = get_youtube_ID( $link );

echo $youtube_ID;
@vaporic
vaporic / usb_boot_macos.txt
Created May 10, 2018 20:35
Usb Booteable Terminal MacOS
COMANDOS A EJECUTAR:
1. diskutil list
2. diskutil unmountdisk /dev/disk1
3. sudo dd if= (Arrastramos archivo iso) of=/dev/disk1 bs=1m
4. Password
5. diskutil eject /dev/disk1