Skip to content

Instantly share code, notes, and snippets.

Flowchart

graph LR

A(Start)
A --> B[Look for an item]
B --> C{Did you find it?}
C -->|Yes| D(Stop looking)
C -->|No| E{Do you need it?}
@amercier
amercier / MacbookAir_Color_LCD.icc
Last active July 24, 2018 06:38
Have a MacBook Air? Here’s a quick tip to popup your display

Mp3Tag Cheat Sheet

Tag -> Filename

Format:

  • default: {Album Artist or Artist} / {Year} - {Album} / {Track}. {Title}
  • when is set: {Album Artist or Artist} / {Year} - {Album} / Disc {Discnumber} / {Track}. {Title}
@amercier
amercier / update-esdoc.sh
Last active July 3, 2018 12:17
update-esdoc.sh
#!/usr/bin/env bash
# Syntax: update-esdoc.sh REPOSITORY_SLUG
if [ "$#" -ne 1 ]
then
echo '✗ Syntax update-esdoc.sh REPOSITORY_SLUG' >&2;
exit 1;
fi
git=$1

FFmpeg Cheat Sheet

Re-encode a movie

Re-encode video while preserving audio, subtitles, chapters, etc.

Regular movie

@amercier
amercier / ExifTool Cheat Sheet.md
Created April 27, 2018 20:16
ExifTool Cheat Sheet

ExifTool Cheat Sheet

Add +2H to all dates to *.NEF and updates file create/modify dates

exfitool -AllDates+=2 -verbose *.nef
exfitool "-FileCreateDate<CreateDate" "-FileModifyDate<CreateDate" -verbose *.nef
@amercier
amercier / laravel-homestead-setup.md
Last active October 20, 2017 12:28
Laravel Homestead per-project setup for MacOS

Laravel Homestead setup for MacOS

Requirements

  1. Homebrew
  2. VirtualBox
  3. Vagrant: brew install vagrant
  4. Composer: brew tap caskroom/cask && brew cask install vagrant
  5. Laraver installer: composer global require laravel/installer
@amercier
amercier / Uninstall OneDrive.bat
Created August 30, 2017 10:36
Uninstall OneDrive from Windows 10
@echo OFF
net session >nul 2>&1
if %ERRORLEVEL% equ 0 (
echo [OK] Administrator PRIVILEGES Detected!
echo.
) else (
echo ######## ######## ######## ####### ########
echo ## ## ## ## ## ## ## ## ##
echo ## ## ## ## ## ## ## ## ##
echo ###### ######## ######## ## ## ########
#!/usr/bin/env ruby
require_relative '../config/boot'
require 'pathname'
require 'fileutils'
require 'json'
include FileUtils
# path to your application root.
<!DOCTYPE html>
<html>
<iframe src="https://www.slideshare.net/slideshow/embed_code/key/4MyKg4k7jMFTVw?conviva=staging" allowfullscreen></iframe>
</html>