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 <string> | |
#include <iostream> | |
#ifdef _WIN32 | |
#include <WS2tcpip.h> | |
#define LAST_ERR WSAGetLastError() | |
#define SOCK_INVALID(s) s == INVALID_SOCKET | |
#else | |
#define LAST_ERR errno | |
#define SOCK_INVALID(s) s < 0 | |
#include <sys/socket.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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
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
CREATE PROCEDURE table_dependents | |
( | |
IN tbl_name varchar(255) | |
) | |
BEGIN | |
CREATE TEMPORARY TABLE tbl_dependents_processing( | |
table_name varchar(255) PRIMARY KEY NOT NULL | |
)ENGINE=MEMORY; | |
INSERT INTO tbl_dependents_processing SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME = tbl_name; |
NewerOlder