Skip to content

Instantly share code, notes, and snippets.

View engell's full-sized avatar

Ángel Isaac Pizano engell

View GitHub Profile
@engell
engell / console.log
Last active December 25, 2015 23:39
The list of commands to create a swap-file in linux.
root(~)# fallocate -l 2G /home/engell/.swapfile
root(~)# chmod 600 /home/engell/.swapfile
root(~)# mkswap /home/engell/.swapfile
Setting up swapspace version 1, size = 2097148 KiB
no label, UUID=8154dc45-fda4-4f29-b7a8-05f7c864f7a4
root(~)# swapon /home/engell/.swapfile
root(~)# free
total used free shared buffers cached
Mem: 1017740 1003196 14544 0 8388 691664
-/+ buffers/cache: 303144 714596
@engell
engell / sudoers
Created September 22, 2013 10:03
Skip password for sudo
user ALL=NOPASSWD: /ruta/al/binario
@engell
engell / script.sh
Last active December 20, 2015 05:49
Edit sudoers with nano
sudo env EDITOR=nano visudo
@engell
engell / OrlandoVerano2013.html.erb
Created June 19, 2013 19:07
Orlando Verano 2013
<tbody>
<tr>
<td valign="top" align="center">
<span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><table border="0" cellpadding="0" cellspacing="20" width="650">
<tbody>
<tr>
<td colspan="2">
@engell
engell / PayaDelCarmen.html
Created June 19, 2013 19:00
Playa del carmen
<tbody>
<tr>
<td valign="top" align="center">
<span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><table border="0" cellpadding="0" cellspacing="20" width="650">
<tbody>
<tr>
<td colspan="2">
@engell
engell / gist:5816857
Created June 19, 2013 18:48
Orlando Verano 2013
<tbody>
<tr>
<td valign="top" align="center">
<span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><span class="HOEnZb"><font color="#888888">
</font></span><table border="0" cellpadding="0" cellspacing="20" width="650">
<tbody>
<tr>
<td colspan="2">
@engell
engell / counter.js
Last active December 18, 2015 00:18
Increasing and decreasing input value with butuns in Jquery.
$(document).ready(function(){
$('#menos').click(function(){
if ($('#cantidad').val() != 0)
$('#cantidad').val(parseInt($('#cantidad').val()) - 1);
});
$('#mas').click(function(){
$('#cantidad').val(parseInt($('#cantidad').val()) + 1);
$("#cantidad").css({color:"#000000"});
});