This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollection('videos').aggregate([{ | |
'$group': { | |
'_id': { | |
month: { | |
'$month': '$date' | |
}, | |
year: { | |
'$year': '$date' | |
}, | |
dayOfMonth: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\App::abort(500, 'What you want to message'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Author: Ray Rinaldy | |
# pip install Pillow | |
# put this script in every image folder that wants to be converted | |
# run python compress.py | |
# | |
# This script will works on .jpg, .jpeg & .png (for png files, it will auto convert to have white background) | |
import os, glob, PIL, sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
git add . |