Skip to content

Instantly share code, notes, and snippets.

View denovo's full-sized avatar

Pete Richardson denovo

  • M2A Media
  • London
View GitHub Profile
@denovo
denovo / conventional-commits.md
Created January 24, 2025 09:48 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@denovo
denovo / gist:9be33b43ce0672bf2e67446fb795b99f
Created July 26, 2021 10:15
Generate random UUIDs from the terminal on Mac OS
for i in {1..10}; do uuidgen; done
@denovo
denovo / encoding-video.md
Created February 21, 2018 11:22 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@denovo
denovo / mamp-mysql-repair.md
Last active January 17, 2018 12:50
mamp - fix problems with mysql not starting on server start

If mysql won't start when using mamp MAMP

Edit MAMP settings: File > Edit Template > MySql my.cnf

Add/Edit lines in my.cnf:

[mysqld]
innodb_force_recovery = 0
@denovo
denovo / utility-class__full-width
Created January 12, 2018 16:28
utility class - full width - break out of container
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
@denovo
denovo / css_emails_superscript.css
Last active May 3, 2018 08:54
CSS_emails_bulletproof_superscript
/* https://camiah.com/superscripting-guide/ */
<sup style="font-size:10px; line-height:0;"><!—[if (gte mso 9) | (IE 7)]><span style="font-size: 12px; vertical-align: 3px;"><![endif]—>&reg;<!—[if (gte mso 9) | (IE 7)]></span><![endif]—></sup>
/* more info on this thread: https://litmus.com/community/discussions/488-best-method-for-superscripts */
@denovo
denovo / convert_mp4_to_mpeg.sh
Last active July 21, 2017 16:46
convert mp4 to mpeg using FFMPEG
# run cmd in terminal if FFMPEG is installed globally
$ ffmpeg -i mp4videoname.mp4 -c:v libvpx -crf 4 -minrate 1M -b:v 1.5M -c:a libvorbis webmvideoname.webm
@denovo
denovo / compress_mp4_with_ffmpeg.sh
Last active July 21, 2017 14:29
compress video mp4 file with ffmpeg
ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4
@denovo
denovo / CSS for <sup> and <sub>
Created July 18, 2017 18:16 — forked from unruthless/CSS for <sup> and <sub>
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position
@denovo
denovo / remove-spaces.sh
Created July 17, 2017 11:09
Remove Spaces from filenames : replaces all spaces in filenames in current folder with an "_" underscore character
for i in *; do mv "$i" "`echo $i | sed -e 's, ,_,g'`"; done