This file contains 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
$('.alert').removeClass('hide').show().delay(1000).addClass("in").fadeOut(3500); |
This file contains 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
pub.grd_mailing_campaign.jqGrid({ | |
url: 'bl/bl_mailing_campaign.php', | |
postData: { | |
action : function() {return 'mailing_campaign_list';}, | |
record_count : function() {return _recipients_grid_record_count();}, | |
}, | |
datatype: 'json', | |
mtype: 'POST', | |
jsonReader : {repeatitems: false}, | |
caption: '', |
This file contains 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
ip addr show tun0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 |
This file contains 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
mysqldump -u username -p database --ignore-table=database.table1 --ignore-table=database.table2 > database.sql |
This file contains 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
/etc/php5/apache2/php.ini | |
session.gc_maxlifetime = 172800 # 48 hourssession. | |
cookie_lifetime = 0 | |
/etc/php5/cli/php.ini | |
session.gc_maxlifetime = 14400 # 4 hourssession. | |
cookie_lifetime = 0 |
This file contains 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 round_precise(value, exp) { | |
if (typeof exp === 'undefined' || +exp === 0) | |
return Math.round(value); | |
value = +value; | |
exp = +exp; | |
if (isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) | |
return NaN; |
This file contains 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
iconv -f ISO-8859-14 Agreement.txt -t UTF-8 -o agreement.txt |
This file contains 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
// Skipping to an element within the CKEditor by ID and setting the cursor focus within that element. | |
// With the element in view, you'll attempt to insert the cursor at the beginning of the element using a Range. | |
// Firefox will actually insert the cursor for you but Chrome wont, so the Range step is necessary. | |
var element = evt.editor.document.getById('someHeading'); | |
var range; | |
if(element) { | |
element.scrollIntoView(); |
This file contains 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
sudo rm -r /var/lib/apt/lists | |
sudo mkdir -p /var/lib/apt/lists/partial | |
sudo apt-get clean | |
sudo apt-get update | |
sudo apt-key list | grep expired |
This file contains 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
$('#user_edit_date_of_registration').datepicker('setValue', _row_model.value); | |
var _value = formatDateISO(nz($('#user_edit_date_of_registration').data('date'))); | |
<div id="user_edit_date_of_registration" class="input-append date" data-index="" data-date="" data-date-format="dd-mm-yyyy" data-date-viewmode="months"> | |
<input type="text" class="input-small"> | |
<span class="add-on"><i class="fa fa-calendar"></i></span> | |
</div> | |
OlderNewer