Subversion Repositories My Stuff

Compare Revisions

Ignore whitespace Rev HEAD → Rev 1

/trunk/.project
File deleted
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/ae-gallery-mine.js
===================================================================
--- JavaScripts/ae-gallery-mine.js (revision 32)
+++ JavaScripts/ae-gallery-mine.js (nonexistent)
@@ -1,50 +0,0 @@
-$(document).ready(function(){
- var galleries = $('.ae-gallery').aeGallery({
- loader_image: 'modules/Gallery/templates/ae-gallery/loader.gif',
- slideshow: {
- autostart: false,
- speed: 5000,
- start_label: 'Start',
- stop_label: 'Stop',
- stop_on_scroll: false,
- },
- callbacks: {
- init: function() {
- this.preloadImage(0);
- },
- afterImageVisible: function() {
- $('.ae-image > img').click(function(){
- $.fancybox(
- {
- 'speedIn': 300,
- 'speedOut': 300,
- 'overlayColor': '#000',
- 'overlayOpacity': 0.7,
- 'centerOnScroll': true,
- 'titlePosition': 'over',
- 'transitionIn': 'elastic',
- 'transitionOut': 'elastic',
- 'showNavArrows': false,
- 'showCloseButton': true,
- 'href': $(this).attr('src'),
- 'title': $(this).parent().find('p').html(),
- 'onComplete' : function() {
- $("#fancybox-wrap").hover(function() {
- $("#fancybox-title").slideDown();
- }, function() {
- $("#fancybox-title").slideUp();
- });
- }
- }
- );
- }).hover(function(){
- $(this).parent().find('.ae-image-description:first').slideDown();
- }, function(){
- $(this).parent().find('.ae-image-description:first').slideUp();
- });
- var context = this;
- this.preloadImage(this.current_index + 1);
- }
- }
- });
-});
\ No newline at end of file
/JavaScripts/ae-gallery-mine.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/fancybox_add_cv.js
===================================================================
--- JavaScripts/fancybox_add_cv.js (revision 32)
+++ JavaScripts/fancybox_add_cv.js (nonexistent)
@@ -1,39 +0,0 @@
-$(document).ready(function() {
- $("a.group").fancybox({
- 'speedIn': 300,
- 'speedOut': 300,
- 'overlayColor': '#000',
- 'overlayOpacity': 0.7,'centerOnScroll': true,
- 'padding': 0,
- 'href': $(this).attr('href'),
- 'titlePosition': 'over',
- 'transitionIn': 'elastic',
- 'transitionOut': 'elastic',
- 'titleShow': false
- });
- $("a.pages").fancybox({
- 'width' : '75%',
- 'height' : '75%',
- 'autoScale' : false,
- 'padding': 0,
- 'overlayOpacity': 0.7,'centerOnScroll': true,
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic',
- 'type' : 'iframe',
- 'href': $(this).attr('href'),
- 'titleShow': false
- });
-
- $("a.specification").fancybox({
- 'scrolling' : 'no',
- 'titleShow' : false,
- 'overlayOpacity': 0.7,'centerOnScroll': true,
- 'padding' : 0,
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic'
- }).tooltip({
- effect: 'slide',
- tipClass : 'imgtooltip',
- opacity : 0.7
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-});
\ No newline at end of file
/JavaScripts/fancybox_add_cv.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/email_form.js
===================================================================
--- JavaScripts/email_form.js (revision 32)
+++ JavaScripts/email_form.js (nonexistent)
@@ -1,25 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$(document).ready(function(){
- var options = {
- target: '#email_form',
- success: function() {
- $('#email_form > #form-indicator').hide();
- $('#email_form > form').ajaxForm(options);
- },
- replaceTarget:true,
- beforeSubmit: function() {
- $('#email_form > #form-indicator').show();
- }
- };
- $('#email_form > form').ajaxForm(options);
-
-});
\ No newline at end of file
/JavaScripts/email_form.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/dialog_email_form_open.js
===================================================================
--- JavaScripts/dialog_email_form_open.js (revision 32)
+++ JavaScripts/dialog_email_form_open.js (nonexistent)
@@ -1,49 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$(document).ready(function() {
- $('a.email_link').each(function() {
- var $link = $(this);
- var $dialog = $('<div id="email_form"></div>')
- .dialog({
- autoOpen: false,
- width: 780,
- height: 'auto',
- title: $link.attr('title'),
- resizable: false,
- modal: true,
- position: 'center',
- show: 'blind',
- hide: 'explode'
- });
-
- $link.click(function() {
- $('#overlay').show();
- $('#ajax-indicator').show();
- var options = {
- target: '#email_form',
- success: function() {
- $('#email_form > #form-idicator').hide();
- $('#email_form > form').ajaxForm(options);
- },
- beforeSubmit: function() {
- $('#email_form > #form-indicator').show();
- }
- };
- $dialog.load($link.attr('href'),function(){
- $('#email_form > form').ajaxForm(options);
- $('#ajax-indicator').hide();
- $('#overlay').hide();
- $dialog.dialog('open');
- });
- return false;
- });
- });
-});
\ No newline at end of file
/JavaScripts/dialog_email_form_open.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/textarea_limit.js
===================================================================
--- JavaScripts/textarea_limit.js (revision 32)
+++ JavaScripts/textarea_limit.js (nonexistent)
@@ -1,3 +0,0 @@
-$(document).ready(function(){
- $('#sms_form').find('textarea').maxLength(120);
-});
\ No newline at end of file
/JavaScripts/textarea_limit.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/youtube_dialog.js
===================================================================
--- JavaScripts/youtube_dialog.js (revision 32)
+++ JavaScripts/youtube_dialog.js (nonexistent)
@@ -1,40 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$.fx.speeds._default = 1000;
-$.ajaxSettings.cache = false;
-$(document).ready(function() {
- $('a.film_link').each(function() {
- var $link = $(this);
- var $dialog = $('<div id="film_dialog"></div>')
- .dialog({
- autoOpen: false,
- width: 660,
- height: 'auto',
- title: $link.attr('title'),
- resizable: false,
- position: 'top',
- modal: true,
- show: 'blind',
- hide: 'fold'
- });
-
- $link.click(function() {
- $('#overlay').show();
- $('#ajax-indicator').show();
- $dialog.load($link.attr('href')+' #film',function(){
- $('#ajax-indicator').hide();
- $('#overlay').hide();
- $dialog.dialog('open');
- });
- return false;
- });
- });
-});
\ No newline at end of file
/JavaScripts/youtube_dialog.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/startuptooltip.js
===================================================================
--- JavaScripts/startuptooltip.js (revision 32)
+++ JavaScripts/startuptooltip.js (nonexistent)
@@ -1,7 +0,0 @@
-$(document).ready(function(){
- $('a.group').tooltip({
- effect: 'slide',
- tipClass : 'gallerytooltip',
- opacity : 0.9
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-});
/JavaScripts/startuptooltip.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/browser_main_eng.js
===================================================================
--- JavaScripts/browser_main_eng.js (revision 32)
+++ JavaScripts/browser_main_eng.js (nonexistent)
@@ -1,6 +0,0 @@
-$(document).ready(function(){
- jQuery.each(jQuery.browser, function(i, val) {
- if((i=="msie" && jQuery.browser.version<8)||(i=="opera" && jQuery.browser.version<9)||(i=="safari" && jQuery.browser.version<4)||(i=="mozilla" && jQuery.browser.version<1.7))
- window.location.replace("http://www.kardasa.pl/english/old_browser.html");
- });
-});
\ No newline at end of file
/JavaScripts/browser_main_eng.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/bannertooltip.js
===================================================================
--- JavaScripts/bannertooltip.js (revision 32)
+++ JavaScripts/bannertooltip.js (nonexistent)
@@ -1,7 +0,0 @@
-$(document).ready(function(){
- $('div.banners a').tooltip({
- effect: 'slide',
- tipClass : 'imgtooltip',
- opacity : 0.7
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-});
/JavaScripts/bannertooltip.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/fancybox_add.js
===================================================================
--- JavaScripts/fancybox_add.js (revision 32)
+++ JavaScripts/fancybox_add.js (nonexistent)
@@ -1,13 +0,0 @@
-$(document).ready(function() {
- $("a.group").fancybox({
- 'speedIn': 300,
- 'speedOut': 300,
- 'overlayColor': '#000',
- 'overlayOpacity': 0.7,'centerOnScroll': true,
- 'padding': 0,
- 'cyclic': true,
- 'titlePosition': 'inside',
- 'transitionIn': 'elastic',
- 'transitionOut': 'elastic'
- });
-});
/JavaScripts/fancybox_add.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/scrollable.js
===================================================================
--- JavaScripts/scrollable.js (revision 32)
+++ JavaScripts/scrollable.js (nonexistent)
@@ -1,9 +0,0 @@
-$(document).ready(function(){
- $('div.scrollable').scrollable({
- mousewheel: true,
- keyboard: true,
- next: ".next",
- prev: ".prev",
- speed: 500
- }).navigator();
-});
\ No newline at end of file
/JavaScripts/scrollable.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/socialtooltip.js
===================================================================
--- JavaScripts/socialtooltip.js (revision 32)
+++ JavaScripts/socialtooltip.js (nonexistent)
@@ -1,7 +0,0 @@
-$(document).ready(function(){
- $('.bookmarking').find('a').tooltip({
- effect: 'slide',
- tipClass : 'socialtooltip',
- opacity : 0.9
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-});
\ No newline at end of file
/JavaScripts/socialtooltip.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/comment_form.js
===================================================================
--- JavaScripts/comment_form.js (revision 32)
+++ JavaScripts/comment_form.js (nonexistent)
@@ -1,97 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardas
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$(document).ready(function(){
- checkBoxChange();
- toggleLinkClick();
- checkboxChacked();
- var $comment;
- var $options = {
- success: function(data) {
- var response = $(data).find('#comments');
- $('#comments').replaceWith(response);
- $('#comment_form').find('form:first').validator().ajaxForm($options);
- checkboxChacked();
- checkBoxChange();
- toggleLinkClickSlide();
- $('#comment_form').find('textarea').val($comment);
- $('#comment_form > #comments-indicator').hide();
- $.scrollTo( '#comments', 800, {onAfter:function(){
- $('.error').effect('pulsate');
- $('.pagemessage').effect('pulsate');
- }
- });
- },
- beforeSubmit: function() {
- $comment = $('#comment_form').find('textarea').val();
- $('#comment_form > #comments-indicator').show();
- }
- };
- $('#comment_form').find('form:first').validator().ajaxForm($options);
-});
-
-function checkboxChacked(){
- var form = $('#comment_form').find('form:first');
- var checkbox = form.find(':checkbox:first');
- var email = form.find(':email');
- if (checkbox.is(':checked')){
- email.attr("required", "required");
- email.attr("disabled", false);
- }else{
- email.attr("required", false);
- email.attr("required", true);
- }
-}
-
-function toggleLinkClickSlide(){
- var form = $('#comment_form').find('form:first');
- var toggle_link = $('#comments').find('a.toggle_link:first');
- var content = $('#comment_form');
- toggle_link.click(function(){
- if (toggle_link.is('.toggle_close')){
- toggle_link.removeClass('toggle_close');
- toggle_link.addClass('toggle_open');
- } else if (toggle_link.is('.toggle_open')){
- toggle_link.removeClass('toggle_open');
- toggle_link.addClass('toggle_close');
- }
- content.slideToggle('slow');
- var api = form.data("validator");
- api.reset();
- return false;
- });
-}
-
-function toggleLinkClick(){
- var form = $('#comment_form').find('form:first');
- var toggle_link = $('#comments').find('a.toggle_link:first');
- toggle_link.click(function(){
- var api = form.data("validator");
- api.reset();
- return false;
- });
-}
-
-function checkBoxChange(){
- var form = $('#comment_form').find('form:first');
- var email = form.find(':email');
- $('#comment_form').find(':checkbox:first').change(function(){
- if ($(this).is(':checked')) {
- email.attr("required", "required");
- email.attr("disabled", false);
- }else{
- email.attr("required", false);
- email.val("");
- email.attr("disabled", true);
- var api = form.data("validator");
- api.reset(email);
- }
- });
-}
\ No newline at end of file
/JavaScripts/comment_form.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/sms_form.js
===================================================================
--- JavaScripts/sms_form.js (revision 32)
+++ JavaScripts/sms_form.js (nonexistent)
@@ -1,23 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-########################################################################*/
-$(document).ready(function(){
- var options = {
- target: '#sms_form',
- success: function() {
- $('#sms_form > #form-indicator').hide();
- $('#sms_form > form').ajaxForm(options);
- },
- beforeSubmit: function() {
- $('#sms_form > #form-indicator').show();
- }
- };
- $('#sms_form > form').ajaxForm(options);
- });
\ No newline at end of file
/JavaScripts/sms_form.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/dialog_sms_form_open.js
===================================================================
--- JavaScripts/dialog_sms_form_open.js (revision 32)
+++ JavaScripts/dialog_sms_form_open.js (nonexistent)
@@ -1,49 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$(document).ready(function() {
- $('a.sms_link').each(function() {
- var $link = $(this);
- var $dialog = $('<div id="sms_form"></div>')
- .dialog({
- autoOpen: false,
- width: 780,
- height: 'auto',
- title: $link.attr('title'),
- resizable: false,
- modal: true,
- position: 'center',
- show: 'blind',
- hide: 'explode'
- });
-
- $link.click(function() {
- $('#overlay').show();
- $('#ajax-indicator').show();
- var options = {
- target: '#sms_form',
- success: function() {
- $('#sms_form > #form-indicator').hide();
- $('#sms_form > form').ajaxForm(options);
- },
- beforeSubmit: function() {
- $('#sms_form > #form-indicator').show();
- }
- };
- $dialog.load($link.attr('href'),function(){
- $('#sms_form > form').ajaxForm(options);
- $('#ajax-indicator').hide();
- $('#overlay').hide();
- $dialog.dialog('open');
- });
- return false;
- });
- });
-});
\ No newline at end of file
/JavaScripts/dialog_sms_form_open.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/browser_main.js
===================================================================
--- JavaScripts/browser_main.js (revision 32)
+++ JavaScripts/browser_main.js (nonexistent)
@@ -1,6 +0,0 @@
-$(document).ready(function(){
- jQuery.each(jQuery.browser, function(i, val) {
- if((i=="msie" && jQuery.browser.version<8)||(i=="opera" && jQuery.browser.version<9)||(i=="safari" && jQuery.browser.version<4)||(i=="mozilla" && jQuery.browser.version<1.7))
- window.location.replace("http://www.kardasa.pl/polish/stara_przegladarka.html");
- });
-});
\ No newline at end of file
/JavaScripts/browser_main.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/imgtooltip.js
===================================================================
--- JavaScripts/imgtooltip.js (revision 32)
+++ JavaScripts/imgtooltip.js (nonexistent)
@@ -1,31 +0,0 @@
-$(document).ready(function(){
- $('a.group').tooltip({
- effect: 'slide',
- tipClass : 'imgtooltip',
- opacity : 0.7
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
- $('.rssLayout').find('a').removeAttr('title');
-
- $('.rssLayout').find('img').tooltip({
- effect: 'fade',
- tipClass : 'imgtooltip',
- opacity : 0.7,
- position : 'top left'
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
- $('#printing').find('img').tooltip({
- effect: 'fade',
- tipClass : 'imgtooltip',
- opacity : 0.7,
- position : 'top left'
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
- $('img.linux_logo').tooltip({
- effect: 'fade',
- tipClass : 'imgtooltip',
- opacity : 0.7,
- position : 'top right'
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
-});
/JavaScripts/imgtooltip.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/mouse_toggle.js
===================================================================
--- JavaScripts/mouse_toggle.js (revision 32)
+++ JavaScripts/mouse_toggle.js (nonexistent)
@@ -1,10 +0,0 @@
-$(document).ready(function(){
- $('div.mouse_toggle').each(function(){
- var $content = $(this).find('div.toggle_on_mouse_content:first');
- $(this).mouseenter(function(){
- $content.slideDown("fast");
- }).mouseleave(function(){
- $content.slideUp("fast");
- });
- });
-})
\ No newline at end of file
/JavaScripts/mouse_toggle.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/scroll_page.js
===================================================================
--- JavaScripts/scroll_page.js (revision 32)
+++ JavaScripts/scroll_page.js (nonexistent)
@@ -1,4 +0,0 @@
-$(document).ready(function(){
- $.localScroll({filter: ':not(.toggle_link)'});
-});
-
/JavaScripts/scroll_page.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/toggle_slide.js
===================================================================
--- JavaScripts/toggle_slide.js (revision 32)
+++ JavaScripts/toggle_slide.js (nonexistent)
@@ -1,27 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$(document).ready(function(){
- $('.toggle').each(function(){
- var $link = $(this).children('a.toggle_link:first');
- var $content = $(this).children('.toggle_content:first');
- $link.click(function(){
- if ($link.is('.toggle_close')){
- $link.removeClass('toggle_close');
- $link.addClass('toggle_open');
- } else if ($link.is('.toggle_open')){
- $link.removeClass('toggle_open');
- $link.addClass('toggle_close');
- }
- $content.slideToggle("slow");
- return false;
- });
- });
-});
\ No newline at end of file
/JavaScripts/toggle_slide.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/scrollable_gallery.js
===================================================================
--- JavaScripts/scrollable_gallery.js (revision 32)
+++ JavaScripts/scrollable_gallery.js (nonexistent)
@@ -1,25 +0,0 @@
-$(document).ready(function(){
- $('.subgallery').tooltip({
- effect: 'slide',
- tipClass : 'gallerytooltip',
- opacity : 0.9
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
- $('.subgallery img').reflect({height: 0.3, opacity: 0.7});
-
- $('.subgallery').hover(function() {
- $(this).find('img:first').reflect({height: 0.3, opacity: 1});
- $(this).find('img:first').addClass('hovered');
- }, function() {
- $(this).find('img:first').reflect({height: 0.3, opacity: 0.7});
- $(this).find('img:first').removeClass('hovered');
- });
-
- $('div.scrollable_gallery').scrollable({
- mousewheel: true,
- keyboard: true,
- next: ".next",
- prev: ".prev",
- speed: 500
- });
-});
\ No newline at end of file
/JavaScripts/scrollable_gallery.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/news_search.js
===================================================================
--- JavaScripts/news_search.js (revision 32)
+++ JavaScripts/news_search.js (nonexistent)
@@ -1,22 +0,0 @@
-$(document).ready(function(){
- $('div.filter_form').show();
- $('input#filter').quicksearch('.AllNews div.NewsSummary', {
- 'noResults': '#noresults',
- 'show': function () {
- $(this).addClass('shown');
- $(this).removeClass('hidden');
- },
- 'hide': function () {
- $(this).removeClass('shown');
- $(this).addClass('hidden');
- },
- 'onAfter': function () {
- $('.AllNews').find('.hidden').each(function(){
- $(this).closest('div.category').children('p.category_name:first').hide();
- });
- $('.AllNews').find('.shown').each(function(){
- $(this).closest('div.category').children('p.category_name:first').show();
- });
- }
- });
-});
\ No newline at end of file
/JavaScripts/news_search.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/filmtooltip.js
===================================================================
--- JavaScripts/filmtooltip.js (revision 32)
+++ JavaScripts/filmtooltip.js (nonexistent)
@@ -1,7 +0,0 @@
-$(document).ready(function(){
- $('a.film_link').tooltip({
- effect: 'slide',
- tipClass : 'imgtooltip',
- opacity : 0.7
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-});
\ No newline at end of file
/JavaScripts/filmtooltip.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/textarea-maxlength.js
===================================================================
--- JavaScripts/textarea-maxlength.js (revision 32)
+++ JavaScripts/textarea-maxlength.js (nonexistent)
@@ -1,96 +0,0 @@
-jQuery.fn.maxLength = function(len)
-{
- var maxLengthKeyPress = new Array();
- var maxLengthChange = new Array();
- var appleKeyOn = false;
-
- //the second argument should be true if len should be based on
- //the maxlength attribute instead of the input
- var useAttr = arguments.length>1 ? arguments[1] : false;
-
- var handleKeyUp = function(e)
- {
- //if the apple key (macs) is being pressed, set the indicator
- if(e.keyCode==224||e.keyCode==91)
- appleKeyOn = false;
- }
-
- var handleKeyDown = function(e)
- {
- //if the apple key (macs) is being released, turn off the indicator
- if(e.keyCode==224||e.keyCode==91)
- appleKeyOn = true;
- }
-
- var handleKeyPress = function(e)
- {
- //if this keyCode does not increase the length of the textarea value,
- //just let it go
- if(appleKeyOn || (e.charCode==0&&e.keyCode!=13) || e.ctrlKey)
- return;
-
- //get the textarea element
- var textarea = $(this);
- //if the length should be based on the maxlength attribute instead of the
- //input, use that
- len = useAttr ? parseInt(textarea.attr('maxlength')) : len;
- //get the value of the textarea
- var val = textarea.val();
- //get the length of the current text selection
- var selected = Math.abs(textarea.attr('selectionStart') - textarea.attr('selectionEnd'));
- selected = isNaN(selected) ? 0 : selected;
- //if this is the maximum length
- if(val.length==len && selected<1)
- return false;
- else if(val.length>len && selected<(val.length-len))
- return textarea.val(textarea.val().substring(0,len));
- };
-
- var handleChange = function(e)
- {
- //get the textarea element
- var textarea = $(this);
-
- //if the length should be based on the maxlength attribute instead of the
- //input, use that
- len = useAttr ? parseInt(textarea.attr('maxlength')) : len;
-
- //truncate the textarea to its proper length
- textarea.val(textarea.val().substring(0,len));
- };
-
- //get the current keyup and change functions
- var removeKeyPress = maxLengthKeyPress[this.selector];
- var removeChange = maxLengthChange[this.selector];
-
- //remove the keyup and change functions from any matched elements in case
- //a maxlength was previously set and a new one is being set
- this.die('keypress', removeKeyPress);
- this.die('change', removeChange);
-
- if(len==0 && !useAttr)
- return;
-
- //set the keyup and change functions for this element set and all future
- //elements matching this selector
- this.live('keypress', handleKeyPress);
- this.live('change', handleChange);
- this.live('keydown', handleKeyDown);
- this.live('keyup', handleKeyUp);
-
- //save the current keyup and change functions so that they can be
- //remove later
- maxLengthKeyPress[this.selector] = handleKeyPress;
- maxLengthChange[this.selector] = handleChange;
-
- //trigger a keypress event so that the limit will be enforced
- this.keypress();
-};
-
-$(function()
-{
- //limit the length of all textareas with the maxlength attribute
- //NOTE: setting maxlength on a textarea is NOT valid XHTML. this
- //was added for coders who want to code loosely--not me!
- $('textarea[maxlength]').maxLength(null, true);
-});
\ No newline at end of file
/JavaScripts/textarea-maxlength.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/scrollable_fancy.js
===================================================================
--- JavaScripts/scrollable_fancy.js (revision 32)
+++ JavaScripts/scrollable_fancy.js (nonexistent)
@@ -1,9 +0,0 @@
-$(document).ready(function(){
- $('div.scrollable_fancybox').scrollable({
- mousewheel: true,
- keyboard: true,
- next: ".next",
- prev: ".prev",
- speed: 500
- }).navigator();
-});
\ No newline at end of file
/JavaScripts/scrollable_fancy.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/menu.js
===================================================================
--- JavaScripts/menu.js (revision 32)
+++ JavaScripts/menu.js (nonexistent)
@@ -1,29 +0,0 @@
-/*#######################################################################
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################*/
-$(document).ready(function(){
- var $menu = $('.artmenu');
- $menu.children('li.nav_menu').each(function(){
- var $this = $(this);
- var $anchor = $this.children('a');
- var $submenu = $menu.find('ul.submenu');
- $anchor.data('width',$anchor.width());
-
- $this.mouseenter(function(){
- $submenu.stop(true,true).hide();
- $anchor.stop().animate({'width':'227px'},300,function(){
- $this.find('ul.submenu').slideDown(500);
- });
- }).mouseleave(function(){
- $submenu.stop(true,true).hide();
- $anchor.stop().animate({'width':$anchor.data('width')+'px'},300);
- });
- });
-});
\ No newline at end of file
/JavaScripts/menu.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/contact_tooltip.js
===================================================================
--- JavaScripts/contact_tooltip.js (revision 32)
+++ JavaScripts/contact_tooltip.js (nonexistent)
@@ -1,14 +0,0 @@
-$(document).ready(function(){
- $('#contact, #messengers').find('a > img').tooltip({
- effect: 'slide',
- tipClass : 'imgtooltip',
- opacity : 0.7
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
- $('.sms_link, .email_link').tooltip({
- effect: 'slide',
- tipClass : 'imgtooltip',
- opacity : 0.7
- }).dynamic({ bottom: { direction: 'down', bounce: true } });
-
-});
\ No newline at end of file
/JavaScripts/contact_tooltip.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: JavaScripts/blogautocomplete.js
===================================================================
--- JavaScripts/blogautocomplete.js (revision 32)
+++ JavaScripts/blogautocomplete.js (nonexistent)
@@ -1,9 +0,0 @@
-$(document).ready(function(){
- var categories_array = Array();
- $('#categories_list li').each(function() {
- categories_array.push($(this).text());
- });
- $('#cntnt01searchinput').autocomplete({
- source: categories_array
- });
-});
\ No newline at end of file
/JavaScripts/blogautocomplete.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: PHP/block.geshi.php
===================================================================
--- PHP/block.geshi.php (revision 32)
+++ PHP/block.geshi.php (nonexistent)
@@ -1,62 +0,0 @@
-<?php
-
-
- /***
- * GeSHi highlighting
- * -------------------------------------------------------------
- * File: block.geshi.php
- * Type: block
- * Name: geshi
- * Purpose: highlight a block of text using GeSHi
- * Author: Robert Campbell
- * -------------------------------------------------------------
- */
- function smarty_cms_block_geshi($params, $content, &$smarty)
- {
- // look for geshi in lib/geshi
- global $gCms;
- $config =& $gCms->GetConfig();
- $dn = $config['root_path'].'/lib/geshi';
- if( isset($config['geshi_path']) )
- {
- // allow an optional config var to override that
- $dn = $config['geshi_path'];
- }
- include_once($dn.'/geshi.php');
-
- // defaults
- $lang = 'html';
- $line_numbers = GESHI_NO_LINE_NUMBERS;
- $use_class = false;
- $class = 'geshi';
- $strict = 'false';
-
- // handle params
- if( isset($params['lang']) )
- {
- $lang = trim($params['lang']);
- }
- if( isset($params['linenumbers']) )
- {
- $line_numbers = GESHI_NORMAL_LINE_NUMBERS;
- }
- if( isset($params['class']) )
- {
- $class = trim($params['class']);
- $use_class = true;
- }
- if( isset($params['strict']) )
- {
- $strict = true;
- }
-
- if (isset($content)) {
- $geshi = new GeSHI($content, $lang);
- $geshi->enable_classes($use_class);
- $geshi->set_overall_class($class);
- $geshi->enable_line_numbers($line_numbers);
- $geshi->enable_strict_mode($strict);
- return $geshi->parse_code();
- }
- }
- ?>
Index: PHP/function.socialBookmarking.php
===================================================================
--- PHP/function.socialBookmarking.php (revision 32)
+++ PHP/function.socialBookmarking.php (nonexistent)
@@ -1,231 +0,0 @@
-<?php
-
-///////////////////////////////////////////////////////////////////////////////////////
-// Originally socialBookmarks v1.0 - 04-10-2006
-// Currently SocialBookmarking v.1.01 01-30-2009
-// GPL Licensing malarky. Use it, change it whatever. As long as it's useful to you :)
-// Originally created by Paul Hodgson, 01-10-2006 or 10-01-2006 if you're in the US :)
-// Modified/Updated by Eduardo Martinez, 12-28-2009
-///////////////////////////////////////////////////////////////////////////////////////
-
-function smarty_cms_function_SocialBookmarking($params, &$smarty)
-{
-
- $url_array = array(
-
- "delicious" => array("url" => "http://del.icio.us/post?url=[thisurl]&amp;title=[title]",
- "alt" => "del.icio.us",
- "image" => "delicious.png",
- "title" => "Submit to del.icio.us"),
-
- "digg" => array("url" => "http://digg.com/submit?phase=2&amp;url=[thisurl]",
- "alt" => "digg",
- "image" => "digg.png",
- "title" => "Submit to digg"),
-
- //new Sites added by Eduardo
- "stumbleupon" => array("url" => "http://www.stumbleupon.com/submit?url=[thisurl]",
- "alt" => "stumbleupon",
- "image" => "stumble.png",
- "title" => "Submit to StumbleUpon"),
-
- "buzzup" => array("url" => "http://buzz.yahoo.com/submit/?submitUrl=[thisurl]",
- "alt" => "buzzup",
- "image" => "buzzup.png",
- "title" => "Submit to buzzup"),
-
- "BlinkList" => array("url" => "http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=[thisurl]",
- "alt" => "BlinkList",
- "image" => "blinklist.png",
- "title" => "Submit to BlinkList"),
-
- "mixx" => array("url" => "http://www.mixx.com/submit?page_url=[thisurl]",
- "alt" => "mixx",
- "image" => "mixx.png",
- "title" => "Submit to mixx"),
-
- "myspace" => array("url" => "http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=[thisurl]",
- "alt" => "myspace",
- "image" => "myspace.png",
- "title" => "Post to myspace"),
-
- "LinkedIn" => array("url" => "http://www.linkedin.com/shareArticle?mini=true&amp;url[thisurl]",
- "alt" => "linkedin",
- "image" => "linkedin.png",
- "title" => "Post to LinkedIn"),
-
- "facebook" => array("url" => "http://www.facebook.com/share.php?u=[thisurl]",
- "alt" => "facebook",
- "image" => "facebook.png",
- "title" => "Post to facebook"),
- // end of new Social Sites
-
- "reddit" => array("url" => "http://reddit.com/submit?url=[thisurl]&amp;title=[title]",
- "alt" => "reddit.com",
- "image" => "reddit.png",
- "title" => "Submit to reddit.com"),
-
- "magnolia" => array("url" => "http://ma.gnolia.com/bookmarklet/add?url=[thisurl]&amp;title=[title]",
- "alt" => "ma.gnolia.com",
- "image" => "magnolia.png",
- "title" => "Submit to ma.gnolia.com"),
-
- "newsvine" => array("url" => "http://www.newsvine.com/_tools/seed&amp;save?u=[thisurl]&amp;h=[title]",
- "alt" => "newsvine.com",
- "image" => "newsvine.png",
- "title" => "Submit to newsvine.com"),
-
- "furl" => array("url" => "http://www.furl.net/storeIt.jsp?u=[thisurl]&amp;t=[title]",
- "alt" => "furl.net",
- "image" => "furl.png",
- "title" => "Submit to furl.net"),
-
- "google" => array("url" => "http://www.google.com/bookmarks/mark?op=add&amp;bkmk=[thisurl]&amp;title=[title]",
- "alt" => "google",
- "image" => "google.png",
- "title" => "Submit to Google"),
-
- "yahoo" => array("url" => "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=[thisurl]&amp;t=[title]",
- "alt" => "yahoo",
- "image" => "yahoo.png",
- "title" => "Submit to Yahoo"),
-
- "technorati" => array("url" => "http://technorati.com/cosmos/search.html?url=[thisurl]&amp;t=[title]",
- "alt" => "technorati.com",
- "image" => "technorati.png",
- "title" => "Search on technorati.com"),
-
- "twitter" => array("url" => "http://twitter.com/home?status=[thisurl]",
- "alt" => "twitter",
- "image" => "twitter.png",
- "title" => "Submit to twitter"),
-
- "identi" => array("url" => "http://identi.ca/notice/new?status_textarea=[thisurl]",
- "alt" => "identi.ca",
- "image" => "identi_ca.png",
- "title" => "Submit to identi.ca"),
-
- //This is part added by Andrzej Kardaś with support to polish social sites
- "kciuk" => array("url" => "http://www.kciuk.pl/Dodaj-link/?[thisurl]/?[title]",
- "alt" => "kciuk",
- "image" => "kciuk.png",
- "title" => "Submit to kciuk"),
-
- "wykop" => array("url" =>"http://www.wykop.pl/add2/link/url,[thisurl],title,[title]",
- "alt" => "wykop",
- "image" => "wykop.png",
- "title" => "Submit to wykop"),
-
- "blip" => array("url" =>"http://blip.pl/dashboard?body=[thisurl]",
- "alt" => "blip",
- "image" => "blip.png",
- "title" => "Submit to blip"),
-
- "sledzik" => array("url" => "http://nasza-klasa.pl/sledzik?shout=[thisurl]",
- "alt" => "śledzik",
- "image" => "sledzik.png",
- "title" => "Submit to Śledzik")
- //end of Andrzej Kardaś part
- );
-
- global $gCms; // Eduardo
- //global $gCms, $config;
- $title_prefix = isset($params['title'])?$params['title']:""; // Page title prefix.
- $link_target = isset($params['target'])?$params['target']:""; // _blank etc.
- $submitto = isset($params['submitto'])?$params['submitto']:""; // array containing list of sites to print links to
- $img_dir = isset($params['img_dir'])?$params['img_dir']:""; //directory images are uploaded to
- $real_url = (isset($params['real_url']) && $params['real_url']);
- $pageinfo = &$gCms->variables['pageinfo'];
- $curtitle = urlencode($title_prefix);
- $curtitle .= urlencode(cms_htmlentities($pageinfo->content_title)); //title with prefix
-
- if($real_url){
- $isHTTPS = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on");
- $port = (isset($_SERVER["SERVER_PORT"]) && ((!$isHTTPS && $_SERVER["SERVER_PORT"] != "80") || ($isHTTPS && $_SERVER["SERVER_PORT"] != "443")));
- $port = ($port) ? ':'.$_SERVER["SERVER_PORT"] : '';
- $url = ($isHTTPS ? 'https://' : 'http://').$_SERVER["SERVER_NAME"].$port.$_SERVER["REQUEST_URI"];
- }else{
- $hm =& $gCms->GetHierarchyManager();
- $page_content_id = $gCms->variables['content_id'];
- $curnode =& $hm->getNodeById($page_content_id);
- $curcontent =& $curnode->GetContent();
- $url = $curcontent->GetURL(); // url of current page
- }
- $url = urlencode($url);
-
- if ($link_target != "") {
- $target = ' target="'.$link_target.'"';
- } else {
- $target = "";
- }
-
- if ($img_dir == "") {
- //$img_dir = $config['root_url']."/images/socialBookmarking/";
- $img_dir = "images/socialbookmarking/"; // Eduardo
- }
-
- $result = " ";
-
- if ($submitto == "all" || $submitto == "ALL" || $submitto == "All" || $submitto == "") {
-
- foreach ($url_array as $value) {
-
- $print_url = str_replace("[thisurl]", $url, $value["url"]);
- $print_url = str_replace("[title]", $curtitle, $print_url);
- $result .= '<a href="'.$print_url.'" title="'.$value["title"].'" rel="nofollow"'.$target.'><img src="'.$img_dir.$value["image"].'" alt="'.$value["alt"].'" class="social-img" /></a> ';
- }
-
- } else {
-
- $submit_array = explode("|",$submitto);
-
- foreach($submit_array as $value ) {
-
- $print_url = str_replace("[thisurl]", $url, $url_array[$value]["url"]);
- $print_url = str_replace("[title]", $curtitle, $print_url);
- $result .= '<a href="'.$print_url.'" title="'.$url_array[$value]["title"].'" rel="nofollow"'.$target.'><img src="'.$img_dir.$url_array[$value]["image"].'" alt="'.$url_array[$value]["alt"].'" class="social-img" /></a> | ';
-
- }
-
- }
-
- return $result;
-
-}
-
-function smarty_cms_help_function_SocialBookmarking() {
- ?>
- <h3>What does this do?</h3>
- <p>Prints links to submit the page to various social Bookmarks managers - del.icio.us, digg.com, reddit.com, ma.gnolia.com, newsvine.com, furl.net, google, yahoo, technorati, stumbleupon, buzzup, blinklist, mixx, myspace, linkedin and facebook</p>
- <h3>How do I use it?</h3>
- <p>Insert the tag into your template/page: <code>{socialBookmarking}</code> please notice the lowercase 's' in the tag.</p>
- <h3>What parameters does it take?</h3>
- <p><ul><li><em>(optional)</em> title - allows text to be prefixed as a constant to the title information. Eg <code>{SocialBookmarking title="My Website - "}</code></li>
- <li><em>(optional)</em> target - populates the "target" atribute of the link. _blank, etc. eg <code>{SocialBookmarking target="_blank"}</code></li>
- <li><em>(optional)</em> submitto - choose which Social Bookmark Managers to submit to. Values separated by a pipe |. Eg <code>{SocialBookmarking submitto="delicious|digg|reddit"}</code>. <strong>Possible values:</strong>
- delicious, digg, reddit, magnolia, newsvine, furl, google, yahoo, technorati, <strong>OR</strong> all (will print all values. If the value "all" is used, do not enter any other value). Leaving this parameter blank, or not using this parameter will automatically print all supported Social Bookmark links.</li>
- <li><em>(optional)</em> img_dir - the directory you have uploaded the images to. <strong>DO NOT DEFINE, OR JUST LEAVE BLANK IF YOU HAVE UPLOADED TO THE DEFAULT INSTALL DIRECTORY - /images/socialbookmarking/</strong> (<strong>Important:</strong>: if you define a directory, include the leading and trailing slashes / e.g. <code>{SocialBookmarking img_dir="<strong>/</strong>my/image/directory<strong>/</strong>"}</code></li>
- <li><em>(optional)</em> real_url - leave empty or set to 0 to use the content page url (without consideration for modules), and set to 1 to use the real url.</li>
- </ul></p>
- <?php
-}
-
-function smarty_cms_about_function_SocialBookmarking() {
- ?>
- <p>Author: Paul Hodgson<br/>
- Updated/Maintained by: Eduardo Martinez (hexdj)</p>
- <p>Version: 1.2</p>
- <p>Change History:<br/>
- 1.2 - Minor update: clarified help text.<br />
- 1.1 - Fixed notices that were displayed on some servers and other fixes (thanks to plger).<br/><br/>
- 1.01 - Added in version 1.01: stumbleupon, buzzup, blinklist, mixx, myspace, linkedin and facebook, fixed issue with default images path, updated icons<br/><br/>
- 1.0 - The directory the images are stored in can be changed from the default install dir, and the dir defined within the tag.<br/>
- - Cleaned up some code, added more comments etc.<br/><br/>
- 0.3 Beta 1 - added the "submitto" parameter, allowing a selection ro be made, on which Social Bookmarks are output.<br />
- - added the variable <code>$img_dir</code> to the code, so any directory can be used to store the images<br /><br/>
- 0.2 Beta 1 - added two parameters, "title" and "target"<br /><br />
- 0.1 Beta 1 - First release
- </p>
- <?php
-}
-?>
Index: Bash/mysql_backup.sh
===================================================================
--- Bash/mysql_backup.sh (revision 32)
+++ Bash/mysql_backup.sh (nonexistent)
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# Script to beckup MySQL databases to separate files
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-MYUSER=${1}
-PASSWORD=${2}
-BCKPATH=${3}
-MYSQL="/usr/bin/mysql"
-MYSQLDUMP="/usr/bin/mysqldump"
-
-if [ -d ${BCKPATH} ]; then
- echo "Path seems ok"
- echo
-else
- echo "Can not find the provided path check script parameters"
- echo
- exit 1
-fi
-
-DATABASES="$(${MYSQL} -u ${MYUSER} -p${PASSWORD} -Bse 'show databases')"
-for name in ${DATABASES}
-do
- FILE=${BCKPATH}/mysql-${name}-$(date +"%d_%m_%y").sql
- echo "Creating backup of database ${name} to file ${FILE}"
- if (${MYSQLDUMP} -u ${MYUSER} -p${PASSWORD} ${name} >> ${FILE}) then
- echo "Storing database ${name} in ${FILE} succesfull"
- echo
- else
- echo "Storing database ${name} in ${FILE} failed"
- echo
- fi
-done
\ No newline at end of file
/Bash/mysql_backup.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/net-functions-service.sh
===================================================================
--- Bash/net-functions-service.sh (revision 32)
+++ Bash/net-functions-service.sh (nonexistent)
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-config_ip() {
- cd /tmp/${USER}/setup.opts
- dialog --title "Konfiguracja TCP/IP" --menu "Mozesz wykorzystac DHCP do automatycznej konfiguracji interfejsu sieciowego lub skonfigurowac adres IP recznie. Wyberz odpowiednia opcje:" 20 60 7 1 "Wykorzystaj DHCP do automaycznej konfiguracji" 2 "Wprowadz adresacje IP recznie" 2> ${iface}.${USER}.DHCP
- DHCP=$(tail -n 1 ${iface}.${USER}.DHCP)
- case ${DHCP} in
- 1)
- sudo /sbin/ip addr flush dev ${iface}
- sudo /sbin/dhcpcd -k ${iface}
- sudo /sbin/dhcpcd -n -t 10 -h $(hostname) ${iface} &
- ;;
- 2)
- dialog --title "Adres IP" --inputbox "Wprowadz adres IP dla domyslnego interfejsu ${iface}:" 20 50 "192.168.1.1" 2> ${iface}.${USER}.IP
- IP=$(tail -n 1 ${iface}.${USER}.IP)
- BC_TEMP=$(echo $IP|cut -d . -f 1).$(echo $IP|cut -d . -f 2).$(echo $IP|cut -d . -f 3).255
- dialog --title "Adres Rozgloszeniowy" --inputbox "Wprowadz adres Rozgloszeniowy dla domyslnego interfejsu ${iface}:" 20 50 "${BC_TEMP}" 2> ${iface}.${USER}.BC
- BROADCAST=$(tail -n 1 ${iface}.${USER}.BC)
- dialog --title "Maska Sieci" --inputbox "Wprowadz Maske Sieci dla domyslnego interfejsu ${iface}" 20 50 "255.255.255.0" 2> ${iface}.${USER}.NM
- NETMASK=$(tail -n 1 ${iface}.${USER}.NM)
- dialog --title "Brama/Router" --inputbox "Wprowadz adres Bramy/Routera ${iface}:" 20 50 2> ${iface}.${USER}.GW
- GATEWAY=$(tail -n 1 ${iface}.${USER}.GW)
- dialog --title "Serwer DNS" --inputbox "Wprowadz adres IP serwera DNS" 20 50 2> ${iface}.${USER}.DNS
- DNS=$(tail -n 1 ${iface}.${USER}.DNS)
- sudo /sbin/ip addr flush dev ${iface}
- sudo /sbin/ifconfig ${iface} ${IP} broadcast ${BROADCAST} netmask ${NETMASK}
- if [ -n "${GATEWAY}" ]
- then
- sudo /sbin/route add default gw ${GATEWAY} dev ${iface} netmask 0.0.0.0 metric 1
- fi
- if [ -n "${DNS}" ]
- then
- dialog --title "Domena Wyszukiwania" --inputbox "Wprowadz domene wyszukiwania (Wcisnij Enter aby pominac:)" 20 50 2> ${iface}.${USER}.SUFFIX
- SUFFIX=$(tail -n 1 ${iface}.${USER}.SUFFIX)
- echo "nameserver ${DNS}" > dns-config
- if [ -n "${SUFFIX}" ]
- then
- echo "search ${SUFFIX}" >> dns-config
- fi
- cat dns-config | sudo tee /etc/resolv.conf > /dev/null
- fi
- ;;
- esac
-}
-
-write_net_conf() {
- cd /tmp/${USER}/setup.opts
- echo "" > sudo /usr/bin/tee /etc/conf.d/net
- echo "# Konfiguracja sieci zapisana przed net-setup-serwis" > net-config
- DHCP=$(tail -n 1 ${iface}.${USER}.DHCP)
- case ${DHCP} in
- 1)
- echo "config_${iface}=\"dhcp\"" >> net-config
- echo "fallback_${iface}=\"apipa\"" >> net-config
- cat net-config | sudo tee /etc/conf.d/net > /dev/null
- ;;
- 2)
- IP=$(tail -n 1 ${iface}.${USER}.IP)
- BROADCAST=$(tail -n 1 ${iface}.${USER}.BC)
- NETMASK=$(tail -n 1 ${iface}.${USER}.NM)
- GATEWAY=$(tail -n 1 ${iface}.${USER}.GW)
- if [ -n "${IP}" -a -n "${BROADCAST}" -a -n "${NETMASK}" ]
- then
- echo "config_${iface}=\"${IP} netmask ${NETMASK} brd ${BROADCAST}\"" >> net-config
- if [ -n "${GATEWAY}" ]
- then
- echo "routes_${iface}=\"default via ${GATEWAY}\"" >> net-config
- fi
- echo "fallback_${iface}=\"apipa\"" >> net-config
- cat net-config | sudo tee /etc/conf.d/net > /dev/null
- fi
- ;;
- esac
-}
\ No newline at end of file
/Bash/net-functions-service.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/bind_zone_config.sh
===================================================================
--- Bash/bind_zone_config.sh (revision 32)
+++ Bash/bind_zone_config.sh (nonexistent)
@@ -1,93 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# Script to generate bind configuration for many domains for
-# one server
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-BIND_DIR=/chroot/dns/var/bind/
-MASTER_CONF_FILE=${BIND_DIR}conf/master.conf
-SLAVE_CONF_FILE=${BIND_DIR}conf/slave.conf
-SLAVE_DIR=slave
-MASTER_DIR=master
-SERIAL=$(date +"%Y%m%y")01
-MASTER_SERVER_IP="X.X.X.X"
-SLAVE_SERVERS_NAMES="nameserver1 nameserver2"
-HOSTNAME=short_server_name
-CNAMES="www"
-MX=
-MX_IP=X.X.X.X
-FILE=${2}
-
-#Checking the list of parameters
-
-if ( [ $# -lt 2 ] ) then
-
-echo "To few arguments were passed to script"
-echo "Usage ./bind_config.sh type zone_list_file"
-echo "Type can be master | slave"
-
-exit 0
-fi
-
-#Creating the zone files
-
-if [ "${1}" = "master" ]; then
-
-while read line
- do
- echo "zone \"$line\" IN { type master; file \"${MASTER_DIR}/$line\"; };" >> ${MASTER_CONF_FILE}
- echo "" > ${BIND_DIR}${MASTER_DIR}/$line
- echo "\$TTL 600" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "; $line" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "@ IN SOA ${HOSTNAME}.$line. hostmaster.$line. (" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " ${SERIAL} ; serial" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " 12h ; refresh" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " 1h ; retry" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " 2w ; expire" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " 1h ; minimum" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " )" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo " IN NS ${HOSTNAME}.$line." >> ${BIND_DIR}${MASTER_DIR}/$line
- for server in ${SLAVE_SERVERS_NAMES}
- do
- echo " IN NS $server." >> ${BIND_DIR}${MASTER_DIR}/$line
- done
- if [ ${MX} ]; then
- echo " IN MX 10 ${MX}.$line." >> ${BIND_DIR}${MASTER_DIR}/$line
- fi
- echo "@ IN A ${MASTER_SERVER_IP}" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "; host_records" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "localhost IN A 127.0.0.1" >> ${BIND_DIR}${MASTER_DIR}/$line
- echo "${HOSTNAME} IN A ${MASTER_SERVER_IP}" >> ${BIND_DIR}${MASTER_DIR}/$line
- if [ ${MX} ]; then
- echo "${MX} IN A ${MASTER_SERVER_IP}" >> ${BIND_DIR}${MASTER_DIR}/$line
- fi
- for cname in ${CNAMES}
- do
- echo "${cname} IN CNAME ${HOSTNAME}" >> ${BIND_DIR}${MASTER_DIR}/$line
- done
- done < ${FILE}
-
-elif [ "${1}" = "slave" ]; then
-
- while read line
- do
- echo "zone \"$line\" IN { type slave; masters{ ${MASTER_SERVER_IP}; }; file \"${SLAVE_DIR}/$line\"; };" >> ${SLAVE_CONF_FILE}
- done < ${FILE}
-
-else
-
- echo "Usage ./bind_zone_config.sh type zone_list_file"
- echo "Type can be master | slave"
- exit 0
-fi
\ No newline at end of file
/Bash/bind_zone_config.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/wireless.sh
===================================================================
--- Bash/wireless.sh (revision 32)
+++ Bash/wireless.sh (nonexistent)
@@ -1,43 +0,0 @@
-#!/bin/sh
-#Function to check status originaly created by Paul Sladen for Ubuntu acpi-support package
-isAnyWirelessPoweredOn()
-{
- for DEVICE in /sys/class/net/* ; do
- if [ -d $DEVICE/wireless ]; then
- # Hurray for stable interfaces... now the rfkill is scarcely
- # associated with the network device at all (!)
- for RFKILL in $DEVICE/device/rfkill/rfkill*/state; do
- if [ -r "$RFKILL" ] && [ "$(cat "$RFKILL")" -eq 1 ]
- then
- return 0
- fi
- done
- # if any of the wireless devices are turned on then return success
- if [ -r $DEVICE/device/power/state ] && [ "`cat $DEVICE/device/power/state`" -eq 0 ]
- then
- return 0
- fi
- if [ -r $DEVICE/device/rf_kill ] && [ "`cat $DEVICE/device/rf_kill`" -eq 0 ]
- then
- return 0
- fi
- fi
- done
-
- # otherwise return failure
- return 1
-}
-
-if (isAnyWirelessPoweredOn); then
- kdialog --passivepopup "Wyłączam Interfejsy bezprzewodowe" --title "Wciśnięty przycisk Wifi"
-else
- kdialog --passivepopup "Włączam Interfejsy bezprzewodowe" --title "Wciśnięty przycisk Wifi"
-fi
-
-sudo /usr/local/bin/wireless-toggle.sh
-
-if (isAnyWirelessPoweredOn); then
- sudo /usr/local/bin/wireless-led.sh 1
-else
- sudo /usr/local/bin/wireless-led.sh 0
-fi
/Bash/wireless.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/wireless-led.sh
===================================================================
--- Bash/wireless-led.sh (revision 32)
+++ Bash/wireless-led.sh (nonexistent)
@@ -1,3 +0,0 @@
-#/bin/sh
-
-echo $1 > /sys/devices/platform/asus_laptop/wlan
/Bash/wireless-led.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/screen1.sh
===================================================================
--- Bash/screen1.sh (revision 32)
+++ Bash/screen1.sh (nonexistent)
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-kdialog --passivepopup "Wyłączam drugi ekran" --title "Wciśnięty przycisk Screen"
-
-xrandr --output LVDS --auto --output VGA-0 --off
/Bash/screen1.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/performance.sh
===================================================================
--- Bash/performance.sh (revision 32)
+++ Bash/performance.sh (nonexistent)
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-PROFILES="/usr/local/bin/profiles"
-
-test -f ${PROFILES} || exit 0
-
-TEMPFILE=/tmp/${USER}-profile.tmp
-
-if (test -f ${TEMPFILE}) then
- read line < ${TEMPFILE}
- PROFILE=${line}
-else
- PROFILE=Dynamic
-fi
-
-i=0
-flaga=0
-
-while read line
-do
- i=`expr $i + 1`
- if (test "${line}" = "${PROFILE}") then
- flaga=$i
-fi
-done < ${PROFILES}
-
-if (test $flaga -eq $i) then
- flaga=1
-else
- flaga=`expr $flaga + 1`
-fi
-
-j=0
-
-while read line
-do
- j=`expr $j + 1`
- if (test $flaga -eq $j) then
- PROFILE=${line}
- fi
-done < ${PROFILES}
-
-CMD="dbus-send --print-reply --session --dest=org.kde.powerdevil /modules/powerdevil org.kde.PowerDevil.setProfile string:"
-
-${CMD}"${PROFILE}"
-
-echo ${PROFILE} > ${TEMPFILE}
/Bash/performance.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/screen2.sh
===================================================================
--- Bash/screen2.sh (revision 32)
+++ Bash/screen2.sh (nonexistent)
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-kdialog --passivepopup "Ustawiam oba ekrany w tryb klonowania" --title "Wciśnięty przycisk Screen"
-
-xrandr --output LVDS --mode 1024x768 --output VGA-0 --mode 1024x768 --same-as LVDS
/Bash/screen2.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/screen3.sh
===================================================================
--- Bash/screen3.sh (revision 32)
+++ Bash/screen3.sh (nonexistent)
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-kdialog --passivepopup "Uaktywniam oba ekrany w trybie domyślnej rozdzielczości " --title "Wciśnięty przycisk Screen"
-
-xrandr --output LVDS --auto --output VGA-0 --auto --right-of LVDS
/Bash/screen3.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/mailledoff.sh
===================================================================
--- Bash/mailledoff.sh (revision 32)
+++ Bash/mailledoff.sh (nonexistent)
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-echo 0 > /sys/class/leds/asus\:\:mail/brightness
-
/Bash/mailledoff.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/dockeroff.sh
===================================================================
--- Bash/dockeroff.sh (revision 32)
+++ Bash/dockeroff.sh (nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-#Check if cairo-dock is running if it's running stop it
-
-if (ps -U ${USER} | grep cairo-dock > /dev/null); then
- PID=$(ps -U ${USER} | grep cairo-dock | awk '{printf $1}')
- kill -9 $PID
-fi
-
-
/Bash/dockeroff.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/chkrootkit_cron.sh
===================================================================
--- Bash/chkrootkit_cron.sh (revision 32)
+++ Bash/chkrootkit_cron.sh (nonexistent)
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# Script to send an email when chkrootkit test are being performed
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-SERVERNAME=$(hostname)
-DATE=$(date +"%d.%m.%Y")
-EMAIL=administrator@emai.pl
-FILENAME="/var/tmp/fulltest-${DATE}.txt"
-
-/usr/sbin/chkrootkit 2>&1 > ${FILENAME}
-
-if (cat ${FILENAME} | grep -q "INFECTED\|Vulnerable" | fgrep -v "Checking `bindshell'... INFECTED (PORTS: 465)" ) then
- echo "There seems to be a problem!!!!" > /var/tmp/msgfile-${DATE}
- echo "-------------------------------------------------" >> /var/tmp/msgfile-${DATE}
- cat ${FILENAME} | grep "INFECTED\|Vulnerable" >> /var/tmp/msgfile-${DATE}
- echo "-------------------------------------------------" >> /var/tmp/msgfile-${DATE}
- echo "You can see whole test results in attachment file" >> /var/tmp/msgfile-${DATE}
-else
- echo "Your system is not infected" > /var/tmp/msgfile-${DATE}
- echo "You can see whole test results in attachment file" >> /var/tmp/msgfile-${DATE}
-fi
-
-/usr/bin/mutt -s "${DATE} Weekly chkrootkit from ${SERVERNAME}" ${EMAIL} -a ${FILENAME} < /var/tmp/msgfile-${DATE}
-#
\ No newline at end of file
/Bash/chkrootkit_cron.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/mailledon.sh
===================================================================
--- Bash/mailledon.sh (revision 32)
+++ Bash/mailledon.sh (nonexistent)
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-echo 1 > /sys/class/leds/asus\:\:mail/brightness
-
/Bash/mailledon.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/dockeron.sh
===================================================================
--- Bash/dockeron.sh (revision 32)
+++ Bash/dockeron.sh (nonexistent)
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-#Check if cairo dock is running if not let's start it
-
-if !(ps -U ${USER} | grep cairo-dock > /dev/null); then
- /usr/bin/cairo-dock -c &
-fi
/Bash/dockeron.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/net-setup-root.sh
===================================================================
--- Bash/net-setup-root.sh (revision 32)
+++ Bash/net-setup-root.sh (nonexistent)
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-if [ -f /usr/local/bin/net-functions-root.sh ]
-then
- source /usr/local/bin/net-functions-root.sh
-else
- echo "Blad: /usr/local/bin/net-functions-root.sh nie mogly zostac zaladowane!"
- exit 1
-fi
-
-if [ ! -x $(which dialog) ]
-then
- echo "Blad: Program dialog jest wymagany do uruchomienia net-setup. Koncze prace!"
- exit 1
-fi
-
-check_root || exit 1
-
-if [ "${#}" -eq 1 ]; then
- iface="${1}"
-else
- echo "Blad: skrypt przyjmuje identyfikator interfjesu sieciowego jako pierwszy parametr skryptu."
- exit 1
-fi
-
-# Hide any potential error messages from the readlink/dirname/etc calls below
-exec 2>/dev/null
-
-[ ! -d /tmp/setup.opts ] && mkdir -p /tmp/setup.opts
-cd /tmp/setup.opts
-
-# Show stderr again
-exec 2>/dev/stderr
-
-config_ip
-
-if dialog --title "Zapisanie zmian na stale" --yesno "Czy zapisac zmiany w konfiguracji sieci tak aby byly one stosowane podczas kazdego kolejnego uruchomienia maszyny wirtualanej?\n\n Uwaga! Wybranie Nie, spowoduje, ze po restarcie maszyny przywrocone zostana poprzednie ustawienia" 15 70
-then
- write_net_conf
- echo "Zmiany w konfiguracji interfejsu sieciowego zostaly zapisane i beda stosowane po ponownym uruchomieniu maszyny."
- echo ""
-else
- echo "Zmiany w konfiguracja interfejsu nie zostaly zapisany na stale i zostana przywrocone do poprzedniech ustawien po ponownym uruchomieniu maszyny."
- echo ""
-fi
-
-echo "Jesli skonfigurowales interfejs poprawnie mozesz wykonac komende \"ping www.wp.pl\" aby sprawdzic czy uzyskales polaczenie sieciowe."
-
-# vim: ts=4
\ No newline at end of file
/Bash/net-setup-root.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/media-start.sh
===================================================================
--- Bash/media-start.sh (revision 32)
+++ Bash/media-start.sh (nonexistent)
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-if (ps -u $USER | grep amarok); then
- kdialog --passivepopup "Program Amarok uruchomiony otwieram główne okno programu" --title "Wciśnięty przycisk Uruchamiania Mediów"
-else
- kdialog --passivepopup "Uruchamiam program Amarok" --title "Wciśnięty przycisk Uruchamiania Mediów"
-fi
-
-/usr/bin/amarok
/Bash/media-start.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/wireless-toggle.sh
===================================================================
--- Bash/wireless-toggle.sh (revision 32)
+++ Bash/wireless-toggle.sh (nonexistent)
@@ -1,51 +0,0 @@
-#Function to toggle wireless interfaces originaly created by Paul Sladen for Ubuntu acpi-support package
-for DEVICE in /sys/class/net/* ; do
- if [ -d $DEVICE/wireless ] ; then
- # $DEVICE is a wireless device.
-
- FOUND=
- # Yes, that's right... the new interface reverses the truth values.
- ON=1
- OFF=0
- for CONTROL in $DEVICE/device/rfkill/rfkill*/state; do
- if [ -w "$CONTROL" ]; then
- FOUND=1
-
- if [ "$(cat "$CONTROL")" = "$ON" ] ; then
- # It's powered on. Switch it off.
- echo -n "$OFF" > "$CONTROL"
- else
- # It's powered off. Switch it on.
- echo -n "$ON" > "$CONTROL"
- fi
- fi
- done
- # it might be safe to assume that a device only supports one
- # interface at a time; but just in case, we short-circuit
- # here to avoid toggling the power twice
- if [ -n "$FOUND" ]; then
- continue
- fi
-
- ON=0
- OFF=1 # 1 for rf_kill, 2 for power/state
- for CONTROL in $DEVICE/device/rf_kill $DEVICE/device/power/state ; do
- if [ -w $CONTROL ] ; then
- # We have a way of controlling the device, lets try
- if [ "`cat $CONTROL`" = 0 ] ; then
- # It's powered on. Switch it off.
- if echo -n $OFF > $CONTROL ; then
- break
- else
- OFF=2 # for power/state, second time around
- fi
- else
- # It's powered off. Switch it on.
- if echo -n $ON > $CONTROL ; then
- break
- fi
- fi
- fi
- done
- fi
- done
/Bash/wireless-toggle.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/net-functions-root.sh
===================================================================
--- Bash/net-functions-root.sh (revision 32)
+++ Bash/net-functions-root.sh (nonexistent)
@@ -1,79 +0,0 @@
-#!/bin/bash
-
-check_root() {
- if [ "$(whoami)" != "root" ]
- then
- echo "Blad: tylko root moze uzywac tego pliku"
- return 1
- fi
-}
-
-config_ip() {
- cd /tmp/setup.opts
- dialog --title "Konfiguracja TCP/IP" --menu "Mozesz wykorzystac DHCP do automatycznej konfiguracji interfejsu sieciowego lub skonfigurowac adres IP recznie. Wyberz odpowiednia opcje:" 20 60 7 1 "Wykorzystaj DHCP do automaycznej konfiguracji" 2 "Wprowadz adresacje IP recznie" 2> ${iface}.DHCP
- DHCP=$(tail -n 1 ${iface}.DHCP)
- case ${DHCP} in
- 1)
- /sbin/ip addr flush dev ${iface}
- /sbin/dhcpcd -k ${iface}
- /sbin/dhcpcd -n -t 10 -h $(hostname) ${iface} &
- ;;
- 2)
- dialog --title "Adres IP" --inputbox "Wprowadz adres IP dla domyslnego interfejsu ${iface}:" 20 50 "192.168.1.1" 2> ${iface}.IP
- IP=$(tail -n 1 ${iface}.IP)
- BC_TEMP=$(echo $IP|cut -d . -f 1).$(echo $IP|cut -d . -f 2).$(echo $IP|cut -d . -f 3).255
- dialog --title "Adres Rozgloszeniowy" --inputbox "Wprowadz adres Rozgloszeniowy dla domyslnego interfejsu ${iface}:" 20 50 "${BC_TEMP}" 2> ${iface}.BC
- BROADCAST=$(tail -n 1 ${iface}.BC)
- dialog --title "Maska Sieci" --inputbox "Wprowadz Maske Sieci dla domyslnego interfejsu ${iface}" 20 50 "255.255.255.0" 2> ${iface}.NM
- NETMASK=$(tail -n 1 ${iface}.NM)
- dialog --title "Brama/Router" --inputbox "Wprowadz adres Bramy/Routera ${iface}:" 20 50 2> ${iface}.GW
- GATEWAY=$(tail -n 1 ${iface}.GW)
- dialog --title "Serwer DNS" --inputbox "Wprowadz adres IP serwera DNS" 20 50 2> ${iface}.DNS
- DNS=$(tail -n 1 ${iface}.DNS)
- /sbin/ip addr flush dev ${iface}
- /sbin/ifconfig ${iface} ${IP} broadcast ${BROADCAST} netmask ${NETMASK}
- if [ -n "${GATEWAY}" ]
- then
- /sbin/route add default gw ${GATEWAY} dev ${iface} netmask 0.0.0.0 metric 1
- fi
- if [ -n "${DNS}" ]
- then
- dialog --title "Domena Wyszukiwania" --inputbox "Wprowadz domene wyszukiwania (Wcisnij Enter aby pominac:)" 20 50 2> ${iface}.SUFFIX
- SUFFIX=$(tail -n 1 ${iface}.SUFFIX)
- echo "nameserver ${DNS}" > /etc/resolv.conf
- if [ -n "${SUFFIX}" ]
- then
- echo "search ${SUFFIX}" >> /etc/resolv.conf
- fi
- fi
- ;;
- esac
-}
-
-write_net_conf() {
- cd /tmp/setup.opts
- echo "" > /etc/conf.d/net
- echo "# Konfiguracja sieci zapisana przed net-setup-root" > /etc/conf.d/net
- DHCP=$(tail -n 1 ${iface}.DHCP)
- case ${DHCP} in
- 1)
- echo "config_${iface}=\"dhcp\"" >> /etc/conf.d/net
- echo "fallback_${iface}=\"apipa\"" >> /etc/conf.d/net
- ;;
- 2)
- IP=$(tail -n 1 ${iface}.IP)
- BROADCAST=$(tail -n 1 ${iface}.BC)
- NETMASK=$(tail -n 1 ${iface}.NM)
- GATEWAY=$(tail -n 1 ${iface}.GW)
- if [ -n "${IP}" -a -n "${BROADCAST}" -a -n "${NETMASK}" ]
- then
- echo "config_${iface}=\"${IP} netmask ${NETMASK} brd ${BROADCAST}\"" >> /etc/conf.d/net
- if [ -n "${GATEWAY}" ]
- then
- echo "routes_${iface}=\"default via ${GATEWAY}\"" >> /etc/conf.d/net
- fi
- echo "fallback_${iface}=\"apipa\"" >> /etc/conf.d/net
- fi
- ;;
- esac
-}
\ No newline at end of file
/Bash/net-functions-root.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/mail-stress-testing.sh
===================================================================
--- Bash/mail-stress-testing.sh (revision 32)
+++ Bash/mail-stress-testing.sh (nonexistent)
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# Script to send disierd number of emails to one adress
-# to stress test mail server
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-SERVERNAME=$(hostname)
-DATE=$(date +"%d.%m.%Y")
-EMAIL=test@test.pl
-FILENAME="/var/tmp/attachment-${DATE}.txt"
-HOWMANY=${1}
-
-echo "Czas pracy wysylajacego komputera" > ${FILENAME}
-/usr/bin/uptime >> ${FILENAME}
-echo "Dane komputera wysylajacego:" >> ${FILENAME}
-/usr/bin/uname -a >> ${FILENAME}
-echo "Adres IP komputera:" >> ${FILENAME}
-/sbin/ifconfig | grep Bcast | awk '{print $2 }'|awk -F":" '{print $2}' >> ${FILENAME}
-echo "Publiczy adres wysylajacego komputera:" >> ${FILENAME}
-/usr/bin/curl -s http://whatismyip.org >> ${FILENAME}
-
-
-echo "To jest testowy email aby przetestować możliwość odebrania dużej ilości maili przez serwer" > /var/tmp/msgfile-${DATE}
-echo "Czas pracy wysylajacego komputera" >> /var/tmp/msgfile-${DATE}
-/usr/bin/uptime >> /var/tmp/msgfile-${DATE}
-echo "Dane komputera wysylajacego:" >> /var/tmp/msgfile-${DATE}
-/usr/bin/uname -a >> /var/tmp/msgfile-${DATE}
-echo "Adres IP komputera:" >> /var/tmp/msgfile-${DATE}
-/sbin/ifconfig | grep Bcast | awk '{print $2 }'|awk -F":" '{print $2}' >> /var/tmp/msgfile-${DATE}
-echo "Publiczy adres wysylajacego komputera:" >> /var/tmp/msgfile-${DATE}
-/usr/bin/curl -s http://whatismyip.org >> /var/tmp/msgfile-${DATE}
-
-
-for ((i=1; i<=HOWMANY;i++))
-do
-echo "wsylam maila numer ${i}"
- /usr/bin/mutt -s "${DATE} To jest mail testowy numer ${i}" ${EMAIL} -a ${FILENAME} < /var/tmp/msgfile-${DATE}
-sleep 2
-done
/Bash/mail-stress-testing.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/obex_mount.sh
===================================================================
--- Bash/obex_mount.sh (revision 32)
+++ Bash/obex_mount.sh (nonexistent)
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# Script to mount obex mobile device via bluetooth
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-MOUNTPOINT="/tmp/${USER}-${1}"
-
-#Create mount directory
-mkdir ${MOUNTPOINT}
-#Mount the device
-obexfs -b ${1} ${MOUNTPOINT}
-sleep 5
-/usr/bin/krusader --left ${HOME} --right ${MOUNTPOINT}
-#/usr/bin/dolphin ${MOUNTPOINT}
-#Unmount the device
-fusermount -u ${MOUNTPOINT}
-sleep 5
-#Remove mount directory
-rmdir ${MOUNTPOINT}
/Bash/obex_mount.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/asus-touchpad.sh
===================================================================
--- Bash/asus-touchpad.sh (revision 32)
+++ Bash/asus-touchpad.sh (nonexistent)
@@ -1,9 +0,0 @@
-#!/bin/bash
-state=$(synclient -l | grep TouchpadOff | awk -F"= " '{print $2}')
-if [ "$state" = "0" ]; then
- kdialog --passivepopup "Wyłączam TouchPad" --title "Wciśnięty przycisk TouchPad"
- synclient TouchpadOff=1
-else
- kdialog --passivepopup "Włączam TouchPad" --title "Wciśnięty przycisk TouchPad"
- synclient TouchpadOff=0
-fi
/Bash/asus-touchpad.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/webbtn.sh
===================================================================
--- Bash/webbtn.sh (revision 32)
+++ Bash/webbtn.sh (nonexistent)
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-kdialog --passivepopup "Uruchamiam przeglądarkę Chromium" --title "Wciśnięty przycisk WWW"
-
-/usr/bin/chromium
/Bash/webbtn.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/mail.sh
===================================================================
--- Bash/mail.sh (revision 32)
+++ Bash/mail.sh (nonexistent)
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-kdialog --passivepopup "Uruchamiam program KMail" --title "Wciśnięty przycisk Email"
-
-/usr/bin/kmail
/Bash/mail.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/net-setup-service.sh
===================================================================
--- Bash/net-setup-service.sh (revision 32)
+++ Bash/net-setup-service.sh (nonexistent)
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-if [ -f /usr/local/bin/net-functions-service.sh ]
-then
- source /usr/local/bin/net-functions-service.sh
-else
- echo "Blad: /usr/local/bin/net-functions-serwis.sh nie mogly zostac zaladowane!"
- exit 1
-fi
-
-if [ ! -x $(which dialog) ]
-then
- echo "Blad: Program dialog jest wymagany do uruchomienia net-setup. Koncze prace!"
- exit 1
-fi
-
-if [ "${#}" -eq 1 ]; then
- iface="${1}"
-else
- echo "Blad: skrypt przyjmuje identyfikator interfjesu sieciowego jako pierwszy parametr skryptu."
- exit 1
-fi
-
-# Hide any potential error messages from the readlink/dirname/etc calls below
-exec 2>/dev/null
-
-[ ! -d /tmp/${USER}/setup.opts ] && mkdir -p /tmp/${USER}/setup.opts
-cd /tmp/${USER}/setup.opts
-
-# Show stderr again
-exec 2>/dev/stderr
-
-config_ip
-
-if dialog --title "Zapisanie zmian na stale" --yesno "Czy zapisac zmiany w konfiguracji sieci tak aby byly one stosowane podczas kazdego kolejnego uruchomienia maszyny?\n\n Uwaga! Wybranie Nie, spowoduje, ze po restarcie maszyny przywrocone zostana poprzednie ustawienia" 15 70
-then
- write_net_conf
- echo "Zmiany w konfiguracji interfejsu sieciowego zostaly zapisane i beda stosowane po ponownym uruchomieniu maszyny."
- echo ""
-else
- echo "Zmiany w konfiguracja interfejsu nie zostaly zapisany na stale i zostana przywrocone do poprzedniech ustawien po ponownym uruchomieniu maszyny."
- echo ""
-fi
-
-echo "Jesli skonfigurowales interfejs poprawnie mozesz wykonac komende \"ping www.wp.pl\" aby sprawdzic czy uzyskales polaczenie sieciowe."
-
-# vim: ts=4
\ No newline at end of file
/Bash/net-setup-service.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/mysql_data_backup.sh
===================================================================
--- Bash/mysql_data_backup.sh (revision 32)
+++ Bash/mysql_data_backup.sh (nonexistent)
@@ -1,41 +0,0 @@
-#!/bin/bash
-
-#####################################################################
-# Script to make data copy from mysql
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-MYUSER=${1}
-PASSWORD=${2}
-BCKPATH=${3}
-MYSQL="/usr/bin/mysql"
-MYSQLDUMP="/usr/bin/mysqldump"
- if [ -d ${BCKPATH} ]; then
- echo "Path seems ok"
- echo
- else
- echo "Can not find the provided path check script parameters"
- echo
- exit 1
- fi
- DATABASES="$(${MYSQL} -u ${MYUSER} -p${PASSWORD} -Bse 'show databases')"
- for name in ${DATABASES}
- do
- FILE=${BCKPATH}/mysql-data-${name}-$(date +"%d_%m_%y").sql
- echo "Creating backup of database ${name} to file ${FILE}"
- if (${MYSQLDUMP} --skip-triggers --compact --no-create-info --disable-keys -u ${MYUSER} -p${PASSWORD} ${name} > ${FILE}) then
- echo "Storing database ${name} in ${FILE} succesfull"
- echo
- else
- echo "Storing database ${name} in ${FILE} failed"
- echo
- fi
- done
/Bash/mysql_data_backup.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: Bash/mysql_db_data_backup.sh
===================================================================
--- Bash/mysql_db_data_backup.sh (revision 32)
+++ Bash/mysql_db_data_backup.sh (nonexistent)
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-#####################################################################
-# Script to make data copy from given mysql database
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-MYUSER=${1}
-PASSWORD=${2}
-DATABASE=${3}
-BCKPATH=${4}
-MYSQL="/usr/bin/mysql"
-MYSQLDUMP="/usr/bin/mysqldump"
- if [ -d ${BCKPATH} ]; then
- echo "Path seems ok"
- echo
- else
- echo "Can not find the provided path check script parameters"
- echo
- exit 1
- fi
-
- FILE=${BCKPATH}/mysql-data-${DATABASE}-$(date +"%d_%m_%y").sql
- echo "Creating backup of database ${DATABASE} to file ${FILE}"
- echo "SET FOREIGN_KEY_CHECKS = 0;" > ${FILE}
- if (${MYSQLDUMP} --skip-triggers --compact --no-create-info --disable-keys -u ${MYUSER} -p${PASSWORD} ${DATABASE} >> ${FILE}) then
- echo "Storing database ${DATABASE} in ${FILE} succesfull"
- echo
- echo "SET FOREIGN_KEY_CHECKS =1;" >> ${FILE}
- else
- echo "Storing database ${DATABASE} in ${FILE} failed"
- echo
- rm -rf ${FILE}
- fi
/Bash/mysql_db_data_backup.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: Bash/kde-icon.sh
===================================================================
--- Bash/kde-icon.sh (revision 32)
+++ Bash/kde-icon.sh (nonexistent)
@@ -1,142 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# Script to replace the standard KDE 4 start icon with Gentoo Logo
-# The logo can be downloaded here:
-# http://gentoo-art.org/CONTENT/content-files/117383-gentoo-start-icon.svg
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# Author: Andrzej Kardaś
-# License: GPLv3
-# The full version of the licencse can be obtainted by visiting:
-# http://www.gnu.org/licenses/gpl.html
-#######################################################################
-
-ICON=gentoo-start-icon.svg
-RESOLUTION=(16x16 22x22 32x32 48x48 64x64 128x128 256x256)
-URL="http://gentoo-art.org/CONTENT/content-files/117383-gentoo-start-icon.svg"
-WGET="/usr/bin/wget"
-MV="/bin/mv"
-CP="/bin/cp"
-RM="/bin/rm"
-
-if [ "${1}" = "global" ]; then
- PATH="/usr/share/icons/"
-elif [ "${1}" = "local" ]; then
- PATH=`echo ~/.kde4/share/icons/`
-else
- echo
- echo "Usage ./kde-icon.sh local | global [theme_name] [restore]"
- echo
- echo "Examples:"
- echo "If you want to change the icons just run:"
- echo "./kde-icon.sh local OxygenRefit2-black-version"
- echo
- echo "If you want to restore old icons run:"
- echo "./kde-icon.sh local OxygenRefit2-black-version restore"
- echo
- exit 1
-fi
-
-if [ "${#}" -eq 1 ]; then
- echo "You didn't provide a theme_name I'm assuming we are changing the oxygen default icon theme"
- echo
- THEME="oxygen"
-else
- THEME=${2}
-fi
-
-echo "Checking if full theme path: ${PATH}${THEME} exists"
-echo
-if [ -d ${PATH}${THEME} ]; then
- echo "Path seems ok"
- echo
-else
- echo "Can not find the provided path check script parameters"
- echo
- exit 1
-fi
-
-echo "Checking if you have write access to theme path"
-echo
-if [ -w ${PATH}${THEME} ]; then
- echo "Your rights seems ok"
- echo
-else
- echo "You do not have write access to the theme path you will not be able to change the icons"
- echo "Maybe you should run the script as root"
- echo
- exit 1
-fi
-
-if [ "${3}" == "restore" ] ; then
- echo "You requested restoration of previously stored icons"
- echo
- echo "Checking if stored copies of old icons are available and performing restore if possible"
- for i in "${RESOLUTION[@]}";
- do
- echo processing ${PATH}${THEME}/$i/places/start-here-kde.png
- if [ -w ${PATH}${THEME}/$i/places/start-here-kde.png.bak ]; then
- if [ -w ${PATH}${THEME}/$i/places/start-here-kde.svg ]; then
- echo "Removing svg icon: ${PATH}${THEME}/$i/places/start-here-kde.svg"
- ${RM} ${PATH}${THEME}/$i/places/start-here-kde.svg
- echo
- fi
- echo "Restoring old icons"
- ${MV} -f ${PATH}${THEME}/$i/places/start-here-kde.png.bak ${PATH}/${THEME}/$i/places/start-here-kde.png
- echo
- else
- echo "Can't find ${PATH}${THEME}/$i/places/start-here-kde.png.bak or you do not have write access to file"
- echo
- fi
- done
- echo "Finished"
- echo "To see the changes you need to change the icon set using KDE system settings"
- echo
-else
- echo "Downloading the logo icon"
- echo
- ${WGET} --output-document=${ICON} ${URL} || die "downloading of the icon failed"
-
- echo "Making backup of existing icons"
- echo
- for i in "${RESOLUTION[@]}";
- do
- echo processing ${PATH}${THEME}/$i/places/start-here-kde.png
- if [ -w ${PATH}${THEME}/$i/places/start-here-kde.png ]; then
- if (${MV} -f ${PATH}${THEME}/$i/places/start-here-kde.png ${PATH}/${THEME}/$i/places/start-here-kde.png.bak) then
- echo "Storing ${PATH}${THEME}/$i/places/start-here-kde.png as ${PATH}/${THEME}/$i/places/start-here-kde.png.bak succsesfull"
- echo
- else
- echo "There was error while storing icon ${PATH}${THEME}/$i/places/start-here-kde.png"
- fi
- else
- echo "Icon ${PATH}${THEME}/$i/places/start-here-kde.png dosn't exist or you don't have the write access to it!"
- echo "I have nothing to do here"
- echo
- fi
- done
-
- echo
- echo "Placing new Icon"
- echo
- for i in "${RESOLUTION[@]}";
- do
- echo processing ${PATH}${THEME}/$i/places/start-here-kde.svg
- if (${CP} ${ICON} ${PATH}${THEME}/$i/places/start-here-kde.svg) then
- echo "Placing icon ${PATH}${THEME}/$i/places/start-here-kde.svg succsesfull"
- echo
- else
- echo "There was error while placing icon ${PATH}${THEME}/$i/places/start-here-kde.svg"
- echo
- fi
- done
- echo "I'm Removing the downloaded icon"
- ${RM} -f ${ICON}
- echo
- echo "That's all!"
- echo "To see the changes you need to change the icon set using KDE system settings"
- echo
-fi
\ No newline at end of file
/Bash/kde-icon.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: Bash/screenlets-restart.sh
===================================================================
--- Bash/screenlets-restart.sh (revision 32)
+++ Bash/screenlets-restart.sh (nonexistent)
@@ -1,45 +0,0 @@
-#! /bin/bash
-
-TEMPFILE=/tmp/screenlets.running.${USER}.tmp
-
-if [ "${1}" = "stop" ]; then
- #Wrtie all curently running screnlets to temp file excluding screenlets deamon and manager
-
- ps aux | grep ${USER} | grep python | grep screenlets | sed '/screenlets-daemon.py/d; /screenlets-manager.py/d' | \
- awk '{printf $2","; n=10;while(++n<NF) printf $n " "; printf "%s\n",$NF}'> ${TEMPFILE}
-
- #Read all file lines and close all running screenlets
-
- echo "I'm closing all running screenlets"
- while read line
- do
- PID=$(echo $line | awk -F, '{print $1}')
- kill -9 $PID
- done < ${TEMPFILE}
-
-elif [ "${1}" = "start" ]; then
- #Check if the temporary file exists
-
- if (test -r ${TEMPFILE}) then
-
- #Read the temporary file and lunch screenlets using their lunching cammand
-
- echo "Starting screelets using a temporary list file"
- while read line
- do
- COMMAND=$(echo $line | awk -F, '{print $2}')
- $COMMAND &> /dev/null &
- sleep 10
- done < ${TEMPFILE}
-
- #Removing the temporary file
-
- rm ${TEMPFILE}
-
- else
- echo "Seems there is no temp file or you have no rights to access it"
- fi
-else
- echo "Usage ./screnlets-restart.sh start | stop"
-fi
-
/Bash/screenlets-restart.sh
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property