Skip to content

Instantly share code, notes, and snippets.

@RocAlayo
RocAlayo / Dockerfile
Last active August 29, 2015 14:02
Dockerfile for debian with NodeJS, MongoDB and git support installed
# DOCKER-VERSION 1.0.0
FROM debian:latest
#repos mongo and node
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
RUN echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
RUN apt-get update
#install nodejs and mongodb

Keybase proof

I hereby claim:

  • I am RocAlayo on github.
  • I am rocalayo (https://keybase.io/rocalayo) on keybase.
  • I have a public key whose fingerprint is 7663 F629 D542 4228 D004 4520 B617 0060 D39C 0A1A

To claim this, I am signing this object:

Array.from(dom.window.document.querySelectorAll("a")).forEach((a) => {
const title = a.textContent;
const link = a.href;
if(link.includes('https://lse.rl.talis.com/lists/')) {
console.log(link, title);
}
})
@RocAlayo
RocAlayo / fix_google_photos_exported_images.py
Last active December 10, 2021 16:21
Script to fix exported metadata of images from google photos
from os import path, system
import json
from datetime import datetime
f = open("./parse-files.txt", mode='r', encoding='utf-8')
# output = subprocess.check_output(f'exiftool -filename -r -if \'($filetype eq "JPG" or $filetype eq "JPEG") and (not $createdate) and (not $datetimeoriginal)\' . | grep "========" | sed "s/======== //gi"', shell=True, text=True)