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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
void *worker(void *data); | |
struct worker_data_t | |
{ | |
pthread_t thread_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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
void *worker(void *data); | |
struct worker_data_t | |
{ | |
pthread_t thread_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
#!/usr/bin/env bash | |
delay="1000" | |
pid1=`pidof hostapd` | |
if [[ $pid1 != "" ]] | |
then | |
notify-send -t $delay "Зупиняю точку доступу Wi-Fi…" | |
sudo iptables -t nat -F | |
sudo iptables -t mangle -F |
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 | |
enca -x utf-8 "$1" ; \ | |
shnsplit -o flac "$2" < "$1" && \ | |
rm -f split-track00.flac ; \ | |
cuetag.sh "$1" split*.flac && \ | |
find . -maxdepth 1 -name "split*.flac" -print0 | xargs -0 metaflac --add-replay-gain && \ | |
lltag --yes --no-tagging --rename "%n - %t" split*.flac |
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 | |
#By DsTr wink.gif | |
#`kdialog --passivepopup "Добавление в коллекцию..." 1` | |
if [ "$1" == '' ]; then | |
shellDir="$PWD" | |
else | |
shellDir="$1" | |
fi |
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/Makefile b/Makefile | |
index ea38990..fafc8d5 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -1,6 +1,6 @@ | |
VERSION = 3 | |
PATCHLEVEL = 3 | |
-SUBLEVEL = 2 | |
+SUBLEVEL = 3 | |
EXTRAVERSION = -pf |
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 -Naur MiniGal Nano 0.3.5/config.php mgnew/config.php | |
--- MiniGal Nano 0.3.5/config.php 2010-12-06 11:43:00.000000000 +0200 | |
+++ mgnew/config.php 2012-07-22 18:34:10.000000000 +0300 | |
@@ -16,28 +16,28 @@ | |
*/ | |
// EDIT SETTINGS BELOW TO CUSTOMIZE YOUR GALLERY | |
-$thumbs_pr_page = "28"; //Number of thumbnails on a single page | |
-$gallery_width = "900px"; //Gallery width. Eg: "500px" or "70%" | |
+$thumbs_pr_page = "21"; //Number of thumbnails on a single page |
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
--- user-edit.php~ 2012-07-24 14:23:21.000000000 +0300 | |
+++ user-edit.php 2012-07-24 14:50:01.000000000 +0300 | |
@@ -278,52 +278,74 @@ | |
<tr> | |
<th><label for="first_name"><?php _e('First Name') ?></label></th> | |
- <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td> | |
+ <td> | |
+ <?php | |
+ if (!current_user_can('change_first_name')) |
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 -Naur MiniGal Nano 0.3.5/config.php newmg/config.php | |
--- MiniGal Nano 0.3.5/config.php 2010-12-06 11:43:00.000000000 +0200 | |
+++ newmg/config.php 2012-07-22 18:34:10.000000000 +0300 | |
@@ -16,28 +16,28 @@ | |
*/ | |
// EDIT SETTINGS BELOW TO CUSTOMIZE YOUR GALLERY | |
-$thumbs_pr_page = "28"; //Number of thumbnails on a single page | |
-$gallery_width = "900px"; //Gallery width. Eg: "500px" or "70%" | |
+$thumbs_pr_page = "21"; //Number of thumbnails on a single page |
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 -Naur MiniGal Nano 0.3.5/config.php newmg/config.php | |
--- MiniGal Nano 0.3.5/config.php 2010-12-06 11:43:00.000000000 +0200 | |
+++ newmg/config.php 2012-07-22 18:34:10.000000000 +0300 | |
@@ -16,28 +16,28 @@ | |
*/ | |
// EDIT SETTINGS BELOW TO CUSTOMIZE YOUR GALLERY | |
-$thumbs_pr_page = "28"; //Number of thumbnails on a single page | |
-$gallery_width = "900px"; //Gallery width. Eg: "500px" or "70%" | |
+$thumbs_pr_page = "21"; //Number of thumbnails on a single page |
OlderNewer