Skip to content

Instantly share code, notes, and snippets.

View leocxy's full-sized avatar

Leo Chen leocxy

  • Pocket Square
  • Auckland
  • 17:03 (UTC +12:00)
View GitHub Profile
@leocxy
leocxy / gist:ca44873b478374574d77dd89a9ca83e8
Created October 1, 2022 08:17
Download the MPEG2-TS files and combine all of them to MP4 file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Project : programming
# @File : mpeg2_download_and_combine.py
# @Author : Leo Chen <leo.dev@qq.com>
# @Date : 2022/9/29 20:19
"""
import os
from concurrent.futures import ThreadPoolExecutor
@leocxy
leocxy / fetch_customers_timeline_from_shopify_admin.js
Last active November 2, 2021 22:11
fetch Shopify Customer Timeline for capture the email changes
/**
* Fetch customer's email change records and render a csv file, you must copy and pates the code at Shopify Admin console
*
* You need to update some variables
* change "url" to your store url
* change "data" to your customer ids
* change "token" to your token
*/
class httpClient {
constructor() {