This file contains hidden or 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
| python manage.py dumpdata --natural-foreign --natural-primary -e contenttypes -e auth.Permission --indent 4 |
This file contains hidden or 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
| heroku pg:backups:restore <URL to compressed dump> DATABASE_URL --app <APP> |
This file contains hidden or 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
| docker rmi $(docker images -q -f dangling=true) |
This file contains hidden or 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
| // Example using the module. | |
| import domready from "./domready.js"; | |
| domready(function() { | |
| //... | |
| }); |
This file contains hidden or 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
| composer dump-autoload -o |
This file contains hidden or 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
| # Cut five seconds off beginning | |
| ffmpeg -i original.mkv -strict experimental -c:v copy -c:a copy -ss 00:00:05 cut.mkv | |
| # Cut to ten seconds in length, starting at five seconds (5-15s) | |
| ffmpeg -i original.mkv -strict experimental -c:v copy -c:a copy -ss 00:00:05 -t 00:00:10 cut.mkv | |
| # Cut everything before five seconds, cut everything after eight seconds (5-8s) | |
| ffmpeg -i original.mkv -strict experimental -c:v copy -c:a copy -ss 00:00:05 -to 00:00:08 cut.mkv |
This file contains hidden or 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
| ffmpeg -i video.mkv -strict experimental -c:v copy -c:a aac -b:a 192k video.mp4 |
This file contains hidden or 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
| ffmpeg -i original.mp4 -vf scale=-1:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - gif:- | convert -layers Optimize - result.gif |
This file contains hidden or 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
| sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock |
This file contains hidden or 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
| //go:generate echo Generate | |
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Println("Main") | |
| } |
NewerOlder