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
# Comments | |
name: Network service | |
description: Network service description | |
version: 5.0.5 | |
enabled: yes # yes a boolean True | |
interfaces: | |
- name: Локальный интерфейс | |
type: Ethernet | |
role: Local |
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
import akka.actor.Actor._ | |
import akka.actor.Actor | |
object FooBar extends Actor { | |
def receive = { | |
case "test" => println("received test") | |
case _ => println("received unknown message") | |
} | |
} |
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
Index: Utils.java | |
=================================================================== | |
--- Utils.java (revision 26653) | |
+++ Utils.java (working copy) | |
@@ -22,6 +22,7 @@ | |
package org.gudy.azureus2.ui.swt; | |
import java.io.File; | |
+import java.io.IOException; |
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
all:: | |
.PHONY: GIT-VERSION-FILE | |
GIT-VERSION-FILE: FORCE | |
@$(SHELL_PATH) ./GIT-VERSION-GEN | |
-include GIT-VERSION-FILE | |
all:: | |
@echo $(GIT_VERSION) |
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
# -*- coding: utf-8 -*- | |
import re | |
from funcparserlib.lexer import make_tokenizer | |
from funcparserlib.parser import some, skip, forward_decl, oneplus, many, maybe | |
_ABNF_GRAMMAR_DESCRIPTION = r""" | |
filter = LPAREN filtercomp RPAREN | |
filtercomp = and / or / not / item |
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
# -*- coding: utf-8 -*- | |
import re | |
from funcparserlib.lexer import make_tokenizer | |
from funcparserlib.parser import some, skip, forward_decl, oneplus, maybe | |
# https://svn.process-one.net/tsung/trunk/src/lib/rfc4515_parser.erl | |
_ABNF_GRAMMAR_DESCRIPTION = r""" |
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
class MaskFormatter(object): | |
def __init__(self, **variables): | |
self.variables = variables | |
self.formatter = string.Formatter() | |
def format(self, match_pattern, strip_length, prepend_prefix): | |
mask_parts = [] | |
for literal_text, field_name, _, _ in self.formatter.parse(prepend_prefix): | |
if literal_text: |
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/escript | |
-include_lib("hackney/include/hackney.hrl"). | |
-include_lib("public_key/include/public_key.hrl"). | |
main([]) -> | |
ok = hackney:start(), | |
{ok, 200, _, C} = hackney:request(get, <<"https://friendpaste.com">>, [], <<>>, []), | |
{ok, Cert} = ssl:peercert(C#client.socket), | |
DecodedCert = public_key:pkix_decode_cert(Cert, plain), |
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/escript | |
-include_lib("hackney/include/hackney.hrl"). | |
-include_lib("public_key/include/public_key.hrl"). | |
main([]) -> | |
ok = hackney:start(), | |
{ok, 200, _, C} = hackney:request(get, <<"https://friendpaste.com">>, [], <<>>, []), | |
{ok, Cert} = ssl:peercert(C#client.socket), | |
DecodedCert = public_key:pkix_decode_cert(Cert, plain), |
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
class Bar < ActiveRecord::Base | |
attr_accessible :name | |
has_many :bazs, autosave: true | |
end |
OlderNewer