Skip to content

Instantly share code, notes, and snippets.

View modcab's full-sized avatar

Modesto Caballero modcab

  • Modlabs IT Solutions
  • London, UK
View GitHub Profile
@modcab
modcab / Convert .mov or .MP4 to .gif.md
Created November 1, 2022 11:01 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@modcab
modcab / multiple_ssh_setting.md
Created September 11, 2017 11:37 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@modcab
modcab / 0_reuse_code.js
Created November 18, 2016 09:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@modcab
modcab / drupal views alter items per page
Created May 27, 2016 08:51 — forked from toleillo/drupal views alter items per page
Drupal Views change items per page programmatically
<?php
/**
* Implements hook_views_pre_build ()
*/
function MODULENAME_views_pre_build(&$view) {
if($view->name == "VIEWNAME") {
$view->items_per_page = 15;
}
drush vset theme_debug 1