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
@mixin vertical-align($position: relative) { | |
position: $position; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
.div { | |
@include vertical-align(); |
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
<div id="dateCounter"></div> | |
<script type="text/javascript"> | |
var setValue = function(elem, value, inc, shift, speed) { | |
var interval = false; | |
if (inc) { | |
interval = setInterval(function() { | |
if (elem.innerHTML * 1 + shift >= value) { | |
elem.innerHTML = value; |
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
<div id="result"></div> | |
<button id="test">test</button> | |
<script type="text/javascript"> | |
/** | |
*elem - элемент для отображения счетчика | |
*value - конечное значение счентчика | |
*inc - увеличение либо уменьшение (true/false - увеличение/уменьшение) | |
*shift - шаг изменения значения |
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
<script type="text/javascript"> | |
var date1 = new Date("4/1/2016"); | |
var today = new Date(); | |
var timeDiff = Math.abs(today.getTime() - date1.getTime()); | |
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); | |
document.write(diffDays); | |
</script> |
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
# mount -o umask=0,uid=nobody,gid=nobody /dev/sdXY /path/to/folder/ |
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
<div id="test"> | |
<input type="checkbox"> | |
<input type="checkbox"> | |
<input type="checkbox"> | |
<input type="checkbox"> | |
<input type="checkbox"> | |
</div> | |
<script type="text/javascript"> | |
function checkByParent(aId, aChecked) { |
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
#!/bin/bash | |
#FILE="/home/user/scripts/motd" | |
FILE="/etc/motd" | |
INSTDATE=$(date +%F) | |
HOSTNAME=$(hostname) | |
OSRELASE=$(cat /etc/*release | head -1) | |
#OSDETECT="i-have-to-define" | |
#IPADDRES=$(ifconfig eth0 | grep -o '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*' | head -1) | |
ETHERADD=$(ifconfig |grep -e ^[a-z] |grep -v lo | awk '{ printf $1 FS}') |
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
<?php | |
// View File | |
?> | |
<?php | |
$script = <<< JS | |
$(document).ready(function() { | |
setInterval(function(){ $("#refreshButton").click(); }, 3000); | |
}); | |
JS; | |
$this->registerJs($script); |
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
#!/bin/sh | |
amavisd-release <quarantined_id> "" recipient_address |
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
#!/bin/bash | |
# Need to install subversion | |
# List files | |
svn lns <repository_url>/trunk | |
# Get Files or Directory | |
svn export <repository_url>/trunk |