Skip to content

Instantly share code, notes, and snippets.

View aramirez92's full-sized avatar
:octocat:
Working from home

Alfredo Ramirez Ortega aramirez92

:octocat:
Working from home
View GitHub Profile
@aramirez92
aramirez92 / embedded-file-viewer.md
Created January 3, 2023 07:09 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

@aramirez92
aramirez92 / docker-compose.yaml
Created March 26, 2019 23:13
Mongo + NodeJS
version: '3'
services:
app:
container_name: app
restart: always
build: .
ports:
- '80:3000'
links:
- mongodb
@aramirez92
aramirez92 / graphics_magick_center_image_on_transparent_background.js
Last active July 19, 2016 15:02 — forked from edwardhotchkiss/graphics_magick_center_image_on_canvas.js
Use GM Module (Graphics Magick) for Node.js to center an image on a transparent background.
var gm = require('gm');
var canvasWidth = 248;
var canvasHeight = 389;
gm(__dirname + '/original.jpg').size(function(error, size) {
if (error) {
console.error(error);