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 | |
# get curret datetime | |
now=$(date) | |
echo "Start to check connection: $now" | |
/sbin/ifconfig eth0 | grep -q 'netmask' | |
# 0 is active, 1 is inactive | |
eth0Status=$? |
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 | |
grep -q close /proc/acpi/button/lid/*/state | |
if [ $? = 0 ]; then | |
/usr/sbin/vbetool dpms off | |
fi | |
grep -q open /proc/acpi/button/lid/*/state |
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 | |
IMAGE_NAME=<IMAGE_NAME> | |
IMAGE_VER="$(head -1 version.txt)" | |
BASEPATH=$(pwd) | |
docker info > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo "FATAL : Unable to talk to the docker daemon" |
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
odyssey@Itaca:/opt/bin/tmp$ cat set-proxy.sh | |
#!/bin/bash | |
# | |
# Copyright 2012 Alessandro Staniscia (email : alessandro@staniscia.net) | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License, version 2, as | |
# published by the Free Software Foundation.# | |
# | |
# This program is distributed in the hope that it will be useful, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<settings> | |
<!– … –> | |
<profiles> | |
<!– … –> | |
<profile> | |
<id>staniscia-repository</id> | |
<repositories> | |
<repository> | |
<id>release-staniscia-rep</id> |
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 | |
if (!class_exists("WPPAEF_Element")) : | |
class WPPAEF_Element { | |
var $id, //PhotoID | |
$timestamp, //Photo Time | |
$owner, //Owner |
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 | |
/* | |
Plugin Name: Follow me Tabs | |
Plugin URI: http://follow.code4site.com | |
Description: Plugin for displaying "Follow me Tabs" on different positions on the browser screen | |
Author: Igor Ivanov | |
Version: 1.0 | |
Author URI: http://follow.code4site.com | |
*/ |