This file contains hidden or 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 | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
| export PATH | |
| OS=linux | |
| DOWNPATH=~/packages | |
| GO_VERSION=1.14.2 | |
| GO_ARCH=amd64 | |
| GOLANGPKG=go$GO_VERSION.$OS-$GO_ARCH.tar.gz |
This file contains hidden or 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
| {"lastUpload":"2019-09-05T07:22:30.703Z","extensionVersion":"v3.4.2"} |
This file contains hidden or 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
| ./configure \ | |
| --prefix=/usr/local/php56 \ | |
| --sysconfdir=/usr/local/php56/etc \ | |
| --with-config-file-scan-dir=/usr/local/php56/etc \ | |
| --enable-fpm \ | |
| --with-fpm-user=www-data \ | |
| --with-fpm-group=www-data \ | |
| --enable-mbstring \ | |
| --enable-sockets \ | |
| --enable-pdo \ |
This file contains hidden or 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
| sudo apt install libxml2 | |
| sudo apt install libxml2-dev | |
| sudo apt install libssl-dev | |
| sudo apt install pkg-config | |
| sudo apt install libcurl4-gnutls-dev | |
| sudo apt install libjpeg-dev | |
| sudo apt install libpng-dev | |
| ./configure --prefix=/usr/local/php7 \ | |
| --with-config-file-path=/usr/local/php7/etc \ |
This file contains hidden or 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
| ./configure \ | |
| --prefix=/usr/local/nginx \ | |
| --with-pcre \ | |
| --with-http_ssl_module \ | |
| --with-http_realip_module \ | |
| --with-http_gzip_static_module \ | |
| --with-http_v2_module |
This file contains hidden or 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
| #-- base --# | |
| set-option -g prefix C-a | |
| unbind C-b | |
| set -g default-terminal "screen-256color" | |
| set -g display-time 3000 | |
| set -g history-limit 10000 | |
| set -g base-index 1 | |
| set -g pane-base-index 1 | |
| set -s escape-time 0 |
This file contains hidden or 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
| std::string itostring(uint64_t i) { | |
| char buffer[64] = {0}; | |
| snprintf(buffer, sizeof(buffer), "%lu", i); | |
| return std::string(buffer); | |
| } |
This file contains hidden or 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
| echo -e '\xf' |
This file contains hidden or 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
| string int2ip(unsigned int ip_num){ | |
| struct in_addr in; | |
| in.s_addr = ip_num; | |
| return inet_ntoa(in); | |
| } |
This file contains hidden or 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
| std::string bin2hex(const std::string& input) | |
| { | |
| std::string res; | |
| const char hex[] = "0123456789ABCDEF"; | |
| for(unsigned int i = 0; i < input.size(); i++) | |
| { | |
| char sc = input[i]; | |
| unsigned char c = static_cast<unsigned char>(sc); | |
| res += hex[c >> 4]; | |
| res += hex[c & 0xf]; |