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 | |
/** | |
* Gravity Wiz // Require Minimum Character Limit for Gravity Forms | |
* | |
* Adds support for requiring a minimum number of characters for text-based Gravity Form fields. | |
* | |
* @version 1.0 | |
* @author David Smith <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
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: Toolbar Theme Switcher - LESS CSS Integration | |
Plugin URI: https://github.com/sanchothefat/wp-less/issues/43 | |
Description: Fix cache refresh when switching themes | |
Author: Leho Kraav | |
Author URI: http://leho.kraav.com | |
Version: 1.0 | |
License: MIT | |
*/ |
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 | |
function gf_populate_confirmation_preview_html( $form ) { | |
$confirmation_slug = "Kinnitamine"; # content target HTML field has to have this name | |
$current_page = GFFormDisplay::get_current_page( $form[ "id" ] ); | |
$output_field = false; | |
$has_product_fields = false; | |
# http://www.gravityhelp.com/forums/topic/gform_post_paging-parameters-dont-match-form-pagination-pages-why | |
if ( in_array( $confirmation_slug, $form[ "pagination" ][ "pages" ] ) && $form[ "pagination" ][ "pages" ][ $current_page - 1 ] == $confirmation_slug ) : | |
foreach( $form[ "fields" ] as &$field ) : |
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 | |
SYSPATH="/sys/devices/platform/samsung" | |
SUMMARY="Samsung Status" | |
BODY=() | |
BODY+=("performance_level: $(cat "$SYSPATH/performance_level")") | |
BODY+=("backlight: $(cat "/sys/class/backlight/acpi_video0/brightness") / $(cat "/sys/class/backlight/acpi_video0/max_brightness")") | |
BODY+=("kbd_backlight: $(cat "$SYSPATH/leds/samsung::kbd_backlight/brightness") / $(cat "$SYSPATH/leds/samsung::kbd_backlight/max_brightness")") | |
BODY+=("$(cat "$SYSPATH/rfkill/rfkill0/name"): $(cat "$SYSPATH/rfkill/rfkill0/state")") | |
BODY+=("$(cat "$SYSPATH/rfkill/rfkill1/name"): $(cat "$SYSPATH/rfkill/rfkill1/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
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig | |
index 7f43cf8..17e2fa1 100644 | |
--- a/drivers/platform/x86/Kconfig | |
+++ b/drivers/platform/x86/Kconfig | |
@@ -744,13 +742,18 @@ config XO15_EBOOK | |
config SAMSUNG_LAPTOP | |
tristate "Samsung Laptop driver" | |
- depends on RFKILL && BACKLIGHT_CLASS_DEVICE && X86 | |
+ depends on X86 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TMPFILE=`mktemp` | |
#save the timestamp | |
touch -r file-name $TMPFILE | |
> file_name | |
#restore the timestamp after truncation | |
touch -r $TMPFILE file-name | |
rm $TMPFILE |
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
# This grub.cfg file was created by Lance http://www.pendrivelinux.com | |
# Suggested Entries and the suggestor, if available, will also be noted. | |
# Adding an Unlisted ISO: To try ISO Files that are not yet listed, use | |
# the existing menuentry examples in /boot/grub/grub.cfg and append any | |
# options normally found in the distributions syslinux.cfg file on the | |
# "append" line to the "linux" line of the menu entry. | |
set timeout=10 | |
set default=0 |
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
# Copyright 1999-2008 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
use onlydeps || inherit webapp | |
DESCRIPTION="SQL based, powerful small business accounting system" | |
SRC_URI="http://www.sql-ledger.com/source/${P}.tar.gz" | |
HOMEPAGE="http://www.sql-ledger.com/" |
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
#!/usr/bin/perl | |
# summad/arvud eesti keeles | |
# VB original provided by Tarmo Ko~lli [[email protected]] | |
# PHP-sse ymberkirjut Jaanus Kase ([email protected]) | |
# ausqna ma ei tea mis printsiibil see toimib :) | |
# aga sellegipoolest vqiks creditsid kuskil kasutades alles j2tta | |
# Perli versioon Martin Lillepuu <[email protected]> | |
# täisarvu sqnelemine eesti keeles |
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
$projectroot = '/path/to/gitosis/repositories'; | |
$gitosis_conf = '/path/to/gitosis/repositories/gitosis-admin.git/gitosis.conf'; | |
$username = $cgi->remote_user; | |
$export_auth_hook = sub { | |
my $projectdir = shift; | |
if($projectdir =~ (/(.*?)\.git/)) { | |
my $projectname = basename($1); | |
open FILE, $gitosis_conf or die 'Could not open gitosis config file. Please make sure that $gitosis_conf is set properly'; | |
my $project_match = 0; | |
my $user_match = 0; |