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 | |
services="mysql nginx php5-fpm" | |
for service in $services; do | |
if [[ $(service $service status) != *"running"* ]]; then | |
service $service restart | |
[ $1 ] && echo "$service started" | |
fi | |
[ $1 ] && echo "$service scanned" |
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
jQuery(document).ready(function($){ | |
$('a[href^="https://www.youtube.com"]').colorbox({iframe:true, innerWidth:640, innerHeight:390, maxWidth:'95%', maxHeight:'95%', href:function(){ | |
var videoId = new RegExp('[\\?&]v=([^&#]*)').exec(this.href); | |
if (videoId && videoId[1]) { | |
return 'https://youtube.com/embed/'+videoId[1]+'?rel=0&wmode=transparent&autoplay=1'; | |
} | |
}}); | |
}); |
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
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on August 1, 2012 */ | |
@font-face { |
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
// ==UserScript== | |
// @name Ot Ptiha (Beta) | |
// @namespace http://userstyles.org | |
// @description Enables use of the Ot Ptiha font. | |
// @author amititzhaki | |
// @homepage http://userstyles.org/styles/70627 | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
var css = "@font-face {\n font-family: 'OpenfontRegular';\n src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAEd0ABAAAAAAf3wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABbAAAABwAAAAcYgdgxUdERUYAAAGIAAAAPgAAAEQGdgUmR1BPUwAAAcgAAAJtAAAEGIaRk/JHU1VCAAAEOAAAAGMAAACCygfpzk9TLzIAAAScAAAAUAAAAGCAJM+HY21hcAAABOwAAAHmAAACWkrtGJ5nYXNwAAAG1AAAAAgAAAAIAAAAEGdseWYAAAbcAAA3MQAAaByqwTfsaGVhZAAAPhAAAAAxAAAANv8dLfRoaGVhAAA+RAAAACEAAAAkDYMBN2htdHgAAD5oAAACygAABGBfEnLHbG9jYQAAQTQAAAIyAAACMmYfS9xtYXhwAABDaAAAAB8AAAAgAV8AUW5hbWUAAEOIAAABGQAAAiosAEolcG9zdAAARKQAAALFAAAFTSR8r6J3ZWJmAABHbAAAAAYAAAAGQTJQGQAAAAEAAAAAyYlvMQAAAADMPv/iAAAAAMw+8bF42mNgZGBg4ANiGwYQYGJgZ2Bk2AXEuxmOMzAznGA4A2SfBUJmhnMMP4Dsnwy/gKp+M4oD2SxgHQwAOtcKng |
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
mkdir MyPrayer | |
cd MyPrayer | |
unzip -O cp1255 ../MyPrayer.zip | |
convmv -f cp862 -t utf8 -r * | |
convmv -f cp862 -t utf8 -r * --notest | |
mid3iconv -e cp1255 * | |
../audiotag --title-pattern '.*?- (.*?)\.mp3' *.mp3 | |
../audiotag --pretend --artist-pattern '\d\d (.*?) - .*?\.mp3' *.mp3 | |
../audiotag --artist-pattern '\d\d (.*?) - .*?\.mp3' *.mp3 | |
../audiotag -A "ואני תפילתי" *.mp3 |
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
// icast number | |
add_shortcode('listening_number','ak_listening_number'); | |
function ak_listening_number(){ | |
$num=get_option('icast_number'); | |
return '<span id="icast_num">'.number_format($num).'</span>'; | |
} | |
add_action('icast_number', 'get_icast_number'); | |
add_action('wp', 'icast_number_task'); | |
function icast_number_task() { |
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
add_filter( 'the_excerpt', 'add_audio_to_excerpt'); | |
function add_audio_to_excerpt($excerpt){ | |
$content=get_the_content(); | |
$audiopos=strpos($content,'[audio src='); | |
if(audiopos!=='') { | |
$audio=substr($content,$audiopos,strpos($content,']')+1); | |
return do_shortcode($audio.$excerpt); | |
} | |
else return $excerpt; | |
} |
NewerOlder