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
/* | |
Implicit TLS のサーバー | |
gcc -g implicittls_svr.c -o implicittls_svr -L/usr/lib -I/usr/include -lssl -lcrypto | |
クライアントは openssl を使って | |
openssl s_client -connect 192.168.1.20:465 | |
こんな感じでやると楽 | |
*/ |
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 <string.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <poll.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> |
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 <string.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#define PORT 465 |
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
/* | |
Implicit TLS のクライアント(証明書を検証する版) | |
gcc -g implicittls_cli_cert.c -o implicittls_cli_cert -L/usr/lib -I/usr/include -lssl -lcrypto | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <sys/types.h> |
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
# | |
# Generic .zshenv file for zsh 2.7 | |
# | |
# .zshenv is sourced on all invocations of the | |
# shell, unless the -f option is set. It should | |
# contain commands to set the command search path, | |
# plus other important environment variables. | |
# .zshenv should not contain commands that product | |
# output or assume the shell is attached to a tty. | |
# |
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
################################################################### | |
# Plamo Linux ?????????????????????????? .zshrc | |
# Chisato Yamauchi (cyamauch@phyas.aichi-edu.ac.jp) | |
# Time-stamp: <2009-10-20 19:31:32 rin> | |
# color-ls | |
# ?????????? ~/.dir_colors | |
if which dircolors >& /dev/null; 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
;; -*- coding: iso-2022-7bit -*- | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Mew | |
;; メールリーダー Mew | |
;; M-x mew で起動します | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Mewのデバッグ |
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 <string.h> | |
int main(int ac, char** av) | |
{ | |
char *s, *p, *tokens[8]; | |
char *last; | |
int i = 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
irb(main):013:0> /(\d{1,3}\.){3}(\d{1,3})/ === "192.168.1." | |
=> false | |
irb(main):014:0> /(\d{1,3}\.){3}(\d{1,3})/ === "192.168.1.1" | |
=> true |
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 <string.h> | |
#define ARRAY_NUM(x) ((sizeof(x)) / (sizeof(x[0]))) | |
typedef struct _tag_tree_node | |
{ | |
char* key; | |
void* val; |
NewerOlder