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
--- rp-pppoe-3.8/src/pppoe-server.c 2010-07-15 16:42:39.031057949 +0400 | |
+++ rp-pppoe-3.8/src/pppoe-server.c 2010-07-15 16:48:14.078605821 +0400 | |
@@ -97,6 +97,7 @@ | |
#define MAX_SERVICE_NAMES 64 | |
static int NumServiceNames = 0; | |
static char const *ServiceNames[MAX_SERVICE_NAMES]; | |
+static int ReactionOnNoServiceName = 1; | |
PppoeSessionFunctionTable DefaultSessionFunctionTable = { | |
PppoeStopSession, |
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
grep -Rl DryCrudSample . | xargs -n1 sed -i 's/DryCrudSample/HotspotManager/g' |
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
# add following to file config/boot.rb to change default host:port bindings | |
require 'rails/commands/server' | |
module Rails | |
class Server | |
alias :default_options_alias :default_options | |
def default_options | |
default_options_alias.merge!(Host: '127.0.0.1', Port: 3333) | |
end |
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
description "MyApp @ Rails" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
env APP_PATH="/var/www/apps/ecilop" | |
env APP_USER="deploy" | |
env APP_EXEC="rails server -e production" | |
# env APP_EXEC="rackup myapp.ru -s thin -E production" |
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
$.ajax({ | |
type: "POST", | |
url: href, | |
beforeSend: function (xhr) { | |
xhr.overrideMimeType("text/plain; charset=x-user-defined"); | |
}, | |
success: function(response) { | |
var binary = Array.prototype.map.call(response, function(c) { return c.charCodeAt(0) & 0xFF; }); | |
console.debug('ajax done: ', binary); | |
}, |
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
$('.title-link').each(function() { console.log($(this).text()) }) |
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
diff --git a/metacity-1/metacity-theme-1.xml b/metacity-1/metacity-theme-1.xml | |
index 7aaeb54..e35b804 100644 | |
--- a/metacity-1/metacity-theme-1.xml | |
+++ b/metacity-1/metacity-theme-1.xml | |
@@ -23,18 +23,19 @@ | |
<border name="button_border" left="0" right="0" top="1" bottom="0"/> | |
</frame_geometry> | |
-<frame_geometry name="geometry_maximized" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false"> | |
+<frame_geometry name="geometry_maximized" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false" has_title="false"> |
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
/*---------------------------------------------------------------------------------------------- | |
* pin_macros.h (AVR/avr-gcc) | |
*---------------------------------------------------------------------------------------------- | |
* | |
* Author: Oleksandr Redchuk aka ReAl ([email protected]) | |
* | |
* Description: port bits access macros for AVR uC family (avr-gcc compiler) | |
* | |
* Based on macros by Ascold Volkov, Andy Mozzevilov, Aleksey Musin | |
*---------------------------------------------------------------------------------------------- |
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
#include <memory> | |
#include <string> | |
class variant | |
{ | |
public: | |
template <class T> | |
variant& operator = (T const& t) | |
{ |
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
#!/bin/bash | |
cat /proc/$$/cmdline | xargs -0 -n1 echo |
OlderNewer