Skip to content

Instantly share code, notes, and snippets.

version: '2.4'
services:
Hestia-CP:
image: smied/hestia-cp:latest
container_name: Hestia-CP
privileged: true
cgroup: host
hostname: hestia.dev.cc
restart: always
SenPrints thân tặng bài thơ sau: SenPrints yêu Việt Nam, ghét Yagi
-
Bão Yagi ập đến đất miền Bắc,
Gió cuộn mây vần giữa trời cao.
Tám giờ trôi, bốn cấp tăng vội vã,
Biển Đông dậy sóng, đất nước xôn xao.
Ba mươi năm chưa thấy cơn bão lớn,
Người dân nghèo chịu cảnh khốn cùng.
@ptrinh
ptrinh / shopee_order_stats.js
Last active December 14, 2020 01:58
Total shopee orders statistics
// Paste this in Chrome Console when opening shopee website to get your "Completed" orders stats
// Instructions: Hit F12, paste code, then enter.
var totalOrders = 0;
var totalSpent = 0;
var totalShippingSpent = 0;
var totalItems = 0;
var pulling = true;
var offset = 0;
var currency = "";
@ptrinh
ptrinh / index.html
Created December 6, 2020 16:19
Kindle BTC ticker
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
@font-face {
font-style: normal;
font-weight: normal;
}
@ptrinh
ptrinh / pichi_fix_creation_date.sh
Last active November 24, 2020 04:44
Preserve photo creation datetime when compressing using Pichi
# THIS WILL RUN RECURSIVELY
# Update any photo that doesn't have DateTimeOriginal to have it based on file modify date
exiftool -r -overwrite_original_in_place '-datetimeoriginal<filemodifydate' -if '(not $datetimeoriginal or ($datetimeoriginal eq "0000:00:00 00:00:00"))' .
# Rename files to datestamp
exiftool -r '-FileName<DateTimeOriginal' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" .
#
# NOW RUN PICHI AT THIS POINT PER EACH FOLDER

Keybase proof

I hereby claim:

  • I am ptrinh on github.
  • I am ptrinh (https://keybase.io/ptrinh) on keybase.
  • I have a public key whose fingerprint is DFD7 30D1 C067 FD68 0DF4 5FD9 F7B5 82C2 F2AE D19C

To claim this, I am signing this object: