Signal | Value | Action | Comment |
---|---|---|---|
SIGHUP | 1 | Term | Hangup detected on controlling terminal or death of controlling process |
SIGINT | 2 | Term | Interrupt from keyboard |
SIGQUIT | 3 | Core | Quit from keyboard |
SIGILL | 4 | Core | Illegal Instruction |
SIGABRT | 6 | Core | Abort signal from abort(3) |
SIGFPE | 8 | Core | Floating point exception |
SIGKILL | 9 | Term | Kill signal |
SIGSEGV | 11 | Core | Invalid memory reference |
SIGPIPE | 13 | Term | Broken pipe: write to pipe with no readers |
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
package lambdatest; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
/** | |
* Попытка сделать что-то похожее на лямбды не используя паттерн Command. | |
* Треш, кишки и расчлененка. | |
* |
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
def roman(in: List[Char]): Int = in match { | |
case 'I' :: 'V' :: rest => 4 + roman(rest) | |
case 'I' :: 'X' :: rest => 9 + roman(rest) | |
case 'I' :: rest => 1 + roman(rest) | |
case 'V' :: rest => 5 + roman(rest) | |
case 'X' :: 'L' :: rest => 40 + roman(rest) | |
case 'X' :: 'C' :: rest => 90 + roman(rest) | |
case 'X' :: rest => 10 + roman(rest) | |
case 'L' :: rest => 50 + roman(rest) | |
case 'C' :: 'D' :: rest => 400 + roman(rest) |
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 Data { | |
private Object ob1 = new Object(); | |
private Object ob2 = new Object(); | |
private Object ob3 = new Object(); | |
private Object ob4 = new Object(); |
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
package com.inalgebra.proxytest; | |
import com.inalgebra.proxy.MethodWrapper; | |
import java.lang.reflect.Method; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: synther | |
* Date: 7/22/12 |
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
/** | |
* Created with IntelliJ IDEA. | |
* User: Synther | |
* Date: 20.01.13 | |
* Time: 14:19 | |
*/ | |
abstract class Node | |
case class Criterion(weight: Double, child: List[Node]) extends Node | |
case class Alternative(weights: List[Double]) extends Node |
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 | |
if [ $# -ne 1 ]; then | |
echo "$0 <device id|device name>" | |
exit 1 | |
fi | |
i=0 | |
while read label min delim max; do | |
if [ $i -eq 0 ]; then |
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
/* | |
* List definitions. | |
*/ | |
#define LIST_HEAD(name, type) \ | |
struct name { \ | |
struct type *lh_first; /* first element */ \ | |
} | |
#define LIST_HEAD_INITIALIZER(head) \ | |
{ NULL } |
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
[ 1638.680000] UDP: bad checksum. From 22.68.187.255:59015 to xxx.xxx.my.ip:53 ulen 43 | |
[ 1639.080000] UDP: bad checksum. From 83.134.124.244:8706 to xxx.xxx.my.ip:53 ulen 51 | |
[ 1641.980000] __ratelimit: 11 callbacks suppressed | |
[ 1641.990000] UDP: bad checksum. From 118.149.245.188:57576 to xxx.xxx.my.ip:53 ulen 51 | |
[ 1641.990000] UDP: bad checksum. From 68.76.24.191:40791 to xxx.xxx.my.ip:53 ulen 51 | |
[ 1642.590000] UDP: bad checksum. From 53.112.49.173:39565 to xxx.xxx.my.ip:53 ulen 51 | |
[ 1643.100000] UDP: bad checksum. From 93.74.202.243:33673 to xxx.xxx.my.ip:53 ulen 43 | |
[ 1643.760000] UDP: bad checksum. From 62.196.183.91:13029 to xxx.xxx.my.ip:53 ulen 47 | |
[ 1643.940000] UDP: bad checksum. From 44.100.134.31:56551 to xxx.xxx.my.ip:53 ulen 43 | |
[ 1644.070000] UDP: bad checksum. From 116.176.222.45:50575 to xxx.xxx.my.ip:53 ulen 43 |
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 <SoftwareSerial.h> | |
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX). | |
#define SSID "enter SSID here" | |
#define PASS "enter password here" | |
#define DST_IP "220.181.111.85" //baidu.com | |
//SoftwareSerial dbgSerial(10, 11); // RX, TX | |
void setup() | |
{ | |
// Open serial communications and wait for port to open: |
OlderNewer