Skip to content

Instantly share code, notes, and snippets.

@Triloworld
Triloworld / gist:9cde5508e34333cfac2fdf5355315e3c
Created September 11, 2023 19:16
WP PHP Query into couples ok k=v
$url = "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$path_query = wp_parse_url( $url );
// Language process
$lang = substr( get_bloginfo ( 'language' ), 0, 2 );
$path_query_process = str_replace( '/' . $lang , '' , $path_query['path']);
//Strip slash
$path_query_process = trim( $path_query_process, "/" );
2023-02-08T07:42:19.329087Z Cloning repository...
2023-02-08T07:42:21.63425Z From https://github.com/webo-agency/webo-agency
2023-02-08T07:42:21.634888Z * branch 4da6a6d636c511687c557feac52830e7355f292c -> FETCH_HEAD
2023-02-08T07:42:21.635077Z
2023-02-08T07:42:21.860435Z HEAD is now at 4da6a6d temp case studies filters removal
2023-02-08T07:42:21.861085Z
2023-02-08T07:42:22.006337Z
2023-02-08T07:42:22.03376Z Success: Finished cloning repository files
2023-02-08T07:42:22.685266Z Installing dependencies
2023-02-08T07:42:22.696157Z Python version set to 2.7
#As first script
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/lftp.sh | bash -s
#As second script - use enviroment
# Options for LFTP
#echo "debug" >> ~/.lftprc;
#echo "set log:enabled true" >> ~/.lftprc;
echo "set ftp:ssl-protect-data false" >> ~/.lftprc;
echo "set ftp:ssl-force false" >> ~/.lftprc;
echo "set ftp:ssl-allow false" >> ~/.lftprc;