start new:
tmux
start new with session name:
tmux new -s myname
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').bind('click',function(e) { | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
if (url.indexOf('#') == 0) { | |
$('#response_modal').modal('open'); | |
} else { |
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
Find all files larger than 2GB (useful for finding pesky logs that prohibit apache from starting) | |
find /usr/local/apache -type f -size +2048000 | |
Find all files owned by the user ”fred” in /home | |
find /home -user fred | |
Find all files with 777 permissions in /home |
# 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 | |
git remote show origin | |
# Si hay alguna rama de la cual no tengamos los datos aún |
# This should be changed to your system's jenkins root JENKINS_ROOT="/var/lib/jenkins" | |
JENKINS_USERS="$JENKINS_ROOT/users" | |
JENKINS_JOBS="$JENKINS_ROOT/jobs" | |
JENKINS_CONFIG="$JENKINS_ROOT/config.xml" | |
# This variable is used so that we can verify that a user is not found | |
FAIL_TEST=0 | |
exportUserFolder() { | |
if [ -d "$JENKINS_USERS/$1" ]; then |
Since you're using CentOS 5, the default package manager is yum
, not apt-get
. To install a program using it, you'd normally use the following command:
$ sudo yum install <packagename>
However, when trying to install git this way, you'll encounter the following error on CentOS 5:
Se crea el archivo del repositorio | |
vi /etc/yum.repos.d/pandorafms.repo | |
Con este contenido: | |
[artica_pandorafms] | |
name=CentOS6 - PandoraFMS official repo | |
baseurl=http://artica.es/centos6 | |
gpgcheck=0 |
For Debian just change the name of the branch: | |
echo "deb http://debian.saltstack.com/debian {wheezy|jessie}-saltstack main" > /etc/apt/sources.list.d/salt.list | |
wget -q -O- "http://debian.saltstack.com/debian-salt-team-joehealy.gpg.key" | apt-key add - | |
apt-get update | |
----------- | |
For Centos5 the repo is located at copr.fedoraproject.org/coprs/saltstack/salt-el5/ so a one-liner for have a minion installed: |
# Copied from http://ttaportal.org/wp-content/uploads/2012/10/7-Reallocation-using-LVM.pdf | |
## | |
## Showing the problem: need to reallocate 32GB from /dev/mapper/pve-data to /dev/mapper/pve-root | |
## | |
df -h | |
# Filesystem Size Used Avail Use% Mounted on | |
# /dev/mapper/pve-root 37G 37G 0 100% / | |
# tmpfs 2.0G 0 2.0G 0% /lib/init/rw |