Skip to content

Instantly share code, notes, and snippets.

View HectorIFC's full-sized avatar
🏠
Working from home

#!/usr/bin/env hector HectorIFC

🏠
Working from home
View GitHub Profile
FFmpeg has been removed from Ubuntu 14.04 and was replaced by Libav. This decision has been reversed so that FFmpeg is available now in Ubuntu 15.04 again, but there is still no official package for 14.04. In this tutorial, I will show you how to install FFmpeg from mc3man ppa. Add the mc3man ppa:
sudo add-apt-repository ppa:mc3man/trusty-media
And confirm the following message by pressing <enter>:
Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
Press [ENTER] to continue or ctrl-c to cancel adding it
Update the package list.
@HectorIFC
HectorIFC / Createvm.sh
Created November 10, 2017 18:41 — forked from jgcasta/Createvm.sh
Shell script to create a VirtualBox Virtual machine
#!/bin/bash
#
# createvm.sh
#
# ver 1.0
#
# Jose Gomez Castaño jgcasta@gmail.com
#
# Create a Virtual Box Machine in the createPath directory with the name given in name variable.
I downloaded vagrant rpm from vagrantup.com
[root@goll ~]# gem install vagrant
Fetching: vagrant-1.5.0.gem (100%)
Thanks for wanting to use Vagrant! Unfortunately, this is not the way
to install Vagrant anymore. We now make installers for the various operating
systems Vagrant supports.
@HectorIFC
HectorIFC / sublime-install.sh
Created February 8, 2017 10:07 — forked from welshstew/sublime-install.sh
sublime text 3 install
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/usr/local/sublime-text-3/sublime_text
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
##
# Creates an alias called "git hist" that outputs a nicely formatted git log.
# Usage is just like "git log"
# Examples:
# git hist
# git hist -5
# git hist <branch_name>
# git hist <tag_name> -10
##
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"
define(['amplify', 'jquery'],
function (amplify, $) {
var
data,
init = function() {
$.mockJSON.data.STATE =
[ 'RS', 'SP', 'RJ', 'MG'];
$.mockJSON.data.CUSTOMER_FIRST_NAME =
['Elemar', 'Gabriel', 'Israel', 'Pedro'];
$.mockJSON.data.CUSTOMER_LAST_NAME =