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<netinet/in.h> | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<sys/socket.h> | |
#include<sys/stat.h> | |
#include<sys/types.h> | |
#include<unistd.h> | |
int main() { | |
int create_socket, new_socket; |
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 <windows.h> | |
#include <string.h> | |
#include <stdlib.h> | |
// Some Global Variables | |
char aa[500]; |
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 <ctype.h> | |
#include <dirent.h> | |
#include <pthread.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <sys/epoll.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 <windows.h> | |
#include <stdio.h> | |
int main() | |
{ | |
HKEY hRoot = HKEY_LOCAL_MACHINE; | |
char *szSubKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Run"; | |
char *szModule = "D:\\software\\eclipse\\eclipse.exe"; |
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
ubuntu | |
正在解压缩 apache2-bin (从 .../apache2-bin_2.4.16-4+deb.sury.org~precise+4_amd64.deb) ... | |
dpkg:处理 /var/cache/apt/archives/apache2-bin_2.4.16-4+deb.sury.org~precise+4_amd64.deb (--unpack)时出错: | |
正试图覆盖 /usr/share/man/man8/apache2.8.gz,它同时被包含于软件包 apache2.2-common 2.2.22-1ubuntu1.10 | |
dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.15-0ubuntu10.9_amd64.debapt-get -f install |
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 ctypes | |
LONG = ctypes.c_long | |
DWORD = ctypes.c_ulong | |
ULONG_PTR = ctypes.POINTER(DWORD) | |
WORD = ctypes.c_ushort | |
class MOUSEINPUT(ctypes.Structure): | |
_fields_ = (('dx', LONG), | |
('dy', LONG), |
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
from selenium import webdriver | |
import selenium.webdriver.chrome.service as service | |
from pyvirtualdisplay import Display | |
display = Display(visible=0, size=(800, 600)) | |
display.start() | |
service = service.Service('/var/www/my/python/chromedriver') | |
service.start() | |
capabilities = {} |
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/python -tt | |
import webbrowser | |
def main(): | |
webbrowser.open('http://www.v2ex.com') | |
webbrowser.open_new_tab('https://www.quora.com') | |
if __name__ == '__main__': | |
main() |
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
export SOCKS5_SERVER=124.251.13.148:40800 | |
export SOCKS5_USER=php | |
export SOCKS5_PASSWORD=php@syswin2015 | |
ssh php@172.20.1.159 | |
Host 172.20.1.159 | |
ProxyCommand connect-proxy -5 -S 124.251.13.148:40800 %h %p | |
########################################################################### |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |