Skip to content

Instantly share code, notes, and snippets.

@lvojp
lvojp / heic2jpg.sh
Created November 4, 2020 03:14
Convert HEIC files to JPEG format.
#!/usr/bin/env bash
find . -mindepth 1 -name '*.HEIC' | xargs -I@ basename @ .HEIC | xargs -I@ sips --setProperty format jpeg @.HEIC --out @.jpg
@lvojp
lvojp / watchHtmlElement.py
Last active October 5, 2020 00:54
Watch elements of a website and use IFTTT's webhook feature to notify you if necessary. ex: Watch out-of-stock items and notify LINE via IFTTT when the items are replenished.
import requests
import datetime
from lxml import html
from bs4 import BeautifulSoup
# set your target url
target_url = ''
# set your target xpath
target_xpath = ''
@lvojp
lvojp / helloworld
Created February 28, 2017 06:58
fortran helloworld
program hello
print *, 'Hello World!'
end program hello