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
# Inspired from: | |
# https://dev.to/bulletmark/create-a-reverse-ssh-tunnel-for-remote-access-to-a-restricted-machine-1ma0 | |
# https://unix.stackexchange.com/questions/474848/ssh-remote-port-forwarding-with-multiple-ports | |
# ----------------------------------------------- # | |
# On local restricted machine to access | |
sudo mkdir -p /etc/sshtunnel && \ | |
sudo ssh-keygen -qN "" -f /etc/sshtunnel/id_rsa && \ | |
sudo vim /etc/systemd/system/sshtunnel.service |
This file has been truncated, but you can view the full file.
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
-- dlc/bob/journal/bestiary/alp.journal: | |
chunk = {} | |
chunk[1] = { | |
entry = 2, | |
} | |
chunk[2] = { | |
baseName = "alp", | |
order = 4261412862, |
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
The Witcher 3 - Facts | |
Source: http://www.vertigofx.com/public/games/tw3/tw3facts.txt | |
== dlc/bob/data/gameplay/community/dialogues/chats/chat_beauclair_citizens_01.w2scene: | |
lw_ww_geralt_of_rivia_wine | |
== dlc/bob/data/gameplay/community/dialogues/chats/chat_beauclair_citizens_02.w2scene: | |
mq7015_done |
- Create SSH keys (without passphrase):
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
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
<?php | |
// Place this code in your child theme's functions.php or in one of your custom plugins | |
// Adds an action before displaying a page | |
add_action( 'template_redirect', 'wp_weixin_force_follow_all_browsers', 0, 0 ); | |
// The action executed before displaying a page | |
function wp_weixin_force_follow_all_browsers() { | |
// change `home_url( '/' )` with the URL of an existing page with your Official Account QR code of your choice, | |
// or add a WordPress filter "wp_weixin_force_follow_all_browsers_url" of your own to change the destination | |
$page_url = apply_filters( 'wp_weixin_force_follow_all_browsers_url', home_url( '/' ) ); |
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
<?php | |
/* | |
Plugin Name: WeChat Pay integration plugin skeleton | |
Plugin URI: https://gist.github.com/froger-me/2c66a842ef8900b017809d7c738130c9 | |
Description: Requires WP Weixin version min 1.3. A skeleton plugin. NEEDS TO BE EDITED BY A DEVELOPER BEFORE USE! | |
Version: 1.3 | |
Author: Alexandre Froger | |
Author URI: https://froger.me | |
WC tested up to: 3.5.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
<?php | |
/* | |
Plugin Name: WP Weixin Crossdomain Nexus | |
Plugin URI: https://gist.github.com/froger-me/c918d7f2c4f88eff1b330a50d8962f23 | |
Description: Requires WP Weixin. Customize the blog IDs used for WeChat API authentication and WeChat Pay transactions when using a domain/subdomain-based multisite network. NEEDS TO BE EDITED BY A DEVELOPER BEFORE USE! | |
Version: 1.3.5 | |
Author: Alexandre Froger | |
Author URI: https://froger.me | |
WC tested up to: 3.8.1 | |
*/ |
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
<?php | |
function get_formatted_memory_peak( $bytes, $precision = 2 ) { | |
$units = array( 'b', 'kb', 'mb', 'gb', 'tb' ); | |
$bytes = max( $bytes, 0 ); | |
$pow = floor( ( $bytes ? log( $bytes ) : 0 ) / log( 1024 ) ); | |
$pow = min( $pow, count( $units ) - 1 ); | |
$bytes /= ( 1 << ( 10 * $pow ) ); | |
return round( $bytes, $precision ) . ' ' . $units[ $pow ]; |
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
<?php | |
require dirname( __FILE__ ) . '/wp-load.php'; | |
add_filter( 'wp_doing_cron', '__return_true' ); | |
wp_maybe_auto_update(); | |
remove_filter( 'wp_doing_cron', '__return_true' ); | |
die(); | |
?> |
NewerOlder