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
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
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
#!/bin/sh | |
tail -f ${@:1} | sed --unbuffered \ | |
-e 's/\(.*INFO.*\)/\o033[90m\1\o033[39m/' \ | |
-e 's/\(.*NOTICE.*\)/\o033[37m\1\o033[39m/' \ | |
-e 's/\(.*WARNING.*\)/\o033[33m\1\o033[39m/' \ |
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
#!/bin/sh | |
tail ${@:1} | sed --unbuffered \ | |
-e 's/\(.*FATAL.*\)/\o033[1;31m\1\o033[0;39m/' \ | |
-e 's/\(.*ERROR.*\)/\o033[31m\1\o033[39m/' \ | |
-e 's/\(.*Hibernate*\)/\o033[35m\1\o033[39m/' \ | |
-e 's/\(.*WARN.*\)/\o033[36m\1\o033[39m/' \ | |
-e 's/\(.*INFO.*\)/\o033[32m\1\o033[39m/' \ | |
-e 's/\(.*DEBUG.*\)/\o033[34m\1\o033[39m/' \ |
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
# Create background noise profile from mp3 | |
/usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
# Remove noise from mp3 using profile | |
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
# Remove silence from mp3 | |
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
# Remove noise and silence in a single command |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04 | |
# | |
# _______________| noise : ambient Brown noise generator (cf. white noise). | |
# | |
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave] | |
# ^minutes can be any positive integer. | |
# Command "noise 1" will display peak-level meter. | |
# | |
# Dependencies: play (from sox package) |
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
parser: babel-eslint | |
env: | |
browser: true | |
node: true | |
es6: true | |
ecmaFeactures: | |
arrowFunctions: true | |
binaryLiterals: true | |
blockBindings: true | |
classes: 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
## Atom Editor | |
## Master configuration of the Editor based in the user dlfinis |
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
The syntax of sed command replacement is: | |
$ sed 's/find/replace/' file | |
This sed command finds the pattern and replaces with another pattern. When the replace is left empty, the pattern/element found gets deleted. | |
Let us consider a sample file as below: | |
$ cat file | |
Linux |
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
$(function() { | |
$( "#listImages" ) | |
.selectmenu(); | |
$(""#listImages").on('selectmenuchange',function() { | |
var articleId=$(this).val(); | |
var groupId= <%=themeDisplay.getScopeGroupId() %>; | |
var url= '<liferay-portlet:renderURL windowState="exclusive" portletName="56_INSTANCE_cam"> '+ | |
'<liferay-portlet:param name="groupId" value="ScopeGroupID" />'+ |
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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
NewerOlder