This file contains hidden or 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
// source https://groups.google.com/d/msg/openhab/TnIqLpjIfZo/KFIcvgpxwL4J | |
import org.openhab.core.library.types.* | |
import org.openhab.core.persistence.* | |
import org.openhab.model.script.actions.* | |
import org.joda.time.* | |
var DateTime lastClickWallSwitch = new DateTime() | |
rule "Wall Switch Count Double Click" |
This file contains hidden or 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
<configuration scan="true"> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} [%-5level] [%-30.30logger{36}:%-5line] - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
This file contains hidden or 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
tell application "System Events" | |
tell current location of network preferences | |
set VPN to "Private Internet Access" | |
set VPNactive to connected of current configuration of service VPN | |
if VPNactive then | |
disconnect service VPN | |
say "The VPN has been disconnected" | |
display notification "VPN Disconnected" with title "Toggle VPN" | |
else | |
connect service VPN |
This file contains hidden or 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 | |
/** | |
* Enables the Excerpt meta box in Page edit screen. | |
*/ | |
function wpcodex_add_excerpt_support_for_pages() { | |
add_post_type_support( 'page', 'excerpt' ); | |
} | |
add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' ); |
This file contains hidden or 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
<keymap> | |
<global> | |
<keyboard> | |
<F5>XBMC.ReloadSkin()</F5> | |
<F6>Skin.ToggleSetting(DebugGrid)</F6> | |
<F7>Skin.ToggleSetting(DebugInfo)</F7> | |
<F8>Notification(Testing 123,Hello world)</F8> | |
</keyboard> | |
</global> | |
</keymap> |
This file contains hidden or 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
set remotebuddy_list to {} | |
tell application "Tunnelblick" | |
set vpn_list to get name of configurations | |
end tell | |
repeat with i from 1 to count of vpn_list | |
set ind_configuration to item i of vpn_list | |
set end of remotebuddy_list to i | |
set end of remotebuddy_list to ind_configuration |
This file contains hidden or 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 | |
// Remove Mandrill Dashboard Widget | |
// http://wordpress.org/support/topic/dashboard-widget?replies=3 | |
function sp_remove_wpmandrill_dashboard() { | |
if ( class_exists( 'wpMandrill' ) ) { | |
remove_action( 'wp_dashboard_setup', array( 'wpMandrill' , 'addDashboardWidgets' ) ); | |
} | |
} | |
add_action( 'admin_init', 'sp_remove_wpmandrill_dashboard' ); |
This file contains hidden or 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
// disable default dashboard widgets | |
function disable_default_dashboard_widgets() { | |
global $current_user; | |
get_currentuserinfo(); | |
if($current_user->user_level != 1){ | |
// remove_meta_box('dashboard_right_now', 'dashboard', 'core'); | |
// remove_meta_box('dashboard_activity', 'dashboard', 'core'); |
This file contains hidden or 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
/* slighly tweaked version of Seb Szocinsk's original excellent job | |
originaly posted in https://groups.google.com/forum/#!topic/mailplaneapp/9IvEMtrih5U */ | |
* { | |
font-family: "Source Sans Pro"; | |
font-size: 18px; | |
font-weight: 500; | |
} |
This file contains hidden or 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
set appName to "Growl" | |
if application appName is not running then | |
tell application appName | |
activate | |
end tell | |
return "Not Running" | |
else | |
return "Running" | |
end if |